Function: math[redefdim] - redefine an array or a matrix

Calling Sequence:

redefdim(A, r);

Parameters:

A - an array or a matrix
r - a range or a sequence of ranges

Description:

This function lets you easily redefine the dimensions of an existing array or matrix.

The redefined array or matrix is automatically assigned the first argument A.

This function is part of the math package, and so can be used only after performing the command with(math) or with(math, redefdim).

Examples:

> with(math, redefdim);

[Maple Math]

> A := array(1 .. 2, 1 .. 2, [[1, 2], [3, 4]]);

[Maple Math]

> redefdim(A, 1 .. 3, 1 .. 4);

[Maple Math]

> redefdim(A, 1 .. 2, 1 .. 2);

[Maple Math]

> redefdim(A, 1 .. 2, 1 .. 1);

[Maple Math]

See Also:

array , linalg/matrix .

Version History:

Version 1.0.0 - September 27, 1997

Version 1.0.1 - January 01, 1999