Sparse Matrix<T>.Get Nonzero Elements Method
Returns the nonzero components
Definition
Namespace: Extreme.Mathematics.LinearAlgebra
Assembly: Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.23
C#
An array containing the nonzero components of the SparseCompressedColumnMatrix<T>.
Assembly: Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.23
public abstract 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>.