<!--
{
  "availability" : [
    "iOS: 14.0.0 -",
    "iPadOS: 14.0.0 -",
    "macCatalyst: 14.0.0 -",
    "macOS: 11.0.0 -",
    "tvOS: 14.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 7.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "Accelerate",
  "identifier" : "/documentation/Accelerate/BNNSPaddingModeReflect",
  "metadataVersion" : "0.1.0",
  "role" : "Global Variable",
  "symbol" : {
    "kind" : "Global Variable",
    "modules" : [
      "Accelerate"
    ],
    "preciseIdentifier" : "c:@EA@BNNSPaddingMode@BNNSPaddingModeReflect"
  },
  "title" : "BNNSPaddingModeReflect"
}
-->

# BNNSPaddingModeReflect

A constant that indicates that a padding operation fills the padded area to form an odd-symmetric pattern.

```
var BNNSPaddingModeReflect: BNNSPaddingMode { get }
```

## Discussion

For example, given the following padding size and input:

```swift
let paddingSize = (2, 4)

let source: [Float] = [ 0, 1, 2, 3, 4, 5, 7, 8, 9 ]

var destination = [Float](repeating: 0,
                          count: source.count + paddingSize.0 + paddingSize.1)
```

A padding operation using [`BNNSPaddingModeReflect`](/documentation/Accelerate/BNNSPaddingModeReflect) populates destination with the following values:

```swift
[2.0, 1.0, 0.0, 1.0, 2.0, 3.0, 4.0, 5.0, 7.0, 8.0, 9.0, 8.0, 7.0, 5.0, 4.0]
```

---

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)