MTM
mldivide
left matrix division
Calling Sequence
Parameters
Description
Examples
mldivide(A,B)
A
-
matrix, vector, array, or scalar
B
If A is a square matrix and B is a matrix, then mldivide(A,B) computes X, where X is the solution to the matrix equation A * X=B.
If A is a non-square matrix and B is a matrix, then mldivide(A,B) computes X, where X is a solution to the linear system A * X=B, in the least squares sense.
Maple normally treats arrays and vectors as distinct from matrices, in some cases not permitting a matrix operation when the given argument is not specifically declared as a matrix. This function implicitly extends arrays and vectors to 2 dimensions. Notably, n-element column vectors are treated as n x 1 matrices. Also, n-element row vectors and 1-D arrays are treated as 1 x n matrices.
If A is a scalar, then mldivide(A,B) computes ldivide(A,B).
If B is a scalar, then mldivide(A,B) is computed as if B is a 1 x 1 matrix.
with⁡MTM:
A≔Matrix⁡1,2,1,4,5,6,2,8,1
A≔121456281
B≔Vectorcolumn⁡8,32,21
B≔83221
mldivide⁡A,B
123
B≔Matrix⁡8,20,32,32,77,122,21,54,87
B≔820323277122215487
147258369
A≔Matrix⁡1,2,1,4,5,6
A≔121456
B≔Vectorcolumn⁡8,32
B≔832
523156318431
B≔Matrix⁡8,20,32,32,77,122
B≔820323277122
523141963156315254318431628831
See Also
LinearAlgebra[LeastSquares]
LinearAlgebra[LinearSolve]
MTM[ldivide]
MTM[mrdivide]
MTM[rdivide]
Download Help Document