Skip to content

ToPackedArray

Status: Stable

documented, exercised by the test suite and/or worked examples, with no known limitations recorded.

Description

ToPackedArray[list] is ToNDArray[list]: it returns list stored as a dense machine-precision buffer. The result is still a List -- same Head, same printed form, same elements -- but NDArrayQ gives True for it. Provided under Mathematica's name for the same operation; see ToNDArray.

Examples (1)

Every input below was run against the current Mathilda build and its output recorded.

Basic examples (1)

In[1]:= ToPackedArray[{1., 2., 3.}] === ToNDArray[{1., 2., 3.}]
Out[1]= True

Implementation notes

Attributes: Protected.

References

See also: ToNDArray