<!--
{
  "availability" : [
    "*: -",
    "iOS: 14.0.0 -",
    "iPadOS: 14.0.0 -",
    "macCatalyst: -",
    "macOS: 11.0.0 -",
    "tvOS: 14.0.0 -",
    "visionOS: -",
    "watchOS: 7.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "Accelerate",
  "identifier" : "/documentation/Accelerate/BNNS/BroadcastMatrixMultiplyLayer/init(inputA:transposed:isWeights:inputB:transposed:isWeights:output:alpha:accumulatesToOutput:isQuadratic:filterParameters:)",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "Accelerate"
    ],
    "preciseIdentifier" : "s:10Accelerate4BNNSO28BroadcastMatrixMultiplyLayerC6inputA10transposed9isWeights0G1BAgH6output5alpha19accumulatesToOutput0I9Quadratic16filterParametersAESgSo21BNNSNDArrayDescriptora_S2bAQS2bAQSfS2bSo010BNNSFilterR0aSgtcfc"
  },
  "title" : "init(inputA:transposed:isWeights:inputB:transposed:isWeights:output:alpha:accumulatesToOutput:isQuadratic:filterParameters:)"
}
-->

# init(inputA:transposed:isWeights:inputB:transposed:isWeights:output:alpha:accumulatesToOutput:isQuadratic:filterParameters:)

Returns a new broadcast matrix multiply layer.

```
convenience init?(inputA: BNNSNDArrayDescriptor, transposed transposeA: Bool, isWeights aIsWeights: Bool, inputB: BNNSNDArrayDescriptor, transposed transposeB: Bool, isWeights bIsWeights: Bool, output: BNNSNDArrayDescriptor, alpha: Float, accumulatesToOutput: Bool, isQuadratic: Bool, filterParameters: BNNSFilterParameters? = nil)
```

## Parameters

`inputA`

The descriptor of matrix *A*.

`transposeA`

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

`aIsWeights`

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

`inputB`

The descriptor of matrix *B*.

`transposeB`

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

`bIsWeights`

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

`output`

The descriptor of the output.

`alpha`

A value to scale the result.

`accumulatesToOutput`

A Boolean value that specifies whether to add the result to the existing output.

`isQuadratic`

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

`filterParameters`

The filter runtime parameters.

---

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)