This operation calculates the residual of its inputs which is:
Array1 - Array2 × Array3
If Array3 is an approximation to a solution of Array2 × X = Array1, then this provides a correction to improve that solution.
There are many requirements for the input values:
- Array1 and Array3 must either both be vectors or both be matrices.
- If Array1 and Array3 are both matrices, they must have the same number of columns.
- If Array1 is a matrix, then Array1 must have the same number of rows as in Array2.
- If Array1 is a vector, then the number of values in Array1 must be the same as the number of rows in Array2.
- Array2 must be a matrix.
- If Array3 is a matrix, then the number of rows of Array3 must be the same as the number of columns of Array2.
- If Array3 is a vector, then the number of values of Array3 must be the same as the number of columns of Array2.