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

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.

> 

with⁡linalg:

> 

scalarmul⁡array⁡1,2,3,4,2

2468

(1)
> 

scalarmul⁡array⁡1,2,3,4,3

36912

(2)
> 

v≔vector⁡4,2,x,6,−3

v≔2x6−3

(3)
> 

scalarmul⁡v,x

2⁢xx26⁢x−3⁢x

(4)
> 

scalarmul⁡transpose⁡v,x

transpose⁡2⁢xx26⁢x−3⁢x

(5)

See Also

linalg(deprecated)[mulcol]

linalg(deprecated)[multiply]

LinearAlgebra