<!--
{
  "availability" : [
    "iOS: 26.0.0 -",
    "iPadOS: 26.0.0 -",
    "macCatalyst: -",
    "macOS: 26.0.0 -",
    "tvOS: 26.0.0 -",
    "visionOS: 26.0.0 -",
    "watchOS: 26.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "Accelerate",
  "identifier" : "/documentation/Accelerate/BNNSGraph/Builder/Tensor/matmul(transpose:other:transposeOther:bias:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "Accelerate"
    ],
    "preciseIdentifier" : "s:10Accelerate9BNNSGraphO7BuilderV6TensorV6matmul9transpose5other0F5Other4biasAGy__xGSb_qd__Sbqd_0_t7ElementQyd__RszAE18OperationParameterRd__AePRd_0_ANQyd_0_AORSr0_lF"
  },
  "title" : "matmul(transpose:other:transposeOther:bias:)"
}
-->

# matmul(transpose:other:transposeOther:bias:)

Adds a matrix-matrix multiplication operation to the current graph.

```
func matmul(transpose: Bool = false, other: some BNNSGraph.Builder.OperationParameter<T>, transposeOther: Bool = false, bias: some BNNSGraph.Builder.OperationParameter<T>) -> BNNSGraph.Builder.Tensor<T>
```

## Parameters

`transpose`

A Boolean value that specifies whether the operation transposes `self`.

`other`

The other tensor to be multiplied.

`transposeOther`

A Boolean value that specifies whether the operation transposes `other`.

`bias`

The bias.

## Discussion

This function treats `self` as the LHS of the matrix multiply operation.

---

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)