<!--
{
  "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/SparseConvertFromCoordinate(_:_:_:_:_:_:_:_:)-58kub",
  "metadataVersion" : "0.1.0",
  "role" : "Function",
  "symbol" : {
    "kind" : "Function",
    "modules" : [
      "Accelerate"
    ],
    "preciseIdentifier" : "c:@F@SparseConvertFromCoordinate#I#I#L#c#$@SA@SparseAttributesComplex_t#*1I#S1_#*1<d#"
  },
  "title" : "SparseConvertFromCoordinate(_:_:_:_:_:_:_:_:)"
}
-->

# SparseConvertFromCoordinate(_:_:_:_:_:_:_:_:)

Convert from coordinate format arrays to a matrix of complex double values,
dropping out-of-range entries and summing duplicates.

```
func SparseConvertFromCoordinate(_ rowCount: Int32, _ columnCount: Int32, _ blockCount: Int, _ blockSize: UInt8, _ attributes: SparseAttributesComplex_t, _ row: UnsafePointer<Int32>, _ column: UnsafePointer<Int32>, _ data: OpaquePointer) -> SparseMatrix_Complex_Double
```

## Parameters

`rowCount`

(input) Number of rows in structure.

`columnCount`

(input) Number of columns in structure.

`blockCount`

(input) Number of blocks in matrix.

`blockSize`

(input) Block size for data storage on both input and
output.

`attributes`

(input) Attributes of matrix to create. The matrix will
be forced to conform to the specified attributes by copying or dropping
elements as needed.

`row`

(input) Row indices of matrix structure.

`column`

(input) Column indices of matrix structure.

`data`

(input) The contents of the structurally non-zero (block)
matrix elements.

## Return Value

A new `SparseMatrix_Complex_Double` object. When you are done with this
matrix, release the memory that has been allocated by calling
`SparseCleanup` on it.

## Discussion

For symmetric (Hermitian) matrices, entries are accepted in either triangle
(if they are in the “wrong” triangle as specified by attributes.triangle,
they are transposed, and if an entry is already present, are treated as
duplicates and summed).
For triangular matrices, entries in the “wrong” triangle as specified by
attributes.triangle are treated as out-of-range and dropped.

---

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)