<!--
{
  "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/applyMatrixMultiplication(inputA:transposed:inputB:transposed:output:alpha:workspace:filterParameters:)",
  "metadataVersion" : "0.1.0",
  "role" : "Type Method",
  "symbol" : {
    "kind" : "Type Method",
    "modules" : [
      "Accelerate"
    ],
    "preciseIdentifier" : "s:10Accelerate4BNNSO25applyMatrixMultiplication6inputA10transposed0F1BAF6output5alpha9workspace16filterParametersySo21BNNSNDArrayDescriptora_SbAMSbAMSfSwSgSo010BNNSFilterL0aSgtKFZ"
  },
  "title" : "applyMatrixMultiplication(inputA:transposed:inputB:transposed:output:alpha:workspace:filterParameters:)"
}
-->

# applyMatrixMultiplication(inputA:transposed:inputB:transposed:output:alpha:workspace:filterParameters:)

Performs a matrix multiplication operation directly on two input matrices.

```
static func applyMatrixMultiplication(inputA: BNNSNDArrayDescriptor, transposed transposeA: Bool, inputB: BNNSNDArrayDescriptor, transposed transposeB: Bool, output: BNNSNDArrayDescriptor, alpha: Float, workspace: UnsafeMutableRawBufferPointer?, filterParameters: BNNSFilterParameters? = nil) throws
```

## Parameters

`inputA`

The descriptor of matrix A.

`transposeA`

A Boolean value that indicates whether the function transposes the last two dimensions of matrix A.

`inputB`

The descriptor of matrix B.

`transposeB`

A Boolean value that indicates whether the function transposes the last two dimensions of matrix B.

`output`

The descriptor of the output.

`alpha`

A scalar value that scales the result.

`workspace`

A pointer to a memory region that the function uses as scratch space. This must have a size no less than the value that [`matrixMultiplicationWorkspaceSize(inputA:transposed:inputB:transposed:output:alpha:filterParameters:)`](/documentation/Accelerate/BNNS/matrixMultiplicationWorkspaceSize(inputA:transposed:inputB:transposed:output:alpha:filterParameters:)) returns.

`filterParameters`

The filter runtime parameters.

---

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)