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

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

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, 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

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