linalg(deprecated)/scalarmul - Maple Help
For the best experience, we recommend viewing online help using Google Chrome or Microsoft Edge.

Online Help

All Products    Maple    MapleSim


Home : Support : Online Help : linalg(deprecated)/scalarmul

linalg(deprecated)

  

scalarmul

  

multiply a matrix or vector by an expression

 

Calling Sequence

Parameters

Description

Examples

Calling Sequence

scalarmul(A, expr)

Parameters

A

-

matrix or vector

expr

-

scalar expression

Description

• 

Important: The linalg package has been deprecated. Use the superseding command LinearAlgebra[Multiply], instead.

  

- For information on migrating linalg code to the new packages, see examples/LinearAlgebraMigration.

• 

The call scalarmul(A, expr) returns the matrix or vector which is the result of multiplying every entry in A by the scalar value expr.

• 

The command with(linalg,scalarmul) allows the use of the abbreviated form of this command.

Examples

Important: The linalg package has been deprecated. Use the superseding command LinearAlgebra[Multiply], instead.

withlinalg:

scalarmularray1,2,3,4,2

2468

(1)

scalarmularray1,2,3,4,3

36912

(2)

vvector4,2,x,6,3

v2x6−3

(3)

scalarmulv,x

2xx26x3x

(4)

scalarmultransposev,x

transpose2xx26x3x

(5)

See Also

linalg(deprecated)[mulcol]

linalg(deprecated)[multiply]

LinearAlgebra