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

Online Help

All Products    Maple    MapleSim


LinearAlgebra

  

MatrixVectorMultiply

  

compute the product of Matrix and a column Vector

  

VectorMatrixMultiply

  

compute the product of a  row Vector and a Matrix

 

Calling Sequence

Parameters

Description

Examples

Calling Sequence

MatrixVectorMultiply(A, U, options)

VectorMatrixMultiply(V, A, options)

Parameters

A

-

Matrix

U

-

column Vector

V

-

row Vector

options

-

(optional); constructor options for the result object

Description

• 

The MatrixVectorMultiply(A, U) function, where U is a column Vector, computes the product A·U and returns a column Vector.

• 

The VectorMatrixMultiply(V, A) function, where V is a row Vector, computes the product V·A and returns a row Vector.

• 

The constructor options provide additional information (readonly, shape, storage, order, datatype, and attributes) to the Vector constructor that builds the result. These options may also be provided in the form outputoptions=[...], where [...] represents a Maple list.  If a constructor option is provided in both the calling sequence directly and in an outputoptions option, the latter takes precedence (regardless of the order).

• 

This function is part of the LinearAlgebra package, and so it can be used in the form MatrixVectorMultiply(..) only after executing the command with(LinearAlgebra). However, it can always be accessed through the long form of the command by using LinearAlgebra[MatrixVectorMultiply](..).

• 

This function has an equivalent shortcut notation, A·U. For more information, see the dot operator.

Examples

withLinearAlgebra:

u1|0|0|2

u1002

(1)

M5,0,0,0|0,1,0,0|0,0,2,0|0,0,0,1

M5000010000200001

(2)

vx,y,z,1

vxyz1

(3)

MatrixVectorMultiplyM,v

5xy2z1

(4)

VectorMatrixMultiplyu,M

5002

(5)

See Also

dot

LinearAlgebra[Multiply]

Matrix

Vector