Student[LinearAlgebra]
Diagonal
return the diagonal of a Matrix
Calling Sequence
Parameters
Description
Examples
Diagonal(A, options)
A
-
Matrix
options
(optional) parameters; for a complete list, see LinearAlgebra[Diagonal]
The Diagonal(A) command returns the main diagonal of the Matrix A as a (column) Vector.
with⁡StudentLinearAlgebra:
A≔1,2,3|4,5,6|7,8,9|10,11,12
A≔147102581136912
Diagonal⁡A
159
See Also
LinearAlgebra[Diagonal]
Student[LinearAlgebra][DiagonalMatrix]
Download Help Document