@stdlib/strided
Version:
Strided.
47 lines (33 loc) • 1.31 kB
Plain Text
{{alias}}( dtypes1, dtypes2, dtypes3[, options] )
Generates a list of binary interface signatures from strided array data
types.
The function returns a strided array having a stride length of `3` (i.e.,
every `3` elements define a binary interface signature).
For each signature (i.e., set of three consecutive non-overlapping strided
array elements), the first two elements are the input data types and the
third element is the return data type.
All signatures follow type promotion rules.
Parameters
----------
dtypes1: ArrayLike<any>
List of supported data types for the first input argument.
dtypes2: ArrayLike<any>
List of supported data types for the second input argument.
dtypes3: ArrayLike<any>
List of supported data types for the output value.
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 binary interface signatures.
Examples
--------
> var dt = {{alias:/strided/dtypes}}();
> var out = {{alias}}( dt, dt, dt )
[...]
See Also
--------