mldivide - Maple Help
For the best experience, we recommend viewing online help using Google Chrome or Microsoft Edge.

Online Help

All Products    Maple    MapleSim


MTM

  

mldivide

  

left matrix division

 

Calling Sequence

Parameters

Description

Examples

Calling Sequence

mldivide(A,B)

Parameters

A

-

matrix, vector, array, or scalar

B

-

matrix, vector, array, or scalar

Description

• 

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.

Examples

withMTM:

AMatrix1,2,1,4,5,6,2,8,1

A121456281

(1)

BVectorcolumn8,32,21

B83221

(2)

mldivideA,B

123

(3)

AMatrix1,2,1,4,5,6,2,8,1

A121456281

(4)

BMatrix8,20,32,32,77,122,21,54,87

B820323277122215487

(5)

mldivideA,B

147258369

(6)

AMatrix1,2,1,4,5,6

A121456

(7)

BVectorcolumn8,32

B832

(8)

mldivideA,B

523156318431

(9)

AMatrix1,2,1,4,5,6

A121456

(10)

BMatrix8,20,32,32,77,122

B820323277122

(11)

mldivideA,B

523141963156315254318431628831

(12)

See Also

LinearAlgebra[LeastSquares]

LinearAlgebra[LinearSolve]

MTM[ldivide]

MTM[mrdivide]

MTM[rdivide]