>shaped-array ( array -- shaped-array )
NumPy-style shaped-array operations

Next:reshape ( array shape -- result )


Vocabulary
arrays.shaped

Inputs
arraya shaped-array, a sequence, or a number


Outputs
shaped-arraya shaped-array


Word description
Converts a rectangular nested sequence to flat row-major storage. A number becomes a zero-rank array with one element. A shaped array is returned unchanged.

Definition

GENERIC: >shaped-array ( array -- shaped-array )


Methods