scalar(n, value)
Class Public methods
Creates an n
by n
diagonal matrix where each
diagonal element is value
.
Matrix.scalar(2, 5) => 5 0 0 5
Creates an n
by n
diagonal matrix where each
diagonal element is value
.
Matrix.scalar(2, 5) => 5 0 0 5
Please login to continue.