MathNet.Numerics.LinearAlgebra.Single.DenseMatrix.OfIndexed C# (CSharp) Method

OfIndexed() public static method

Create a new dense matrix as a copy of the given indexed enumerable. Keys must be provided at most once, zero is assumed if a key is omitted. This new matrix will be independent from the enumerable. A new memory block will be allocated for storing the matrix.
public static OfIndexed ( int rows, int columns, IEnumerable enumerable ) : DenseMatrix
rows int
columns int
enumerable IEnumerable
return DenseMatrix
        public static DenseMatrix OfIndexed(int rows, int columns, IEnumerable<Tuple<int, int, float>> enumerable)
        {
            return new DenseMatrix(DenseColumnMajorMatrixStorage<float>.OfIndexedEnumerable(rows, columns, enumerable));
        }