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

Online Help

All Products    Maple    MapleSim


ArrayTools

  

MultiplyAlongDimension

 

Calling Sequence

Parameters

Description

Examples

Calling Sequence

MultiplyAlongDimension(M)

MultiplyAlongDimension(M, dim)

Parameters

M

-

Matrix, Vector, or Array

dim

-

(optional) dimension in which to multiply the elements

Description

• 

The MultiplyAlongDimension command multiplies together the elements in dimension dim of a N-dimensional Array to produce an Array with (N-1) dimensions.

• 

When dim is not specified, the first non-singleton dimension is used for multiplying.  If the dimension specified is a higher dimension than the number of dimensions in the input, the input itself is returned.

• 

If MultiplyAlongDimension is applied to a Vector, a constant is returned.

• 

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

Examples

withArrayTools:

MMatrixa,b,c,d,e,f

Mabcdef

(1)

MultiplyAlongDimensionM,1

adbecf

(2)

MultiplyAlongDimensionM,2

abcdef

(3)

vVector1,2,3,4

v1234

(4)

MultiplyAlongDimensionv

24

(5)

See Also

ArrayTools

ArrayTools[AddAlongDimension]