Contents

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

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

Declaration

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.

Mentioned in

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.

See Also

Support for complex coordinate format arrays