---
title: "SparseConvertFromCoordinate(_:_:_:_:_:_:_:_:)"
framework: accelerate
role: symbol
role_heading: Function
path: "accelerate/sparseconvertfromcoordinate(_:_:_:_:_:_:_:_:)-4n2el"
---

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

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

## Declaration

```swift
func SparseConvertFromCoordinate(_ rowCount: Int32, _ columnCount: Int32, _ blockCount: Int, _ blockSize: UInt8, _ attributes: SparseAttributes_t, _ row: UnsafePointer<Int32>, _ column: UnsafePointer<Int32>, _ data: UnsafePointer<Double>) -> SparseMatrix_Double
```

## Parameters

- `rowCount`: The number of rows in the structure.
- `columnCount`: The number of columns in the structure.
- `blockCount`: The number of blocks in the matrix.
- `blockSize`: The block size for data storage on both input and output.
- `attributes`: The attributes of the matrix to create. The conversion forces the matrix to conform to the specified attributes by copying or dropping elements as necessary.
- `row`: The row indices of the matrix structure.
- `column`: The column indices of the matrix structure.
- `data`: The contents of the structurally nonzero (block) matrix elements.

## Mentioned in

Creating a sparse matrix from coordinate format arrays

## Return Value

Return Value A new SparseMatrix_Double object. After you finish using a sparse matrix, call SparseCleanup(_:) to release its references to any memory that the Sparse Solvers library allocates.

## Discussion

Discussion The conversion drops out-of-range entries, and sums duplicate entries. You may supply entries in either triangle for symmetric matrices. The conversion transposes entries in the triangle that triangle doesn’t specify, and sums duplicate entries. For triangular matrices, the conversion drops entries in the triangle that triangle doesn’t specify.

## See Also

### Support for coordinate format arrays

- [Creating a sparse matrix from coordinate format arrays](accelerate/creating-a-sparse-matrix-from-coordinate-format-arrays.md)
- [SparseConvertFromCoordinate(_:_:_:_:_:_:_:_:)](accelerate/sparseconvertfromcoordinate(_:_:_:_:_:_:_:_:)-4n2th.md)
- [SparseConvertFromCoordinate(_:_:_:_:_:_:_:_:_:_:)](accelerate/sparseconvertfromcoordinate(_:_:_:_:_:_:_:_:_:_:)-56hv8.md)
- [SparseConvertFromCoordinate(_:_:_:_:_:_:_:_:_:_:)](accelerate/sparseconvertfromcoordinate(_:_:_:_:_:_:_:_:_:_:)-84plp.md)
