<!--
{
  "availability" : [
    "iOS: 14.0.0 - 16.0.0",
    "iPadOS: 14.0.0 - 16.0.0",
    "macCatalyst: 14.0.0 - 16.0.0",
    "macOS: 11.0.0 - 13.0.0",
    "tvOS: 14.0.0 - 16.0.0",
    "visionOS: 1.0.0 - 1.0.0",
    "watchOS: 7.0.0 - 9.0.0"
  ],
  "documentType" : "symbol",
  "framework" : "Accelerate",
  "identifier" : "/documentation/Accelerate/BNNSDirectApplyBroadcastMatMul(_:_:_:_:_:_:_:)",
  "metadataVersion" : "0.1.0",
  "role" : "Function",
  "symbol" : {
    "kind" : "Function",
    "modules" : [
      "Accelerate"
    ],
    "preciseIdentifier" : "c:@F@BNNSDirectApplyBroadcastMatMul"
  },
  "title" : "BNNSDirectApplyBroadcastMatMul(_:_:_:_:_:_:_:)"
}
-->

# BNNSDirectApplyBroadcastMatMul(_:_:_:_:_:_:_:)

Applies a broadcast matrix multiplication operation directly to two input matrices.

```
func BNNSDirectApplyBroadcastMatMul(_ transA: Bool, _ transB: Bool, _ alpha: Float, _ inputA: UnsafePointer<BNNSNDArrayDescriptor>, _ inputB: UnsafePointer<BNNSNDArrayDescriptor>, _ output: UnsafePointer<BNNSNDArrayDescriptor>, _ filter_params: UnsafePointer<BNNSFilterParameters>?)
```

## Parameters

`transA`

A Boolean value that transposes the last two dimensions of matrix *A*.

`transB`

A Boolean value that transposes the last two dimensions of matrix *B*.

`alpha`

A value to scale the result.

`inputA`

The descriptor of matrix *A*.

`inputB`

The descriptor of matrix *B*.

`output`

The descriptor of the output.

`filter_params`

The filter runtime parameters.

## Discussion

---

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)