---
title: "matmul(transpose:other:transposeOther:)"
framework: accelerate
role: symbol
role_heading: Instance Method
path: "accelerate/bnnsgraph/builder/tensor/matmul(transpose:other:transposeother:)"
---

# matmul(transpose:other:transposeOther:)

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

## Declaration

```swift
func matmul(transpose: Bool = false, other: some BNNSGraph.Builder.OperationParameter<T>, transposeOther: Bool = false) -> 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.

## Discussion

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