Calculates the negation of a matrix.
The matrix
const result = Chalkboard.matr.negate([[1, -2], [3, -4]]); // Returns [[-1, 2], [-3, 4]] Copy
const result = Chalkboard.matr.negate([[1, -2], [3, -4]]); // Returns [[-1, 2], [-3, 4]]
Calculates the negation of a matrix.