Click or drag to resize

MatrixBuilderTSparseFromCompressedSparseRowFormat Method

Create a new sparse matrix from a compressed sparse row 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.LinearAlgebra
Assembly: AltaxoCore (in AltaxoCore.dll) Version: 4.8.3179.0 (4.8.3179.0)
Syntax
C#
public Matrix<T> SparseFromCompressedSparseRowFormat(
	int rows,
	int columns,
	int valueCount,
	int[] rowPointers,
	int[] columnIndices,
	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.
rowPointers  Int32
The row pointer array of the compressed sparse row format.
columnIndices  Int32
The column index array of the compressed sparse row format.
values  T
The data array of the compressed sparse row format.

Return Value

MatrixT
The sparse matrix from the compressed sparse row format.
Remarks
Duplicate entries will be summed together and explicit zeros will be not intentionally removed.
See Also