Performs a subtraction of two matrices using two-dimensional array representation and writes the difference in place of the subtrahend.
- Template Parameters
-
ValueType | A type of a matrix element. |
- Parameters
-
[in] | minuend_column_matrix | A pointer to a buffer holding the minuend matrix of columns by rows elements to subtract from. |
[in,out] | subtrahend_column_matrix | A pointer to a buffer, that on input contains elements of the subtrahend which is a matrix of columns by rows elements. On output the buffer contains the result of the subtraction. |
| columns | A number of columns in the matrices to subtract. |
| rows | A number of rows in the matrices to subtract. |
- Exceptions
-
Any | exceptions that originate from subtraction or move-assignment of ValueType scalars. |
To subtract matrices writing the difference in place of the minuend rather than the subtrahend, use sub_matrix_inplace. To write the difference to a buffer different from buffers of both of the operands, use either sub_matrix_copy, to replace some other existing matrix with the difference, or sub_matrix_construct to construct the result of addition in an uninitialized buffer.