<!--
{
  "availability" : [
    "iOS: -",
    "iPadOS: -",
    "macCatalyst: -",
    "macOS: -",
    "tvOS: -",
    "visionOS: -",
    "watchOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "Accelerate",
  "identifier" : "/documentation/Accelerate/BNNSReduceFunction",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "Accelerate"
    ],
    "preciseIdentifier" : "c:@EA@BNNSReduceFunction"
  },
  "title" : "BNNSReduceFunction"
}
-->

# BNNSReduceFunction

Constants that describe reduction functions.

```
struct BNNSReduceFunction
```

## Topics

### Raw Values

### Reduction Functions

[`init(_:)`](/documentation/Accelerate/BNNSReduceFunction/init(_:))

[`init(rawValue:)`](/documentation/Accelerate/BNNSReduceFunction/init(rawValue:))

[`rawValue`](/documentation/Accelerate/BNNSReduceFunction/rawValue)

[`BNNSReduceFunctionArgMax`](/documentation/Accelerate/BNNSReduceFunctionArgMax)

A reduction function that computes the index of the maximum value.

[`BNNSReduceFunctionArgMin`](/documentation/Accelerate/BNNSReduceFunctionArgMin)

A reduction function that computes the index of the minimum value.

[`BNNSReduceFunctionL1Norm`](/documentation/Accelerate/BNNSReduceFunctionL1Norm)

A reduction function that computes the sum of the absolute value of each element.

[`BNNSReduceFunctionLogicalAnd`](/documentation/Accelerate/BNNSReduceFunctionLogicalAnd)

A reduction function that reduces a tensor to true if all elements are true.

[`BNNSReduceFunctionAll`](/documentation/Accelerate/BNNSReduceFunctionAll)

An alias of the logical AND reduction function.

[`BNNSReduceFunctionLogicalOr`](/documentation/Accelerate/BNNSReduceFunctionLogicalOr)

A reduction function that reduces a tensor to true if any element is true.

[`BNNSReduceFunctionLogSum`](/documentation/Accelerate/BNNSReduceFunctionLogSum)

[`BNNSReduceFunctionAny`](/documentation/Accelerate/BNNSReduceFunctionAny)

An alias of the logical OR reduction function.

[`BNNSReduceFunctionMax`](/documentation/Accelerate/BNNSReduceFunctionMax)

A reduction function that computes the maximum value.

[`BNNSReduceFunctionMean`](/documentation/Accelerate/BNNSReduceFunctionMean)

A reduction function that computes the mean value.

[`BNNSReduceFunctionMeanNonZero`](/documentation/Accelerate/BNNSReduceFunctionMeanNonZero)

A reduction function that computes the mean value of nonzero elements.

[`BNNSReduceFunctionMin`](/documentation/Accelerate/BNNSReduceFunctionMin)

A reduction function that computes the minimum value.

[`BNNSReduceFunctionSum`](/documentation/Accelerate/BNNSReduceFunctionSum)

A reduction function that computes the sum of all values.

[`BNNSReduceFunctionSumLog`](/documentation/Accelerate/BNNSReduceFunctionSumLog)

A reduction function that computes the sum of the natural logarithm of all values.

[`BNNSReduceFunctionSumSquare`](/documentation/Accelerate/BNNSReduceFunctionSumSquare)

A reduction function that computes the sum of the square of all values.

[`BNNSReduceFunctionL2Norm`](/documentation/Accelerate/BNNSReduceFunctionL2Norm)

A reduction function that computes the Euclidean norm.

[`BNNSReduceFunctionLogSumExp`](/documentation/Accelerate/BNNSReduceFunctionLogSumExp)

A reduction function that computes the logarithm of the sum of the exponentials of each element.

[`BNNSReduceFunctionNone`](/documentation/Accelerate/BNNSReduceFunctionNone)

A reduction function that copies the input to the output.

[`BNNSReduceFunctionProduct`](/documentation/Accelerate/BNNSReduceFunctionProduct)

A reduction function that computes the product of all values.



---

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)