vector2 diag(matrix2 m)
vector diag(matrix3 m)
vector4 diag(matrix m)
Extracts the main diagonal of the input matrix.
matrix2 diag(vector2 v)
matrix3 diag(vector v)
matrix diag(vector4 v)
Constructs a diagonal matrix with the input vector as its main diagonal.
See also | |
matrix |
|
vector |