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
MatrixVectorMultiply(A, U, options)
VectorMatrixMultiply(V, A, options)
A
-
Matrix
U
column Vector
V
row Vector
options
(optional); constructor options for the result object
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.
with⁡LinearAlgebra:
u≔1|0|0|2
u≔1002
M≔5,0,0,0|0,1,0,0|0,0,2,0|0,0,0,1
M≔5000010000200001
v≔x,y,z,1
v≔xyz1
MatrixVectorMultiply⁡M,v
5⁢xy2⁢z1
VectorMatrixMultiply⁡u,M
5002
See Also
dot
LinearAlgebra[Multiply]
Vector
Download Help Document