Performs an in-place negation of a matrix represented by a two-dimensional array.
- Template Parameters
-
ValueType | A type of a matrix element. |
- Parameters
-
[in,out] | column_matrix | A pointer to a matrix of columns by rows elements to be replaced by their additive inversions. |
| columns | A number of columns in the matrix to negate. |
| rows | A number of rows in the matrix to negate. |
- Exceptions
-
Any | exceptions thrown from additive inversion or move-assignment of ValueType elements. |
To replace a matrix with an additive inversion of some other matrix, use neg_matrix_copy. To construct an additive inversion of a matrix in some uninitialized memory space, use neg_matrix_construct.