ecl-logo Documentation

QuantityMatrixP

QuantityMatrixP[]patt

returns pattern that matches any NxM quantity array.

QuantityMatrixP[units]patt

additionally requires the units of the item being checked are compatible with units.

Details

    Input
    Output

Examples

Basic Examples  (4)

A quantity matrix with any units:

Specify the units:

Returns False if units are not compatible:

Returns False for other-dimensional QAs:

Additional Examples  (3)

Returns False for non-QA inputs:

Remains unevaluated if second argument is not a valid unit specification:

Unit specification can contain unit strings: