Click or drag to resize

DiagonalMatrix Constructor

Overload List
 NameDescription
Public methodDiagonalMatrix(DiagonalMatrixStorageDouble) Create a new diagonal matrix straight from an initialized matrix storage instance. The storage is used directly without copying. Intended for advanced scenarios where you're working directly with storage for performance or interop reasons.
Public methodDiagonalMatrix(Int32) Create a new square diagonal matrix with the given number of rows and columns. All cells of the matrix will be initialized to zero.
Public methodDiagonalMatrix(Int32, Int32) Create a new diagonal matrix with the given number of rows and columns. All cells of the matrix will be initialized to zero.
Public methodDiagonalMatrix(Int32, Int32, Double) Create a new diagonal matrix with the given number of rows and columns. All diagonal cells of the matrix will be initialized to the provided value, all non-diagonal ones to zero.
Public methodDiagonalMatrix(Int32, Int32, Double) Create a new diagonal matrix with the given number of rows and columns directly binding to a raw array. The array is assumed to contain the diagonal elements only and is used directly without copying. Very efficient, but changes to the array and the matrix will affect each other.
Top
See Also