As of Version 12.1, the generic StructuredArray object has been superseded by individual types such as QuantityArray and SymmetrizedArray.
represents a d1×d2×… array with structure type st and specific content data.
- A structured array object created in earlier versions of the Wolfram Language will be converted to an appropriate, type-specific object upon evaluation.
- Normal[sa] gives the ordinary array corresponding to a structured array object.
- SparseArray[sa] gives a sparse array corresponding to a structured array object.
- The elements in a structured array need not be numeric.
- The individual elements of a structured array cannot themselves be lists.
- List and matrix operations are typically set up to work as they do for corresponding normal array.
- Functions with attribute Listable are automatically threaded over the individual elements of the ordinary arrays represented by structured arrays. If the function is not supported for the structure type, then the result will be returned as an ordinary or sparse array.
- Part extracts specified parts of the array represented by a structured array object, rather than parts of the expression itself.
- Structured arrays are treated as a raw object by functions like AtomQ and for purposes of pattern matching.
- Dimensions gives the dimensions of a structured array.
Examplesopen allclose all
Basic Examples (3)
By default, ArrayDepth computes depths for all types of arrays:
Introduced in 2012