Loading

RESHAPE


lists tensors
Since v2.1.0
Available on all platforms
See also

The RESHAPE function modifies the shape of a list.

The new shape is specified using a list of dimensions, the first being the outer dimension. Such a shape can be produced by SHAPE.

Note that the number of elements in the array must be compatible with the requested shape, i.e. the product of the dimensions must match the number of elements in the input list.

Signature

Examples

[ 'a' 'b' 'c' ] [ 1 1 3 ] RESHAPE [ [ 'd' 'e' ] [ 'f' 'g' ] ] [ 1 4 1 ] RESHAPE