MatrixMathEnumerateElementsIndexedT Method |
Enumerates the elements of the specified matrix, yielding each element's row and column indices along with the element value.
Namespace: Altaxo.Calc.LinearAlgebraAssembly: AltaxoCore (in AltaxoCore.dll) Version: 4.8.3572.0 (4.8.3572.0)
Syntaxpublic static IEnumerable<(int row, int column, T )> EnumerateElementsIndexed<T>(
IROMatrix<T> matrix,
Zeros zeros = Zeros.AllowSkip
)
where T : struct, new()
Parameters
- matrix IROMatrixT
- The matrix to enumerate.
- zeros Zeros (Optional)
- Specifies how to handle zero elements. Default is to allow skipping zeros.
Type Parameters
- T
- The matrix element type.
Return Value
IEnumerableValueTupleInt32,
Int32,
TAn
IEnumerableT sequence that contains tuples with the row, column, and value of each element in the matrix.
See Also