<!--
{
  "availability" : [
    "iOS: 14.0.0 - 17.4.0",
    "iPadOS: 14.0.0 - 17.4.0",
    "macCatalyst: 14.0.0 - 17.4.0",
    "macOS: 11.0.0 - 14.3.0",
    "tvOS: 14.0.0 - 17.4.0"
  ],
  "documentType" : "symbol",
  "framework" : "MLCompute",
  "identifier" : "/documentation/MLCompute/MLCMatMulDescriptor",
  "metadataVersion" : "0.1.0",
  "role" : "Class",
  "symbol" : {
    "kind" : "Class",
    "modules" : [
      "ML Compute"
    ],
    "preciseIdentifier" : "c:objc(cs)MLCMatMulDescriptor"
  },
  "title" : "MLCMatMulDescriptor"
}
-->

# MLCMatMulDescriptor

A configuration object you use to create a matrix multiplication layer.

```
class MLCMatMulDescriptor
```

## Topics

### Creating Matrix Multiplication Descriptors

[`init()`](/documentation/MLCompute/MLCMatMulDescriptor/init())

Creates a batched matrix multiplication descriptor.

[`init(alpha:transposesX:transposesY:)`](/documentation/MLCompute/MLCMatMulDescriptor/init(alpha:transposesX:transposesY:))

Creates a batched matrix multiplication descriptor with the alpha value and transpose options you specify.

### Inspecting Matrix Multiplication Descriptors

[`alpha`](/documentation/MLCompute/MLCMatMulDescriptor/alpha)

A scalar value you specify to scale the result in C = alpha x A x B.

[`transposesX`](/documentation/MLCompute/MLCMatMulDescriptor/transposesX)

A Boolean that specifies whether you choose to transpose the last two dimensions of x.

[`transposesY`](/documentation/MLCompute/MLCMatMulDescriptor/transposesY)

A Boolean that specifies whether you choose to transpose the last two dimensions of y.



---

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)