@stdlib/strided
Version:
Strided.
46 lines (32 loc) • 1.31 kB
Plain Text
{{alias}}( dtypes1, dtypes2[, options] )
Generates a list of masked unary interface signatures from strided array
data types.
The function returns a strided array having a stride length of three (i.e.,
every three elements define a masked unary interface signature).
For each signature (i.e., set of three consecutive non-overlapping strided
array elements), the first element is the input data type, the second
element is the mask data type, and the last element is the return data type.
All signatures follow type promotion rules.
The mask array data type is always `uint8`.
Parameters
----------
dtypes1: ArrayLike<any>
List of supported data types for the input argument.
dtypes2: ArrayLike<any>
List of supported data types for the output argument.
options: Object (optional)
Options.
options.enums: boolean (optional)
Boolean flag indicating whether to return signatures as a list of data
type enumeration constants. Default: false.
Returns
-------
out: Array
Strided array containing masked unary interface signatures.
Examples
--------
> var dt = {{alias:/strided/dtypes}}();
> var out = {{alias}}( dt, dt )
[...]
See Also
--------