Sparse Compressed Column Matrix<T>.Get Nonzero Elements Method
Returns the nonzero components
Definition
Namespace: Numerics.NET.LinearAlgebra
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.3
C#
An array containing the nonzero components of the SparseCompressedColumnMatrix<T>.
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.3
public override T[] GetNonzeroElements(
out int[] rows,
out int[] columns
)
Parameters
- rows Int32[]
- On return, an integer array containing the row indexes of the nonzero components.
- columns Int32[]
- On return, an integer array containing the column indexes of the nonzero components.
Return Value
T[]An array containing the nonzero components of the SparseCompressedColumnMatrix<T>.