SparseCompressedColumnMatrix<T>.NonzeroElements Property

Gets a collection of the nonzero elements of the matrix.

Definition

Namespace: Extreme.Mathematics.LinearAlgebra
Assembly: Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.23
C#
public override IEnumerable<RowColumnValueTriplet<T>> NonzeroElements { get; }

Property Value

IEnumerable<RowColumnValueTriplet<T>>

Remarks

Use this property to enumerate over the nonzero components of a sparse matrix. The object that is returned implements IEnumerable. Use this object's GetEnumerator() method to get access to the elements.

The elements of the enumeration are of type RowColumnValueTriplet<T>. These are triplets consisting of the row, the column and the value of the nonzero component.

See Also