<!--
{
  "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/copyBandPart(_:to:lowerBandCount:upperBandCount:filterParameters:)",
  "metadataVersion" : "0.1.0",
  "role" : "Type Method",
  "symbol" : {
    "kind" : "Type Method",
    "modules" : [
      "Accelerate"
    ],
    "preciseIdentifier" : "s:10Accelerate4BNNSO12copyBandPart_2to05lowerD5Count05upperdH016filterParametersySo21BNNSNDArrayDescriptora_AJSiSgAKSo010BNNSFilterK0aSgtKFZ"
  },
  "title" : "copyBandPart(_:to:lowerBandCount:upperBandCount:filterParameters:)"
}
-->

# copyBandPart(_:to:lowerBandCount:upperBandCount:filterParameters:)

Copies the specified subdiagonals and superdiagonals of a matrix, and sets other elements to zero.

```
static func copyBandPart(_ source: BNNSNDArrayDescriptor, to destination: BNNSNDArrayDescriptor, lowerBandCount: Int?, upperBandCount: Int?, filterParameters: BNNSFilterParameters? = nil) throws
```

## Parameters

`source`

The input descriptor.

`destination`

The output descriptor.

`lowerBandCount`

The number of subdiagonals that the function copies. Set to `nil` to copy the entire lower triangle.

`upperBandCount`

The number of superdiagonals that the function copies. Set to `nil` to copy the entire upper triangle.

`filterParameters`

The filter runtime parameters.

## See Also

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

Copies the specified subdiagonals and superdiagonals of a matrix, and sets other elements to zero.



---

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)