<!--
{
  "availability" : [
    "iOS: 14.0.0 - 18.0.0",
    "iPadOS: 14.0.0 - 18.0.0",
    "macCatalyst: 14.0.0 - 18.0.0",
    "macOS: 11.0.0 - 15.0.0",
    "tvOS: 14.0.0 - 18.0.0",
    "visionOS: 1.0.0 - 2.0.0",
    "watchOS: 7.0.0 - 11.0.0"
  ],
  "documentType" : "symbol",
  "framework" : "Accelerate",
  "identifier" : "/documentation/Accelerate/BNNSLayerParametersBroadcastMatMul/init(alpha:beta:transA:transB:quadratic:a_is_weights:b_is_weights:iA_desc:iB_desc:o_desc:)",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "Accelerate"
    ],
    "preciseIdentifier" : "s:So34BNNSLayerParametersBroadcastMatMula5alpha4beta6transA0H1B9quadratic12a_is_weights02b_j1_K07iA_desc03iB_L002o_L0ABSf_SfS5bSo21BNNSNDArrayDescriptoraA2Ntcfc"
  },
  "title" : "init(alpha:beta:transA:transB:quadratic:a_is_weights:b_is_weights:iA_desc:iB_desc:o_desc:)"
}
-->

# init(alpha:beta:transA:transB:quadratic:a_is_weights:b_is_weights:iA_desc:iB_desc:o_desc:)

Returns a new broadcast matrix multiply layer parameters structure from the specified parameters.

```
init(alpha: Float, beta: Float, transA: Bool, transB: Bool, quadratic: Bool, a_is_weights: Bool, b_is_weights: Bool, iA_desc: BNNSNDArrayDescriptor, iB_desc: BNNSNDArrayDescriptor, o_desc: BNNSNDArrayDescriptor)
```

## Parameters

`alpha`

A value to scale the result.

`beta`

A value, that must be either 0.0 or 1.0, you use to scale the existing output before the operation adds it to the result.

`transA`

A Boolean value that transposes the last two dimensions of matrix *A*.

`transB`

A Boolean value that transposes the last two dimensions of matrix *B*.

`quadratic`

A Boolean value that determines whether the operation multiplies matrix *A* by itself.

`a_is_weights`

A Boolean value that determines whether to treat matrix *A* as weights.

`b_is_weights`

A Boolean value that determines whether to treat matrix *B* as weights.

`iA_desc`

The descriptor of matrix *A*.

`iB_desc`

The descriptor of matrix *B*.

`o_desc`

The descriptor of the output.

---

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)