MatrixDiagonal Method (Int32, Vector)
|
Creates square matrix with given elements on the main diagonal.
Namespace:
FinMath.LinearAlgebra
Assembly:
FinMath (in FinMath.dll) Version: 2.4.7-0a995bd0ea1854c2c868ec3f8dae606c5777e170
Syntax public static Matrix Diagonal(
int order,
Vector diagonal
)
Parameters
- order
- Type: SystemInt32
The order of matrix to create.
- diagonal
- Type: FinMath.LinearAlgebraVector
The vector of diagonal elements.
Return Value
Type:
Matrix
The created matrix.
See Also