---
title: "init(alpha:transposesX:transposesY:)"
framework: ML Compute
role: symbol
role_heading: Initializer
platforms: [iOS 14.0+, iPadOS 14.0+, Mac Catalyst 14.0+, macOS 11.0+, tvOS 14.0+]
path: "mlcompute/mlcmatmuldescriptor/init(alpha:transposesx:transposesy:)"
---

# init(alpha:transposesX:transposesY:)

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

## Declaration

```swift
convenience init?(alpha: Float, transposesX: Bool, transposesY: Bool)
```

## Parameters

- `alpha`: A scalar value you specify to scale the left-hand side, C = alpha x A x B.
- `transposesX`: A Boolean that specifies whether you choose to transpose the last two dimensions of x.
- `transposesY`: A Boolean that specifies whether you choose to transpose the last two dimensions of y.

## See Also

### Creating Matrix Multiplication Descriptors

- [init()](mlcompute/mlcmatmuldescriptor/init().md)
