CreateMatrixSparseFromCoordinateFormatT Method |
Create a new sparse matrix from a coordinate format.
This new matrix will be independent from the given arrays.
A new memory block will be allocated for storing the matrix.
Namespace: Altaxo.Calc.LinearAlgebraAssembly: AltaxoCore (in AltaxoCore.dll) Version: 4.8.3179.0 (4.8.3179.0)
Syntax public static Matrix<T> SparseFromCoordinateFormat<T>(
int rows,
int columns,
int valueCount,
int[] rowIndices,
int[] columnIndices,
T[] values
)
where T : struct, new(), IEquatable<T>, IFormattable
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 coordinate format.
- columnIndices Int32
- The column index array of the coordinate format.
- values T
- The data array of the coordinate format.
Type Parameters
- T
[Missing <typeparam name="T"/> documentation for "M:Altaxo.Calc.LinearAlgebra.CreateMatrix.SparseFromCoordinateFormat``1(System.Int32,System.Int32,System.Int32,System.Int32[],System.Int32[],``0[])"]
Return Value
MatrixTThe sparse matrix from the coordinate format.
Remarks Duplicate entries will be summed together and explicit zeros will be not intentionally removed.
See Also