<!--
{
  "availability" : [
    "*: -",
    "iOS: 16.0.0 -",
    "iPadOS: 16.0.0 -",
    "macCatalyst: -",
    "macOS: 13.0.0 -",
    "tvOS: 16.0.0 -",
    "visionOS: -",
    "watchOS: 9.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "Accelerate",
  "identifier" : "/documentation/Accelerate/BNNS/shuffle(_:input:output:filterParameters:)",
  "metadataVersion" : "0.1.0",
  "role" : "Type Method",
  "symbol" : {
    "kind" : "Type Method",
    "modules" : [
      "Accelerate"
    ],
    "preciseIdentifier" : "s:10Accelerate4BNNSO7shuffle_5input6output16filterParametersyAC11ShuffleTypeO_So21BNNSNDArrayDescriptoraAKSo010BNNSFilterG0aSgtKFZ"
  },
  "title" : "shuffle(_:input:output:filterParameters:)"
}
-->

# shuffle(_:input:output:filterParameters:)

Rearranges elements in a tensor according to shuffle type.

```
static func shuffle(_ shuffleType: BNNS.ShuffleType, input: BNNSNDArrayDescriptor, output: BNNSNDArrayDescriptor, filterParameters: BNNSFilterParameters? = nil) throws
```

## Parameters

`shuffleType`

The shuffle operation that the function performs.

`input`

The input descriptor.

`output`

The output descriptor.

`filterParameters`

The runtime filter parameters.

## See Also

[`func BNNSShuffle(BNNSShuffleType, UnsafePointer<BNNSNDArrayDescriptor>, UnsafeMutablePointer<BNNSNDArrayDescriptor>, UnsafePointer<BNNSFilterParameters>?) -> Int32`](/documentation/Accelerate/BNNSShuffle(_:_:_:_:))

Rearranges elements in a tensor according to shuffle type.



---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)