Matrix.Create Sparse Symmetric<T>(Int 32, Int 32[], Int 32[], T[]) Method
Constructs a new sparse matrix.
Definition
Namespace: Extreme.Mathematics
Assembly: Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.23
C#
A SparseCompressedColumnMatrix<T>.
Assembly: Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.23
public static SparseCompressedColumnMatrix<T> CreateSparseSymmetric<T>(
int rowCount,
int[] rowIndexes,
int[] columnIndexes,
T[] values
)
Parameters
- rowCount Int32
- The number of rows and columns.
- rowIndexes Int32[]
- An integer array that contains the row indexes of the nonzero elements.
- columnIndexes Int32[]
- An integer array that contains the column indexes of the nonzero elements.
- values T[]
- An array that contains the values of the nonzero elements.
Type Parameters
- T
Return Value
SparseCompressedColumnMatrix<T>A SparseCompressedColumnMatrix<T>.
Remarks
Only the elements on or above the diagonal should be included.
Exceptions
Argument | rowCount is less than zero. |
Argument | values is null -or- rowIndexes is null -or- columnIndexes is null |
Dimension | The length of rowIndexes is not equal to the length of values. -or- The length of columnIndexes is not equal to the length of values. |