Ravel: Difference between revisions

Jump to navigation Jump to search
13 bytes removed ,  16:08, 24 October 2019
no edit summary
Miraheze>Marshall
mNo edit summary
Miraheze>Adám Brudzewsky
No edit summary
Line 1: Line 1:
In the APL [[array model]], an array's ravel is the [[vector]] containing all its [[elements]] in [[ravel order]]. The Ravel function, which was introduced in [[APL\360]] and is universally spelled <code>,</code>, returns the ravel of an array. It is equivalent to [[Reshape|reshaping]] an array using its [[bound]] for the new [[shape]]. Reshaping the ravel using the original array's shape restores that array.
{{Primitive|,|Ravel}} is a [[primitive function]] introduced in [[APL\360]] which returns the ''ravel'' of an array. In the APL [[array model]], an array's ravel is the [[vector]] containing all its [[elements]] in [[ravel order]]. It is equivalent to [[Reshape|reshaping]] an array using its [[bound]] for the new [[shape]]. Reshaping the ravel using the original array's shape restores that array.


In some APLs an [[Function axis|axis]] may be specified for Ravel in order to combine only some [[Axis|axes]] of an array, or insert a length-1 axis.
In some APLs an [[Function axis|axis]] may be specified for Ravel in order to combine only some [[Axis|axes]] of an array, or insert a length-1 axis.

Navigation menu