Click or drag to resize

MatrixBuilderTDiagonal Method

Overload List
 NameDescription
Public methodDiagonal(DiagonalMatrixStorageT) 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 methodDiagonal(T) Create a new square diagonal matrix directly binding to a raw array. The array is assumed to represent the diagonal values and is used directly without copying. Very efficient, but changes to the array and the matrix will affect each other.
Public methodDiagonal(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 methodDiagonal(Int32, Int32, T) Create a new diagonal matrix and initialize each diagonal value to the same provided value.
Public methodDiagonal(Int32, Int32, T) Create a new diagonal matrix with the given number of rows and columns directly binding to a raw array. The array is assumed to represent the diagonal values and is used directly without copying. Very efficient, but changes to the array and the matrix will affect each other.
Public methodDiagonal(Int32, Int32, FuncInt32, T) Create a new diagonal matrix and initialize each diagonal value using the provided init function.
Top
See Also