NAME

packtype - determine pseudo-type for packing

SYNOPSIS

type.packtype([rank])

DESCRIPTION

The packtype() method determines the appropriate pseudo-type (e.g., PackInt, PackFloat, etc.) for a packed array of the given scalar type and rank. If rank is omitted, it defaults to 1.

RETURN VALUE

A Type value representing the packing type.

ERRORS

ArgCheck if more than 2 arguments are provided.
TypeCheck if the first argument is not a type or the second is not numeric.

EXAMPLE

    typeof(1).packtype()
PackInt

    typeof('a').packtype(1)
String

    typeof('a').packtype(2)
PackChar

SEE ALSO

pack
typeof