<!--
{
  "availability" : [
    "iOS: 18.5.0 -",
    "iPadOS: 18.5.0 -",
    "macCatalyst: 18.5.0 -",
    "macOS: 15.5.0 -",
    "tvOS: 18.5.0 -",
    "visionOS: 2.5.0 -",
    "watchOS: 11.5.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "Accelerate",
  "identifier" : "/documentation/Accelerate/SparseMultiply(_:_:)-34fp6",
  "metadataVersion" : "0.1.0",
  "role" : "Function",
  "symbol" : {
    "kind" : "Function",
    "modules" : [
      "Accelerate"
    ],
    "preciseIdentifier" : "c:@F@SparseMultiply#$@SA@SparseOpaqueSubfactor_Complex_Float#$@SA@DenseMatrix_Complex_Float#"
  },
  "title" : "SparseMultiply(_:_:)"
}
-->

# SparseMultiply(_:_:)

Perform the multiply operation `Y = Subfactor * X` in place for complex float values.

```
func SparseMultiply(_ Subfactor: SparseOpaqueSubfactor_Complex_Float, _ XY: DenseMatrix_Complex_Float)
```

## Parameters

`Subfactor`

(input) The subfactor to multiply by, as returned by
`SparseCreateSubfactor()`.

`XY`

(input/output) On input, the matrix `X`. On return it is overwritten
with the matrix `Y`. If `Subfactor` is `m x n`, then `XB` must have dimension
`k x nrhs`, where `k = max(m, n)` and `nrhs` is the number of right-hand
side vectors. If `m != n`, then only the first `min(m,n)` entries are
used for input or output as approriate.

---

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)