diagonal(*values)
Class Public methods
Creates a matrix where the diagonal elements are composed of
values
.
Matrix.diagonal(9, 5, -3) => 9 0 0 0 5 0 0 0 -3
Creates a matrix where the diagonal elements are composed of
values
.
Matrix.diagonal(9, 5, -3) => 9 0 0 0 5 0 0 0 -3
Please login to continue.