The Types module provides tools for managing and inspecting data types in Nelson.
It provides functions to query variable types, distinguish numeric, logical, string, and object values, and work with specialized types such as sparse or integer arrays.
The module also supports creation of objects and validation of variable names, helping ensure type safety and consistency across scripts and functions.
For C++ extension and embedding code, see C++ value API.
-
class
Return a variable class name or create an old-style named object.
-
cpp_api
C++ value API conventions for Nelson core types.
-
isa
Return true if a variable has the requested class or type.
-
iscell
Return true if variable var is a cell array.
-
ischar
Return true if variable var is a char array.
-
isclass
Return true if variable var is a class object.
-
isdouble
Return true if variable var is a double matrix.
-
isempty
Return true if variable var is an empty matrix.
-
isenum
Determine whether the input is an enumeration.
-
isfloat
Return true if variable var is a single or double matrix.
-
ishandle
Return true if variable var is a handle object.
-
isint16
Return true if variable var is a signed 16-bit integer type array.
-
isint32
Return true if variable var is a signed 32-bit integer type array.
-
isint64
Return true if variable var is a signed 64-bit integer type array.
-
isint8
Return true if variable var is a signed 8-bit integer type array.
-
isinteger
Return true if variable var is a integer type array.
-
islogical
Return true if variable var is a logical.
-
isnumeric
Return true if variable var is a numeric array.
-
isobject
Return true if a variable is an object.
-
isreal
Return true if all imaginary part is a zero array.
-
issingle
Return true if variable var is a single matrix.
-
issparse
Return true if variable var is a sparse array.
-
isstring
Return true if variable var is a string array.
-
isstruct
Return true if variable var is a structure.
-
isuint16
Return true if variable var is an unsigned 16-bit integer type array.
-
isuint32
Return true if variable var is an unsigned 32-bit integer type array.
-
isuint64
Return true if variable var is an unsigned 64-bit integer type array.
-
isuint8
Return true if variable var is an unsigned 8-bit integer type array.
-
isvarname
Return true if input is valid variable name.
-
memoize
Add memoization to a function.
-
missing
Return a missing value.
-
nelson.indexing.IndexingOperation
Describe one element of an indexing expression.
-
nelson.indexing.IndexingOperationType
Kind of a single indexing operation.
-
nelson.lang.makeUniqueStrings
Make strings unique by adding numeric suffixes.
-
nelson.lang.makeValidName
Convert text to valid Nelson variable names.
-
nelson.mixin.indexing.RedefinesBrace
Customize brace indexing of a class.
-
nelson.mixin.indexing.RedefinesDot
Customize dot indexing of a class.
-
nelson.mixin.indexing.RedefinesParen
Customize parentheses indexing of a class.
-
nelson.mixin.util.PropertyGroup
A titled group of properties for custom object display.
-
underlyingType
Underlying type of an array.