rtable_split_unit
extract data and unit from a Units indexing function of an rtable
Calling Sequence
Parameters
Description
Examples
Compatibility
rtable_split_unit(A)
A
-
rtable
The rtable_split_unit(A) function, where A is an Array, Matrix, or Vector, returns substructures pertaining to the Units indexing function property of A. If A is an rtable that does not have a Units indexing function, then NULL is returned.
In the case that A is an Array, this is equivalent to op(1, A).
You can also use MatrixOptions or VectorOptions with the shape parameter to obtain the indexing functions (shape) for Matrices and Vectors, respectively.
Create a vector with each entry in meters
M≔Vector⁡2,i↦i⋅Unit⁡m,shape=Unit⁡m
M≔m2⁢m
The split data will be the default unit, and the vector data without any units
rtable_split_unit⁡M
m,12
After assigning Unit(s) into the second entry, there is no longer a single unit that can apply to every entry in the vector. The split data will be a vector of units that matches the dimensions such that a complete point is an entry from the unit part times the entry at the same index in the data part.
M2≔3⁢Unit⁡s
M2≔3⁢s
ms,13
The rtable_split_unit command was introduced in Maple 2024.
For more information on Maple 2024 changes, see Updates in Maple 2024.
See Also
indexfcn,Units
rtable indexing functions
rtable_indfns
rtable_set_indfn
Units:-Simple
Units:-Unit
Download Help Document