MathNet.Numerics.LinearAlgebra.Single.DenseMatrix.OfDiagonalArray C# (CSharp) Метод

OfDiagonalArray() публичный статический Метод

Create a new dense matrix with the diagonal as a copy of the given array. This new matrix will be independent from the array. A new memory block will be allocated for storing the matrix.
public static OfDiagonalArray ( float diagonal ) : DenseMatrix
diagonal float
Результат DenseMatrix
        public static DenseMatrix OfDiagonalArray(float[] diagonal)
        {
            var m = new DenseMatrix(diagonal.Length, diagonal.Length);
            m.SetDiagonal(diagonal);
            return m;
        }

Same methods

DenseMatrix::OfDiagonalArray ( int rows, int columns, float diagonal ) : DenseMatrix