SparseConvertFromCoordinate(_:_:_:_:_:_:_:_:)
Converts from coordinate format arrays to a matrix of real double-precision values, dropping out-of-range entries and summing duplicates.
Declaration
func SparseConvertFromCoordinate(_ rowCount: Int32, _ columnCount: Int32, _ blockCount: Int, _ blockSize: UInt8, _ attributes: SparseAttributes_t, _ row: UnsafePointer<Int32>, _ column: UnsafePointer<Int32>, _ data: UnsafePointer<Double>) -> SparseMatrix_DoubleParameters
- 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
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
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.