SparseCompressedRowMatrixStorageTOfCompressedSparseColumnFormat Method |
Create a new sparse matrix storage from a compressed sparse column (CSC) format.
This new storage will be independent from the given arrays.
A new memory block will be allocated.
Namespace: Altaxo.Calc.LinearAlgebra.StorageAssembly: AltaxoCore (in AltaxoCore.dll) Version: 4.8.3179.0 (4.8.3179.0)
Syntax public static SparseCompressedRowMatrixStorage<T> OfCompressedSparseColumnFormat(
int rows,
int columns,
int valueCount,
int[] rowIndices,
int[] columnPointers,
T[] values
)
Parameters
- rows Int32
- The number of rows.
- columns Int32
- The number of columns.
- valueCount Int32
- The number of stored values including explicit zeros.
- rowIndices Int32
- The row index array of the compressed sparse column format.
- columnPointers Int32
- The column pointer array of the compressed sparse column format.
- values T
- The data array of the compressed sparse column format.
Return Value
SparseCompressedRowMatrixStorageTThe sparse storage from the compressed sparse column format.
Remarks Duplicate entries will be summed together and explicit zeros will be not intentionally removed.
See Also