@stdlib/strided-base-binary

Apply a binary callback to elements in strided input arrays and assign results to elements in a strided output array.

https://github.com/stdlib-js/strided-base-binary

Science Score: 44.0%

This score indicates how likely this project is to be science-related based on various indicators:

  • CITATION.cff file
    Found CITATION.cff file
  • codemeta.json file
    Found codemeta.json file
  • .zenodo.json file
    Found .zenodo.json file
  • DOI references
  • Academic publication links
  • Committers with academic emails
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (14.8%) to scientific vocabulary

Keywords

apply array base binary foreach javascript map ndarray node node-js nodejs stdlib strided transform
Last synced: 4 months ago · JSON representation ·

Repository

Apply a binary callback to elements in strided input arrays and assign results to elements in a strided output array.

Basic Info
Statistics
  • Stars: 1
  • Watchers: 3
  • Forks: 0
  • Open Issues: 0
  • Releases: 0
Topics
apply array base binary foreach javascript map ndarray node node-js nodejs stdlib strided transform
Created over 4 years ago · Last pushed 5 months ago
Metadata Files
Readme Changelog Contributing License Code of conduct Citation Security

README.md

About stdlib...

We believe in a future in which the web is a preferred environment for numerical computation. To help realize this future, we've built stdlib. stdlib is a standard library, with an emphasis on numerical and scientific computation, written in JavaScript (and C) for execution in browsers and in Node.js.

The library is fully decomposable, being architected in such a way that you can swap out and mix and match APIs and functionality to cater to your exact preferences and use cases.

When you use stdlib, you can be absolutely certain that you are using the most thorough, rigorous, well-written, studied, documented, tested, measured, and high-quality code out there.

To join us in bringing numerical computing to the web, get started by checking us out on GitHub, and please consider financially supporting stdlib. We greatly appreciate your continued support!

Binary

NPM version Build Status Coverage Status <!-- dependencies -->

Apply a binary callback to strided input array elements and assign results to elements in a strided output array.

## Installation ```bash npm install @stdlib/strided-base-binary ``` Alternatively, - To load the package in a website via a `script` tag without installation and bundlers, use the [ES Module][es-module] available on the [`esm`][esm-url] branch (see [README][esm-readme]). - If you are using Deno, visit the [`deno`][deno-url] branch (see [README][deno-readme] for usage intructions). - For use in Observable, or in browser/node environments, use the [Universal Module Definition (UMD)][umd] build available on the [`umd`][umd-url] branch (see [README][umd-readme]). The [branches.md][branches-url] file summarizes the available branches and displays a diagram illustrating their relationships. To view installation and usage instructions specific to each branch build, be sure to explicitly navigate to the respective README files on each branch, as linked to above.
## Usage ```javascript var binary = require( '@stdlib/strided-base-binary' ); ``` #### binary( arrays, shape, strides, fcn ) Applies a binary callback to strided input array elements and assigns results to elements in a strided output array. ```javascript var Float64Array = require( '@stdlib/array-float64' ); function add( x, y ) { return x + y; } var x = new Float64Array( [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0 ] ); var y = new Float64Array( [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0 ] ); var z = new Float64Array( [ 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 ] ); binary( [ x, y, z ], [ x.length ], [ 1, 1, 1 ], add ); // z => [ 2.0, 4.0, 6.0, 8.0, 10.0 ] ``` The function accepts the following arguments: - **arrays**: array-like object containing two strided input arrays and one strided output array. - **shape**: array-like object containing a single element, the number of indexed elements. - **strides**: array-like object containing the stride lengths for the strided input and output arrays. - **fcn**: binary function to apply. The `shape` and `strides` parameters determine which elements in the strided input and output arrays are accessed at runtime. For example, to index every other value in the strided input arrays and to index the first `N` elements of the strided output array in reverse order, ```javascript var Float64Array = require( '@stdlib/array-float64' ); function add( x, y ) { return x + y; } var x = new Float64Array( [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0 ] ); var y = new Float64Array( [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0 ] ); var z = new Float64Array( [ 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 ] ); var N = 3; binary( [ x, y, z ], [ N ], [ 2, 2, -1 ], add ); // z => [ 10.0, 6.0, 2.0, 0.0, 0.0, 0.0 ] ``` Note that indexing is relative to the first index. To introduce an offset, use [`typed array`][mdn-typed-array] views. ```javascript var Float64Array = require( '@stdlib/array-float64' ); function add( x, y ) { return x + y; } // Initial arrays... var x0 = new Float64Array( [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0 ] ); var y0 = new Float64Array( [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0 ] ); var z0 = new Float64Array( [ 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 ] ); // Create offset views... var x1 = new Float64Array( x0.buffer, x0.BYTES_PER_ELEMENT*1 ); // start at 2nd element var y1 = new Float64Array( y0.buffer, y0.BYTES_PER_ELEMENT*1 ); // start at 2nd element var z1 = new Float64Array( z0.buffer, z0.BYTES_PER_ELEMENT*3 ); // start at 4th element var N = 3; binary( [ x1, y1, z1 ], [ N ], [ -2, -2, 1 ], add ); // z0 => [ 0.0, 0.0, 0.0, 12.0, 8.0, 4.0 ] ``` #### binary.ndarray( arrays, shape, strides, offsets, fcn ) Applies a binary callback to strided input array elements and assigns results to elements in a strided output array using alternative indexing semantics. ```javascript var Float64Array = require( '@stdlib/array-float64' ); function add( x, y ) { return x + y; } var x = new Float64Array( [ 1.0, 2.0, 3.0, 4.0, 5.0 ] ); var y = new Float64Array( [ 1.0, 2.0, 3.0, 4.0, 5.0 ] ); var z = new Float64Array( [ 0.0, 0.0, 0.0, 0.0, 0.0 ] ); binary.ndarray( [ x, y, z ], [ x.length ], [ 1, 1, 1 ], [ 0, 0, 0 ], add ); // z => [ 2.0, 4.0, 6.0, 8.0, 10.0 ] ``` The function accepts the following additional arguments: - **offsets**: array-like object containing the starting indices (i.e., index offsets) for the strided input and output arrays. While [`typed array`][mdn-typed-array] views mandate a view offset based on the underlying `buffer`, the `offsets` parameter supports indexing semantics based on starting indices. For example, to index every other value in the strided input arrays starting from the second value and to index the last `N` elements in the strided output array, ```javascript var Float64Array = require( '@stdlib/array-float64' ); function add( x, y ) { return x + y; } var x = new Float64Array( [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0 ] ); var y = new Float64Array( [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0 ] ); var z = new Float64Array( [ 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 ] ); var N = 3; binary.ndarray( [ x, y, z ], [ N ], [ 2, 2, -1 ], [ 1, 1, z.length-1 ], add ); // z => [ 0.0, 0.0, 0.0, 12.0, 8.0, 4.0 ] ```
## Examples ```javascript var discreteUniform = require( '@stdlib/random-base-discrete-uniform' ).factory; var filledarrayBy = require( '@stdlib/array-filled-by' ); var filledarray = require( '@stdlib/array-filled' ); var binary = require( '@stdlib/strided-base-binary' ); function add( x, y ) { return x + y; } var N = 10; var x = filledarrayBy( N, 'generic', discreteUniform( -100, 100 ) ); console.log( x ); var y = filledarrayBy( N, 'generic', discreteUniform( -100, 100 ) ); console.log( y ); var z = filledarray( 0.0, N, 'generic' ); console.log( z ); var shape = [ N ]; var strides = [ 1, 1, -1 ]; var offsets = [ 0, 0, N-1 ]; binary.ndarray( [ x, y, z ], shape, strides, offsets, add ); console.log( z ); ```

## C APIs
Character codes for data types: - **x**: `bool` (boolean). - **c**: `complex64` (single-precision floating-point complex number). - **z**: `complex128` (double-precision floating-point complex number). - **f**: `float32` (single-precision floating-point number). - **d**: `float64` (double-precision floating-point number). - **k**: `int16` (signed 16-bit integer). - **i**: `int32` (signed 32-bit integer). - **s**: `int8` (signed 8-bit integer). - **t**: `uint16` (unsigned 16-bit integer). - **u**: `uint32` (unsigned 32-bit integer). - **b**: `uint8` (unsigned 8-bit integer). Function name suffix naming convention: ```text stdlib_strided__[_as__] ``` For example, ```c void stdlib_strided_dd_d(...) {...} ``` is a function which accepts two double-precision floating-point strided input arrays and one double-precision floating-point strided output array. In other words, the suffix encodes a function type signature. To support callbacks whose input arguments and/or return values are of a different data type than the strided input and/or output array data types, the naming convention supports appending an `as` suffix. For example, ```c void stdlib_strided_ff_f_as_dd_d(...) {...} ``` is a function which accepts two single-precision floating-point strided input arrays and one single-precision floating-point strided output array. However, the callback accepts and returns double-precision floating-point numbers. Accordingly, the input and output values need to be cast using the following conversion sequence ```c // Convert each input array element to double-precision: double in1 = (double)x[ i ]; double in2 = (double)y[ i ]; // Evaluate the callback: double out = f( in1, in2 ); // Convert the callback return value to single-precision: z[ i ] = (float)out; ``` When both strided input arrays and the callback (i.e., both input arguments and return value) share the same data type, the `as` suffix can be omitted. For example, ```c void stdlib_strided_ff_d(...) {...} ``` is a function which accepts two single-precision floating-point strided input arrays and one double-precision floating-point strided output array. The callback is assumed to accept and return single-precision floating-point numbers. Accordingly, the input and output values are cast according to the following conversion sequence ```c // Retrieve each input array element as single-precision: float in1 = (float)x[ i ]; float in2 = (float)y[ i ]; // Evaluate the callback: float out = f( in1, in2 ); // Convert the callback return value to double-precision: z[ i ] = (double)out; ```
### Usage ```c #include "stdlib/strided/base/binary.h" ``` #### stdlib_strided_bb_b( \*arrays\[], \*shape, \*strides, \*fcn ) Applies a binary callback to strided input array elements and assigns results to elements in a strided output array. ```c #include // Create underlying byte arrays: uint8_t x[] = { 0, 0, 0 }; uint8_t y[] = { 0, 0, 0 }; uint8_t out[] = { 0, 0, 0 }; // Define a pointer to an array containing pointers to strided arrays: uint8_t *arrays[] = { x, y, out }; // Define the strides: int64_t strides[] = { 1, 1, 1 }; // Define the number of elements over which to iterate: int64_t shape[] = { 3 }; // Define a callback: static uint8_t fcn( uint8_t x, uint8_t y ) { return x + y; } // Apply the callback: stdlib_strided_bb_b( arrays, shape, strides, (void *)fcn ); ``` The function accepts the following arguments: - **arrays**: `[inout] uint8_t**` array whose first two elements are pointers to strided input arrays and whose last element is a pointer to a strided output array. - **shape**: `[in] int64_t*` array whose only element is the number of elements over which to iterate. - **strides**: `[in] int64_t*` array containing strides (in bytes) for each strided array. - **fcn**: `[in] void*` a `uint8_t (*f)(uint8_t, uint8_t)` function to apply provided as a `void` pointer. ```c void stdlib_strided_bb_b( uint8_t *arrays[], const int64_t *shape, const int64_t *strides, void *fcn ); ``` #### stdlib_strided_bb_c( \*arrays\[], \*shape, \*strides, \*fcn ) Applies a binary callback to strided input array elements and assigns results to elements in a strided output array. ```c #include // Create underlying byte arrays: uint8_t x[] = { 0, 0, 0 }; uint8_t y[] = { 0, 0, 0 }; uint8_t out[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; // Define a pointer to an array containing pointers to strided arrays: uint8_t *arrays[] = { x, y, out }; // Define the strides: int64_t strides[] = { 1, 1, 8 }; // Define the number of elements over which to iterate: int64_t shape[] = { 3 }; // Define a callback: static uint8_t fcn( uint8_t x, uint8_t y ) { return x + y; } // Apply the callback: stdlib_strided_bb_c( arrays, shape, strides, (void *)fcn ); ``` The function accepts the following arguments: - **arrays**: `[inout] uint8_t**` array whose first two elements are pointers to strided input arrays and whose last element is a pointer to a strided output array. - **shape**: `[in] int64_t*` array whose only element is the number of elements over which to iterate. - **strides**: `[in] int64_t*` array containing strides (in bytes) for each strided array. - **fcn**: `[in] void*` a `uint8_t (*f)(uint8_t, uint8_t)` function to apply provided as a `void` pointer. ```c void stdlib_strided_bb_c( uint8_t *arrays[], const int64_t *shape, const int64_t *strides, void *fcn ); ``` #### stdlib_strided_bb_c_as_cc_c( \*arrays\[], \*shape, \*strides, \*fcn ) Applies a binary callback to strided input array elements and assigns results to elements in a strided output array. ```c #include "stdlib/complex/float32/ctor.h" #include // Create underlying byte arrays: uint8_t x[] = { 0, 0, 0 }; uint8_t y[] = { 0, 0, 0 }; uint8_t out[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; // Define a pointer to an array containing pointers to strided arrays: uint8_t *arrays[] = { x, y, out }; // Define the strides: int64_t strides[] = { 1, 1, 8 }; // Define the number of elements over which to iterate: int64_t shape[] = { 3 }; // Define a callback: static stdlib_complex64_t fcn( stdlib_complex64_t x, stdlib_complex64_t y ) { // ... } // Apply the callback: stdlib_strided_bb_c_as_cc_c( arrays, shape, strides, (void *)fcn ); ``` The function accepts the following arguments: - **arrays**: `[inout] uint8_t**` array whose first two elements are pointers to strided input arrays and whose last element is a pointer to a strided output array. - **shape**: `[in] int64_t*` array whose only element is the number of elements over which to iterate. - **strides**: `[in] int64_t*` array containing strides (in bytes) for each strided array. - **fcn**: `[in] void*` a `stdlib_complex64_t (*f)(stdlib_complex64_t, stdlib_complex64_t)` function to apply provided as a `void` pointer. ```c void stdlib_strided_bb_c_as_cc_c( uint8_t *arrays[], const int64_t *shape, const int64_t *strides, void *fcn ); ``` #### stdlib_strided_bb_c_as_zz_z( \*arrays\[], \*shape, \*strides, \*fcn ) Applies a binary callback to strided input array elements and assigns results to elements in a strided output array. ```c #include "stdlib/complex/float64/ctor.h" #include // Create underlying byte arrays: uint8_t x[] = { 0, 0, 0 }; uint8_t y[] = { 0, 0, 0 }; uint8_t out[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; // Define a pointer to an array containing pointers to strided arrays: uint8_t *arrays[] = { x, y, out }; // Define the strides: int64_t strides[] = { 1, 1, 8 }; // Define the number of elements over which to iterate: int64_t shape[] = { 3 }; // Define a callback: static stdlib_complex128_t fcn( stdlib_complex128_t x, stdlib_complex128_t y ) { // ... } // Apply the callback: stdlib_strided_bb_c_as_zz_z( arrays, shape, strides, (void *)fcn ); ``` The function accepts the following arguments: - **arrays**: `[inout] uint8_t**` array whose first two elements are pointers to strided input arrays and whose last element is a pointer to a strided output array. - **shape**: `[in] int64_t*` array whose only element is the number of elements over which to iterate. - **strides**: `[in] int64_t*` array containing strides (in bytes) for each strided array. - **fcn**: `[in] void*` a `stdlib_complex128_t (*f)(stdlib_complex128_t, stdlib_complex128_t)` function to apply provided as a `void` pointer. ```c void stdlib_strided_bb_c_as_zz_z( uint8_t *arrays[], const int64_t *shape, const int64_t *strides, void *fcn ); ``` #### stdlib_strided_bb_d( \*arrays\[], \*shape, \*strides, \*fcn ) Applies a binary callback to strided input array elements and assigns results to elements in a strided output array. ```c #include // Create underlying byte arrays: uint8_t x[] = { 0, 0, 0 }; uint8_t y[] = { 0, 0, 0 }; uint8_t out[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; // Define a pointer to an array containing pointers to strided arrays: uint8_t *arrays[] = { x, y, out }; // Define the strides: int64_t strides[] = { 1, 1, 8 }; // Define the number of elements over which to iterate: int64_t shape[] = { 3 }; // Define a callback: static uint8_t fcn( uint8_t x, uint8_t y ) { return x + y; } // Apply the callback: stdlib_strided_bb_d( arrays, shape, strides, (void *)fcn ); ``` The function accepts the following arguments: - **arrays**: `[inout] uint8_t**` array whose first two elements are pointers to strided input arrays and whose last element is a pointer to a strided output array. - **shape**: `[in] int64_t*` array whose only element is the number of elements over which to iterate. - **strides**: `[in] int64_t*` array containing strides (in bytes) for each strided array. - **fcn**: `[in] void*` a `uint8_t (*f)(uint8_t, uint8_t)` function to apply provided as a `void` pointer. ```c void stdlib_strided_bb_d( uint8_t *arrays[], const int64_t *shape, const int64_t *strides, void *fcn ); ``` #### stdlib_strided_bb_d_as_dd_d( \*arrays\[], \*shape, \*strides, \*fcn ) Applies a binary callback to strided input array elements and assigns results to elements in a strided output array. ```c #include // Create underlying byte arrays: uint8_t x[] = { 0, 0, 0 }; uint8_t y[] = { 0, 0, 0 }; uint8_t out[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; // Define a pointer to an array containing pointers to strided arrays: uint8_t *arrays[] = { x, y, out }; // Define the strides: int64_t strides[] = { 1, 1, 8 }; // Define the number of elements over which to iterate: int64_t shape[] = { 3 }; // Define a callback: static double fcn( double x, double y ) { return x + y; } // Apply the callback: stdlib_strided_bb_d_as_dd_d( arrays, shape, strides, (void *)fcn ); ``` The function accepts the following arguments: - **arrays**: `[inout] uint8_t**` array whose first two elements are pointers to strided input arrays and whose last element is a pointer to a strided output array. - **shape**: `[in] int64_t*` array whose only element is the number of elements over which to iterate. - **strides**: `[in] int64_t*` array containing strides (in bytes) for each strided array. - **fcn**: `[in] void*` a `double (*f)(double, double)` function to apply provided as a `void` pointer. ```c void stdlib_strided_bb_d_as_dd_d( uint8_t *arrays[], const int64_t *shape, const int64_t *strides, void *fcn ); ``` #### stdlib_strided_bb_f( \*arrays\[], \*shape, \*strides, \*fcn ) Applies a binary callback to strided input array elements and assigns results to elements in a strided output array. ```c #include // Create underlying byte arrays: uint8_t x[] = { 0, 0, 0 }; uint8_t y[] = { 0, 0, 0 }; uint8_t out[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; // Define a pointer to an array containing pointers to strided arrays: uint8_t *arrays[] = { x, y, out }; // Define the strides: int64_t strides[] = { 1, 1, 4 }; // Define the number of elements over which to iterate: int64_t shape[] = { 3 }; // Define a callback: static uint8_t fcn( uint8_t x, uint8_t y ) { return x + y; } // Apply the callback: stdlib_strided_bb_f( arrays, shape, strides, (void *)fcn ); ``` The function accepts the following arguments: - **arrays**: `[inout] uint8_t**` array whose first two elements are pointers to strided input arrays and whose last element is a pointer to a strided output array. - **shape**: `[in] int64_t*` array whose only element is the number of elements over which to iterate. - **strides**: `[in] int64_t*` array containing strides (in bytes) for each strided array. - **fcn**: `[in] void*` a `uint8_t (*f)(uint8_t, uint8_t)` function to apply provided as a `void` pointer. ```c void stdlib_strided_bb_f( uint8_t *arrays[], const int64_t *shape, const int64_t *strides, void *fcn ); ``` #### stdlib_strided_bb_f_as_dd_d( \*arrays\[], \*shape, \*strides, \*fcn ) Applies a binary callback to strided input array elements and assigns results to elements in a strided output array. ```c #include // Create underlying byte arrays: uint8_t x[] = { 0, 0, 0 }; uint8_t y[] = { 0, 0, 0 }; uint8_t out[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; // Define a pointer to an array containing pointers to strided arrays: uint8_t *arrays[] = { x, y, out }; // Define the strides: int64_t strides[] = { 1, 1, 4 }; // Define the number of elements over which to iterate: int64_t shape[] = { 3 }; // Define a callback: static double fcn( double x, double y ) { return x + y; } // Apply the callback: stdlib_strided_bb_f_as_dd_d( arrays, shape, strides, (void *)fcn ); ``` The function accepts the following arguments: - **arrays**: `[inout] uint8_t**` array whose first two elements are pointers to strided input arrays and whose last element is a pointer to a strided output array. - **shape**: `[in] int64_t*` array whose only element is the number of elements over which to iterate. - **strides**: `[in] int64_t*` array containing strides (in bytes) for each strided array. - **fcn**: `[in] void*` a `double (*f)(double, double)` function to apply provided as a `void` pointer. ```c void stdlib_strided_bb_f_as_dd_d( uint8_t *arrays[], const int64_t *shape, const int64_t *strides, void *fcn ); ``` #### stdlib_strided_bb_f_as_ff_f( \*arrays\[], \*shape, \*strides, \*fcn ) Applies a binary callback to strided input array elements and assigns results to elements in a strided output array. ```c #include // Create underlying byte arrays: uint8_t x[] = { 0, 0, 0 }; uint8_t y[] = { 0, 0, 0 }; uint8_t out[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; // Define a pointer to an array containing pointers to strided arrays: uint8_t *arrays[] = { x, y, out }; // Define the strides: int64_t strides[] = { 1, 1, 4 }; // Define the number of elements over which to iterate: int64_t shape[] = { 3 }; // Define a callback: static float fcn( float x, float y ) { return x + y; } // Apply the callback: stdlib_strided_bb_f_as_ff_f( arrays, shape, strides, (void *)fcn ); ``` The function accepts the following arguments: - **arrays**: `[inout] uint8_t**` array whose first two elements are pointers to strided input arrays and whose last element is a pointer to a strided output array. - **shape**: `[in] int64_t*` array whose only element is the number of elements over which to iterate. - **strides**: `[in] int64_t*` array containing strides (in bytes) for each strided array. - **fcn**: `[in] void*` a `float (*f)(float, float)` function to apply provided as a `void` pointer. ```c void stdlib_strided_bb_f_as_ff_f( uint8_t *arrays[], const int64_t *shape, const int64_t *strides, void *fcn ); ``` #### stdlib_strided_bb_i( \*arrays\[], \*shape, \*strides, \*fcn ) Applies a binary callback to strided input array elements and assigns results to elements in a strided output array. ```c #include // Create underlying byte arrays: uint8_t x[] = { 0, 0, 0 }; uint8_t y[] = { 0, 0, 0 }; uint8_t out[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; // Define a pointer to an array containing pointers to strided arrays: uint8_t *arrays[] = { x, y, out }; // Define the strides: int64_t strides[] = { 1, 1, 4 }; // Define the number of elements over which to iterate: int64_t shape[] = { 3 }; // Define a callback: static uint8_t fcn( uint8_t x, uint8_t y ) { return x + y; } // Apply the callback: stdlib_strided_bb_i( arrays, shape, strides, (void *)fcn ); ``` The function accepts the following arguments: - **arrays**: `[inout] uint8_t**` array whose first two elements are pointers to strided input arrays and whose last element is a pointer to a strided output array. - **shape**: `[in] int64_t*` array whose only element is the number of elements over which to iterate. - **strides**: `[in] int64_t*` array containing strides (in bytes) for each strided array. - **fcn**: `[in] void*` a `uint8_t (*f)(uint8_t, uint8_t)` function to apply provided as a `void` pointer. ```c void stdlib_strided_bb_i( uint8_t *arrays[], const int64_t *shape, const int64_t *strides, void *fcn ); ``` #### stdlib_strided_bb_i_as_ii_i( \*arrays\[], \*shape, \*strides, \*fcn ) Applies a binary callback to strided input array elements and assigns results to elements in a strided output array. ```c #include // Create underlying byte arrays: uint8_t x[] = { 0, 0, 0 }; uint8_t y[] = { 0, 0, 0 }; uint8_t out[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; // Define a pointer to an array containing pointers to strided arrays: uint8_t *arrays[] = { x, y, out }; // Define the strides: int64_t strides[] = { 1, 1, 4 }; // Define the number of elements over which to iterate: int64_t shape[] = { 3 }; // Define a callback: static int32_t fcn( int32_t x, int32_t y ) { return x + y; } // Apply the callback: stdlib_strided_bb_i_as_ii_i( arrays, shape, strides, (void *)fcn ); ``` The function accepts the following arguments: - **arrays**: `[inout] uint8_t**` array whose first two elements are pointers to strided input arrays and whose last element is a pointer to a strided output array. - **shape**: `[in] int64_t*` array whose only element is the number of elements over which to iterate. - **strides**: `[in] int64_t*` array containing strides (in bytes) for each strided array. - **fcn**: `[in] void*` a `int32_t (*f)(int32_t, int32_t)` function to apply provided as a `void` pointer. ```c void stdlib_strided_bb_i_as_ii_i( uint8_t *arrays[], const int64_t *shape, const int64_t *strides, void *fcn ); ``` #### stdlib_strided_bb_k( \*arrays\[], \*shape, \*strides, \*fcn ) Applies a binary callback to strided input array elements and assigns results to elements in a strided output array. ```c #include // Create underlying byte arrays: uint8_t x[] = { 0, 0, 0 }; uint8_t y[] = { 0, 0, 0 }; uint8_t out[] = { 0, 0, 0, 0, 0, 0 }; // Define a pointer to an array containing pointers to strided arrays: uint8_t *arrays[] = { x, y, out }; // Define the strides: int64_t strides[] = { 1, 1, 2 }; // Define the number of elements over which to iterate: int64_t shape[] = { 3 }; // Define a callback: static uint8_t fcn( uint8_t x, uint8_t y ) { return x + y; } // Apply the callback: stdlib_strided_bb_k( arrays, shape, strides, (void *)fcn ); ``` The function accepts the following arguments: - **arrays**: `[inout] uint8_t**` array whose first two elements are pointers to strided input arrays and whose last element is a pointer to a strided output array. - **shape**: `[in] int64_t*` array whose only element is the number of elements over which to iterate. - **strides**: `[in] int64_t*` array containing strides (in bytes) for each strided array. - **fcn**: `[in] void*` a `uint8_t (*f)(uint8_t, uint8_t)` function to apply provided as a `void` pointer. ```c void stdlib_strided_bb_k( uint8_t *arrays[], const int64_t *shape, const int64_t *strides, void *fcn ); ``` #### stdlib_strided_bb_k_as_kk_k( \*arrays\[], \*shape, \*strides, \*fcn ) Applies a binary callback to strided input array elements and assigns results to elements in a strided output array. ```c #include // Create underlying byte arrays: uint8_t x[] = { 0, 0, 0 }; uint8_t y[] = { 0, 0, 0 }; uint8_t out[] = { 0, 0, 0, 0, 0, 0 }; // Define a pointer to an array containing pointers to strided arrays: uint8_t *arrays[] = { x, y, out }; // Define the strides: int64_t strides[] = { 1, 1, 2 }; // Define the number of elements over which to iterate: int64_t shape[] = { 3 }; // Define a callback: static int16_t fcn( int16_t x, int16_t y ) { return x + y; } // Apply the callback: stdlib_strided_bb_k_as_kk_k( arrays, shape, strides, (void *)fcn ); ``` The function accepts the following arguments: - **arrays**: `[inout] uint8_t**` array whose first two elements are pointers to strided input arrays and whose last element is a pointer to a strided output array. - **shape**: `[in] int64_t*` array whose only element is the number of elements over which to iterate. - **strides**: `[in] int64_t*` array containing strides (in bytes) for each strided array. - **fcn**: `[in] void*` a `int16_t (*f)(int16_t, int16_t)` function to apply provided as a `void` pointer. ```c void stdlib_strided_bb_k_as_kk_k( uint8_t *arrays[], const int64_t *shape, const int64_t *strides, void *fcn ); ``` #### stdlib_strided_bb_t( \*arrays\[], \*shape, \*strides, \*fcn ) Applies a binary callback to strided input array elements and assigns results to elements in a strided output array. ```c #include // Create underlying byte arrays: uint8_t x[] = { 0, 0, 0 }; uint8_t y[] = { 0, 0, 0 }; uint8_t out[] = { 0, 0, 0, 0, 0, 0 }; // Define a pointer to an array containing pointers to strided arrays: uint8_t *arrays[] = { x, y, out }; // Define the strides: int64_t strides[] = { 1, 1, 2 }; // Define the number of elements over which to iterate: int64_t shape[] = { 3 }; // Define a callback: static uint8_t fcn( uint8_t x, uint8_t y ) { return x + y; } // Apply the callback: stdlib_strided_bb_t( arrays, shape, strides, (void *)fcn ); ``` The function accepts the following arguments: - **arrays**: `[inout] uint8_t**` array whose first two elements are pointers to strided input arrays and whose last element is a pointer to a strided output array. - **shape**: `[in] int64_t*` array whose only element is the number of elements over which to iterate. - **strides**: `[in] int64_t*` array containing strides (in bytes) for each strided array. - **fcn**: `[in] void*` a `uint8_t (*f)(uint8_t, uint8_t)` function to apply provided as a `void` pointer. ```c void stdlib_strided_bb_t( uint8_t *arrays[], const int64_t *shape, const int64_t *strides, void *fcn ); ``` #### stdlib_strided_bb_t_as_tt_t( \*arrays\[], \*shape, \*strides, \*fcn ) Applies a binary callback to strided input array elements and assigns results to elements in a strided output array. ```c #include // Create underlying byte arrays: uint8_t x[] = { 0, 0, 0 }; uint8_t y[] = { 0, 0, 0 }; uint8_t out[] = { 0, 0, 0, 0, 0, 0 }; // Define a pointer to an array containing pointers to strided arrays: uint8_t *arrays[] = { x, y, out }; // Define the strides: int64_t strides[] = { 1, 1, 2 }; // Define the number of elements over which to iterate: int64_t shape[] = { 3 }; // Define a callback: static uint16_t fcn( uint16_t x, uint16_t y ) { return x + y; } // Apply the callback: stdlib_strided_bb_t_as_tt_t( arrays, shape, strides, (void *)fcn ); ``` The function accepts the following arguments: - **arrays**: `[inout] uint8_t**` array whose first two elements are pointers to strided input arrays and whose last element is a pointer to a strided output array. - **shape**: `[in] int64_t*` array whose only element is the number of elements over which to iterate. - **strides**: `[in] int64_t*` array containing strides (in bytes) for each strided array. - **fcn**: `[in] void*` a `uint16_t (*f)(uint16_t, uint16_t)` function to apply provided as a `void` pointer. ```c void stdlib_strided_bb_t_as_tt_t( uint8_t *arrays[], const int64_t *shape, const int64_t *strides, void *fcn ); ``` #### stdlib_strided_bb_u( \*arrays\[], \*shape, \*strides, \*fcn ) Applies a binary callback to strided input array elements and assigns results to elements in a strided output array. ```c #include // Create underlying byte arrays: uint8_t x[] = { 0, 0, 0 }; uint8_t y[] = { 0, 0, 0 }; uint8_t out[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; // Define a pointer to an array containing pointers to strided arrays: uint8_t *arrays[] = { x, y, out }; // Define the strides: int64_t strides[] = { 1, 1, 4 }; // Define the number of elements over which to iterate: int64_t shape[] = { 3 }; // Define a callback: static uint8_t fcn( uint8_t x, uint8_t y ) { return x + y; } // Apply the callback: stdlib_strided_bb_u( arrays, shape, strides, (void *)fcn ); ``` The function accepts the following arguments: - **arrays**: `[inout] uint8_t**` array whose first two elements are pointers to strided input arrays and whose last element is a pointer to a strided output array. - **shape**: `[in] int64_t*` array whose only element is the number of elements over which to iterate. - **strides**: `[in] int64_t*` array containing strides (in bytes) for each strided array. - **fcn**: `[in] void*` a `uint8_t (*f)(uint8_t, uint8_t)` function to apply provided as a `void` pointer. ```c void stdlib_strided_bb_u( uint8_t *arrays[], const int64_t *shape, const int64_t *strides, void *fcn ); ``` #### stdlib_strided_bb_u_as_uu_u( \*arrays\[], \*shape, \*strides, \*fcn ) Applies a binary callback to strided input array elements and assigns results to elements in a strided output array. ```c #include // Create underlying byte arrays: uint8_t x[] = { 0, 0, 0 }; uint8_t y[] = { 0, 0, 0 }; uint8_t out[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; // Define a pointer to an array containing pointers to strided arrays: uint8_t *arrays[] = { x, y, out }; // Define the strides: int64_t strides[] = { 1, 1, 4 }; // Define the number of elements over which to iterate: int64_t shape[] = { 3 }; // Define a callback: static uint32_t fcn( uint32_t x, uint32_t y ) { return x + y; } // Apply the callback: stdlib_strided_bb_u_as_uu_u( arrays, shape, strides, (void *)fcn ); ``` The function accepts the following arguments: - **arrays**: `[inout] uint8_t**` array whose first two elements are pointers to strided input arrays and whose last element is a pointer to a strided output array. - **shape**: `[in] int64_t*` array whose only element is the number of elements over which to iterate. - **strides**: `[in] int64_t*` array containing strides (in bytes) for each strided array. - **fcn**: `[in] void*` a `uint32_t (*f)(uint32_t, uint32_t)` function to apply provided as a `void` pointer. ```c void stdlib_strided_bb_u_as_uu_u( uint8_t *arrays[], const int64_t *shape, const int64_t *strides, void *fcn ); ``` #### stdlib_strided_bb_z( \*arrays\[], \*shape, \*strides, \*fcn ) Applies a binary callback to strided input array elements and assigns results to elements in a strided output array. ```c #include // Create underlying byte arrays: uint8_t x[] = { 0, 0, 0 }; uint8_t y[] = { 0, 0, 0 }; uint8_t out[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; // Define a pointer to an array containing pointers to strided arrays: uint8_t *arrays[] = { x, y, out }; // Define the strides: int64_t strides[] = { 1, 1, 16 }; // Define the number of elements over which to iterate: int64_t shape[] = { 3 }; // Define a callback: static uint8_t fcn( uint8_t x, uint8_t y ) { return x + y; } // Apply the callback: stdlib_strided_bb_z( arrays, shape, strides, (void *)fcn ); ``` The function accepts the following arguments: - **arrays**: `[inout] uint8_t**` array whose first two elements are pointers to strided input arrays and whose last element is a pointer to a strided output array. - **shape**: `[in] int64_t*` array whose only element is the number of elements over which to iterate. - **strides**: `[in] int64_t*` array containing strides (in bytes) for each strided array. - **fcn**: `[in] void*` a `uint8_t (*f)(uint8_t, uint8_t)` function to apply provided as a `void` pointer. ```c void stdlib_strided_bb_z( uint8_t *arrays[], const int64_t *shape, const int64_t *strides, void *fcn ); ``` #### stdlib_strided_bb_z_as_zz_z( \*arrays\[], \*shape, \*strides, \*fcn ) Applies a binary callback to strided input array elements and assigns results to elements in a strided output array. ```c #include "stdlib/complex/float64/ctor.h" #include // Create underlying byte arrays: uint8_t x[] = { 0, 0, 0 }; uint8_t y[] = { 0, 0, 0 }; uint8_t out[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; // Define a pointer to an array containing pointers to strided arrays: uint8_t *arrays[] = { x, y, out }; // Define the strides: int64_t strides[] = { 1, 1, 16 }; // Define the number of elements over which to iterate: int64_t shape[] = { 3 }; // Define a callback: static stdlib_complex128_t fcn( stdlib_complex128_t x, stdlib_complex128_t y ) { // ... } // Apply the callback: stdlib_strided_bb_z_as_zz_z( arrays, shape, strides, (void *)fcn ); ``` The function accepts the following arguments: - **arrays**: `[inout] uint8_t**` array whose first two elements are pointers to strided input arrays and whose last element is a pointer to a strided output array. - **shape**: `[in] int64_t*` array whose only element is the number of elements over which to iterate. - **strides**: `[in] int64_t*` array containing strides (in bytes) for each strided array. - **fcn**: `[in] void*` a `stdlib_complex128_t (*f)(stdlib_complex128_t, stdlib_complex128_t)` function to apply provided as a `void` pointer. ```c void stdlib_strided_bb_z_as_zz_z( uint8_t *arrays[], const int64_t *shape, const int64_t *strides, void *fcn ); ``` #### stdlib_strided_bc_c_as_cc_c( \*arrays\[], \*shape, \*strides, \*fcn ) Applies a binary callback to strided input array elements and assigns results to elements in a strided output array. ```c #include "stdlib/complex/float32/ctor.h" #include // Create underlying byte arrays: uint8_t x[] = { 0, 0, 0 }; uint8_t y[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; uint8_t out[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; // Define a pointer to an array containing pointers to strided arrays: uint8_t *arrays[] = { x, y, out }; // Define the strides: int64_t strides[] = { 1, 8, 8 }; // Define the number of elements over which to iterate: int64_t shape[] = { 3 }; // Define a callback: static stdlib_complex64_t fcn( stdlib_complex64_t x, stdlib_complex64_t y ) { // ... } // Apply the callback: stdlib_strided_bc_c_as_cc_c( arrays, shape, strides, (void *)fcn ); ``` The function accepts the following arguments: - **arrays**: `[inout] uint8_t**` array whose first two elements are pointers to strided input arrays and whose last element is a pointer to a strided output array. - **shape**: `[in] int64_t*` array whose only element is the number of elements over which to iterate. - **strides**: `[in] int64_t*` array containing strides (in bytes) for each strided array. - **fcn**: `[in] void*` a `stdlib_complex64_t (*f)(stdlib_complex64_t, stdlib_complex64_t)` function to apply provided as a `void` pointer. ```c void stdlib_strided_bc_c_as_cc_c( uint8_t *arrays[], const int64_t *shape, const int64_t *strides, void *fcn ); ``` #### stdlib_strided_bc_c_as_zz_z( \*arrays\[], \*shape, \*strides, \*fcn ) Applies a binary callback to strided input array elements and assigns results to elements in a strided output array. ```c #include "stdlib/complex/float64/ctor.h" #include // Create underlying byte arrays: uint8_t x[] = { 0, 0, 0 }; uint8_t y[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; uint8_t out[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; // Define a pointer to an array containing pointers to strided arrays: uint8_t *arrays[] = { x, y, out }; // Define the strides: int64_t strides[] = { 1, 8, 8 }; // Define the number of elements over which to iterate: int64_t shape[] = { 3 }; // Define a callback: static stdlib_complex128_t fcn( stdlib_complex128_t x, stdlib_complex128_t y ) { // ... } // Apply the callback: stdlib_strided_bc_c_as_zz_z( arrays, shape, strides, (void *)fcn ); ``` The function accepts the following arguments: - **arrays**: `[inout] uint8_t**` array whose first two elements are pointers to strided input arrays and whose last element is a pointer to a strided output array. - **shape**: `[in] int64_t*` array whose only element is the number of elements over which to iterate. - **strides**: `[in] int64_t*` array containing strides (in bytes) for each strided array. - **fcn**: `[in] void*` a `stdlib_complex128_t (*f)(stdlib_complex128_t, stdlib_complex128_t)` function to apply provided as a `void` pointer. ```c void stdlib_strided_bc_c_as_zz_z( uint8_t *arrays[], const int64_t *shape, const int64_t *strides, void *fcn ); ``` #### stdlib_strided_bc_z_as_zz_z( \*arrays\[], \*shape, \*strides, \*fcn ) Applies a binary callback to strided input array elements and assigns results to elements in a strided output array. ```c #include "stdlib/complex/float64/ctor.h" #include // Create underlying byte arrays: uint8_t x[] = { 0, 0, 0 }; uint8_t y[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; uint8_t out[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; // Define a pointer to an array containing pointers to strided arrays: uint8_t *arrays[] = { x, y, out }; // Define the strides: int64_t strides[] = { 1, 8, 16 }; // Define the number of elements over which to iterate: int64_t shape[] = { 3 }; // Define a callback: static stdlib_complex128_t fcn( stdlib_complex128_t x, stdlib_complex128_t y ) { // ... } // Apply the callback: stdlib_strided_bc_z_as_zz_z( arrays, shape, strides, (void *)fcn ); ``` The function accepts the following arguments: - **arrays**: `[inout] uint8_t**` array whose first two elements are pointers to strided input arrays and whose last element is a pointer to a strided output array. - **shape**: `[in] int64_t*` array whose only element is the number of elements over which to iterate. - **strides**: `[in] int64_t*` array containing strides (in bytes) for each strided array. - **fcn**: `[in] void*` a `stdlib_complex128_t (*f)(stdlib_complex128_t, stdlib_complex128_t)` function to apply provided as a `void` pointer. ```c void stdlib_strided_bc_z_as_zz_z( uint8_t *arrays[], const int64_t *shape, const int64_t *strides, void *fcn ); ``` #### stdlib_strided_bd_d_as_dd_d( \*arrays\[], \*shape, \*strides, \*fcn ) Applies a binary callback to strided input array elements and assigns results to elements in a strided output array. ```c #include // Create underlying byte arrays: uint8_t x[] = { 0, 0, 0 }; uint8_t y[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; uint8_t out[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; // Define a pointer to an array containing pointers to strided arrays: uint8_t *arrays[] = { x, y, out }; // Define the strides: int64_t strides[] = { 1, 8, 8 }; // Define the number of elements over which to iterate: int64_t shape[] = { 3 }; // Define a callback: static double fcn( double x, double y ) { return x + y; } // Apply the callback: stdlib_strided_bd_d_as_dd_d( arrays, shape, strides, (void *)fcn ); ``` The function accepts the following arguments: - **arrays**: `[inout] uint8_t**` array whose first two elements are pointers to strided input arrays and whose last element is a pointer to a strided output array. - **shape**: `[in] int64_t*` array whose only element is the number of elements over which to iterate. - **strides**: `[in] int64_t*` array containing strides (in bytes) for each strided array. - **fcn**: `[in] void*` a `double (*f)(double, double)` function to apply provided as a `void` pointer. ```c void stdlib_strided_bd_d_as_dd_d( uint8_t *arrays[], const int64_t *shape, const int64_t *strides, void *fcn ); ``` #### stdlib_strided_bd_z_as_zz_z( \*arrays\[], \*shape, \*strides, \*fcn ) Applies a binary callback to strided input array elements and assigns results to elements in a strided output array. ```c #include "stdlib/complex/float64/ctor.h" #include // Create underlying byte arrays: uint8_t x[] = { 0, 0, 0 }; uint8_t y[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; uint8_t out[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; // Define a pointer to an array containing pointers to strided arrays: uint8_t *arrays[] = { x, y, out }; // Define the strides: int64_t strides[] = { 1, 8, 16 }; // Define the number of elements over which to iterate: int64_t shape[] = { 3 }; // Define a callback: static stdlib_complex128_t fcn( stdlib_complex128_t x, stdlib_complex128_t y ) { // ... } // Apply the callback: stdlib_strided_bd_z_as_zz_z( arrays, shape, strides, (void *)fcn ); ``` The function accepts the following arguments: - **arrays**: `[inout] uint8_t**` array whose first two elements are pointers to strided input arrays and whose last element is a pointer to a strided output array. - **shape**: `[in] int64_t*` array whose only element is the number of elements over which to iterate. - **strides**: `[in] int64_t*` array containing strides (in bytes) for each strided array. - **fcn**: `[in] void*` a `stdlib_complex128_t (*f)(stdlib_complex128_t, stdlib_complex128_t)` function to apply provided as a `void` pointer. ```c void stdlib_strided_bd_z_as_zz_z( uint8_t *arrays[], const int64_t *shape, const int64_t *strides, void *fcn ); ``` #### stdlib_strided_bf_c_as_cc_c( \*arrays\[], \*shape, \*strides, \*fcn ) Applies a binary callback to strided input array elements and assigns results to elements in a strided output array. ```c #include "stdlib/complex/float32/ctor.h" #include // Create underlying byte arrays: uint8_t x[] = { 0, 0, 0 }; uint8_t y[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; uint8_t out[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; // Define a pointer to an array containing pointers to strided arrays: uint8_t *arrays[] = { x, y, out }; // Define the strides: int64_t strides[] = { 1, 4, 8 }; // Define the number of elements over which to iterate: int64_t shape[] = { 3 }; // Define a callback: static stdlib_complex64_t fcn( stdlib_complex64_t x, stdlib_complex64_t y ) { // ... } // Apply the callback: stdlib_strided_bf_c_as_cc_c( arrays, shape, strides, (void *)fcn ); ``` The function accepts the following arguments: - **arrays**: `[inout] uint8_t**` array whose first two elements are pointers to strided input arrays and whose last element is a pointer to a strided output array. - **shape**: `[in] int64_t*` array whose only element is the number of elements over which to iterate. - **strides**: `[in] int64_t*` array containing strides (in bytes) for each strided array. - **fcn**: `[in] void*` a `stdlib_complex64_t (*f)(stdlib_complex64_t, stdlib_complex64_t)` function to apply provided as a `void` pointer. ```c void stdlib_strided_bf_c_as_cc_c( uint8_t *arrays[], const int64_t *shape, const int64_t *strides, void *fcn ); ``` #### stdlib_strided_bf_c_as_zz_z( \*arrays\[], \*shape, \*strides, \*fcn ) Applies a binary callback to strided input array elements and assigns results to elements in a strided output array. ```c #include "stdlib/complex/float64/ctor.h" #include // Create underlying byte arrays: uint8_t x[] = { 0, 0, 0 }; uint8_t y[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; uint8_t out[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; // Define a pointer to an array containing pointers to strided arrays: uint8_t *arrays[] = { x, y, out }; // Define the strides: int64_t strides[] = { 1, 4, 8 }; // Define the number of elements over which to iterate: int64_t shape[] = { 3 }; // Define a callback: static stdlib_complex128_t fcn( stdlib_complex128_t x, stdlib_complex128_t y ) { // ... } // Apply the callback: stdlib_strided_bf_c_as_zz_z( arrays, shape, strides, (void *)fcn ); ``` The function accepts the following arguments: - **arrays**: `[inout] uint8_t**` array whose first two elements are pointers to strided input arrays and whose last element is a pointer to a strided output array. - **shape**: `[in] int64_t*` array whose only element is the number of elements over which to iterate. - **strides**: `[in] int64_t*` array containing strides (in bytes) for each strided array. - **fcn**: `[in] void*` a `stdlib_complex128_t (*f)(stdlib_complex128_t, stdlib_complex128_t)` function to apply provided as a `void` pointer. ```c void stdlib_strided_bf_c_as_zz_z( uint8_t *arrays[], const int64_t *shape, const int64_t *strides, void *fcn ); ``` #### stdlib_strided_bf_d_as_dd_d( \*arrays\[], \*shape, \*strides, \*fcn ) Applies a binary callback to strided input array elements and assigns results to elements in a strided output array. ```c #include // Create underlying byte arrays: uint8_t x[] = { 0, 0, 0 }; uint8_t y[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; uint8_t out[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; // Define a pointer to an array containing pointers to strided arrays: uint8_t *arrays[] = { x, y, out }; // Define the strides: int64_t strides[] = { 1, 4, 8 }; // Define the number of elements over which to iterate: int64_t shape[] = { 3 }; // Define a callback: static double fcn( double x, double y ) { return x + y; } // Apply the callback: stdlib_strided_bf_d_as_dd_d( arrays, shape, strides, (void *)fcn ); ``` The function accepts the following arguments: - **arrays**: `[inout] uint8_t**` array whose first two elements are pointers to strided input arrays and whose last element is a pointer to a strided output array. - **shape**: `[in] int64_t*` array whose only element is the number of elements over which to iterate. - **strides**: `[in] int64_t*` array containing strides (in bytes) for each strided array. - **fcn**: `[in] void*` a `double (*f)(double, double)` function to apply provided as a `void` pointer. ```c void stdlib_strided_bf_d_as_dd_d( uint8_t *arrays[], const int64_t *shape, const int64_t *strides, void *fcn ); ``` #### stdlib_strided_bf_f_as_dd_d( \*arrays\[], \*shape, \*strides, \*fcn ) Applies a binary callback to strided input array elements and assigns results to elements in a strided output array. ```c #include // Create underlying byte arrays: uint8_t x[] = { 0, 0, 0 }; uint8_t y[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; uint8_t out[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; // Define a pointer to an array containing pointers to strided arrays: uint8_t *arrays[] = { x, y, out }; // Define the strides: int64_t strides[] = { 1, 4, 4 }; // Define the number of elements over which to iterate: int64_t shape[] = { 3 }; // Define a callback: static double fcn( double x, double y ) { return x + y; } // Apply the callback: stdlib_strided_bf_f_as_dd_d( arrays, shape, strides, (void *)fcn ); ``` The function accepts the following arguments: - **arrays**: `[inout] uint8_t**` array whose first two elements are pointers to strided input arrays and whose last element is a pointer to a strided output array. - **shape**: `[in] int64_t*` array whose only element is the number of elements over which to iterate. - **strides**: `[in] int64_t*` array containing strides (in bytes) for each strided array. - **fcn**: `[in] void*` a `double (*f)(double, double)` function to apply provided as a `void` pointer. ```c void stdlib_strided_bf_f_as_dd_d( uint8_t *arrays[], const int64_t *shape, const int64_t *strides, void *fcn ); ``` #### stdlib_strided_bf_f_as_ff_f( \*arrays\[], \*shape, \*strides, \*fcn ) Applies a binary callback to strided input array elements and assigns results to elements in a strided output array. ```c #include // Create underlying byte arrays: uint8_t x[] = { 0, 0, 0 }; uint8_t y[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; uint8_t out[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; // Define a pointer to an array containing pointers to strided arrays: uint8_t *arrays[] = { x, y, out }; // Define the strides: int64_t strides[] = { 1, 4, 4 }; // Define the number of elements over which to iterate: int64_t shape[] = { 3 }; // Define a callback: static float fcn( float x, float y ) { return x + y; } // Apply the callback: stdlib_strided_bf_f_as_ff_f( arrays, shape, strides, (void *)fcn ); ``` The function accepts the following arguments: - **arrays**: `[inout] uint8_t**` array whose first two elements are pointers to strided input arrays and whose last element is a pointer to a strided output array. - **shape**: `[in] int64_t*` array whose only element is the number of elements over which to iterate. - **strides**: `[in] int64_t*` array containing strides (in bytes) for each strided array. - **fcn**: `[in] void*` a `float (*f)(float, float)` function to apply provided as a `void` pointer. ```c void stdlib_strided_bf_f_as_ff_f( uint8_t *arrays[], const int64_t *shape, const int64_t *strides, void *fcn ); ``` #### stdlib_strided_bf_z_as_zz_z( \*arrays\[], \*shape, \*strides, \*fcn ) Applies a binary callback to strided input array elements and assigns results to elements in a strided output array. ```c #include "stdlib/complex/float64/ctor.h" #include // Create underlying byte arrays: uint8_t x[] = { 0, 0, 0 }; uint8_t y[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; uint8_t out[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; // Define a pointer to an array containing pointers to strided arrays: uint8_t *arrays[] = { x, y, out }; // Define the strides: int64_t strides[] = { 1, 4, 16 }; // Define the number of elements over which to iterate: int64_t shape[] = { 3 }; // Define a callback: static stdlib_complex128_t fcn( stdlib_complex128_t x, stdlib_complex128_t y ) { // ... } // Apply the callback: stdlib_strided_bf_z_as_zz_z( arrays, shape, strides, (void *)fcn ); ``` The function accepts the following arguments: - **arrays**: `[inout] uint8_t**` array whose first two elements are pointers to strided input arrays and whose last element is a pointer to a strided output array. - **shape**: `[in] int64_t*` array whose only element is the number of elements over which to iterate. - **strides**: `[in] int64_t*` array containing strides (in bytes) for each strided array. - **fcn**: `[in] void*` a `stdlib_complex128_t (*f)(stdlib_complex128_t, stdlib_complex128_t)` function to apply provided as a `void` pointer. ```c void stdlib_strided_bf_z_as_zz_z( uint8_t *arrays[], const int64_t *shape, const int64_t *strides, void *fcn ); ``` #### stdlib_strided_bi_d_as_dd_d( \*arrays\[], \*shape, \*strides, \*fcn ) Applies a binary callback to strided input array elements and assigns results to elements in a strided output array. ```c #include // Create underlying byte arrays: uint8_t x[] = { 0, 0, 0 }; uint8_t y[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; uint8_t out[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; // Define a pointer to an array containing pointers to strided arrays: uint8_t *arrays[] = { x, y, out }; // Define the strides: int64_t strides[] = { 1, 4, 8 }; // Define the number of elements over which to iterate: int64_t shape[] = { 3 }; // Define a callback: static double fcn( double x, double y ) { return x + y; } // Apply the callback: stdlib_strided_bi_d_as_dd_d( arrays, shape, strides, (void *)fcn ); ``` The function accepts the following arguments: - **arrays**: `[inout] uint8_t**` array whose first two elements are pointers to strided input arrays and whose last element is a pointer to a strided output array. - **shape**: `[in] int64_t*` array whose only element is the number of elements over which to iterate. - **strides**: `[in] int64_t*` array containing strides (in bytes) for each strided array. - **fcn**: `[in] void*` a `double (*f)(double, double)` function to apply provided as a `void` pointer. ```c void stdlib_strided_bi_d_as_dd_d( uint8_t *arrays[], const int64_t *shape, const int64_t *strides, void *fcn ); ``` #### stdlib_strided_bi_i_as_ii_i( \*arrays\[], \*shape, \*strides, \*fcn ) Applies a binary callback to strided input array elements and assigns results to elements in a strided output array. ```c #include // Create underlying byte arrays: uint8_t x[] = { 0, 0, 0 }; uint8_t y[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; uint8_t out[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; // Define a pointer to an array containing pointers to strided arrays: uint8_t *arrays[] = { x, y, out }; // Define the strides: int64_t strides[] = { 1, 4, 4 }; // Define the number of elements over which to iterate: int64_t shape[] = { 3 }; // Define a callback: static int32_t fcn( int32_t x, int32_t y ) { return x + y; } // Apply the callback: stdlib_strided_bi_i_as_ii_i( arrays, shape, strides, (void *)fcn ); ``` The function accepts the following arguments: - **arrays**: `[inout] uint8_t**` array whose first two elements are pointers to strided input arrays and whose last element is a pointer to a strided output array. - **shape**: `[in] int64_t*` array whose only element is the number of elements over which to iterate. - **strides**: `[in] int64_t*` array containing strides (in bytes) for each strided array. - **fcn**: `[in] void*` a `int32_t (*f)(int32_t, int32_t)` function to apply provided as a `void` pointer. ```c void stdlib_strided_bi_i_as_ii_i( uint8_t *arrays[], const int64_t *shape, const int64_t *strides, void *fcn ); ``` #### stdlib_strided_bi_z_as_zz_z( \*arrays\[], \*shape, \*strides, \*fcn ) Applies a binary callback to strided input array elements and assigns results to elements in a strided output array. ```c #include "stdlib/complex/float64/ctor.h" #include // Create underlying byte arrays: uint8_t x[] = { 0, 0, 0 }; uint8_t y[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; uint8_t out[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; // Define a pointer to an array containing pointers to strided arrays: uint8_t *arrays[] = { x, y, out }; // Define the strides: int64_t strides[] = { 1, 4, 16 }; // Define the number of elements over which to iterate: int64_t shape[] = { 3 }; // Define a callback: static stdlib_complex128_t fcn( stdlib_complex128_t x, stdlib_complex128_t y ) { // ... } // Apply the callback: stdlib_strided_bi_z_as_zz_z( arrays, shape, strides, (void *)fcn ); ``` The function accepts the following arguments: - **arrays**: `[inout] uint8_t**` array whose first two elements are pointers to strided input arrays and whose last element is a pointer to a strided output array. - **shape**: `[in] int64_t*` array whose only element is the number of elements over which to iterate. - **strides**: `[in] int64_t*` array containing strides (in bytes) for each strided array. - **fcn**: `[in] void*` a `stdlib_complex128_t (*f)(stdlib_complex128_t, stdlib_complex128_t)` function to apply provided as a `void` pointer. ```c void stdlib_strided_bi_z_as_zz_z( uint8_t *arrays[], const int64_t *shape, const int64_t *strides, void *fcn ); ``` #### stdlib_strided_bk_c_as_cc_c( \*arrays\[], \*shape, \*strides, \*fcn ) Applies a binary callback to strided input array elements and assigns results to elements in a strided output array. ```c #include "stdlib/complex/float32/ctor.h" #include // Create underlying byte arrays: uint8_t x[] = { 0, 0, 0 }; uint8_t y[] = { 0, 0, 0, 0, 0, 0 }; uint8_t out[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; // Define a pointer to an array containing pointers to strided arrays: uint8_t *arrays[] = { x, y, out }; // Define the strides: int64_t strides[] = { 1, 2, 8 }; // Define the number of elements over which to iterate: int64_t shape[] = { 3 }; // Define a callback: static stdlib_complex64_t fcn( stdlib_complex64_t x, stdlib_complex64_t y ) { // ... } // Apply the callback: stdlib_strided_bk_c_as_cc_c( arrays, shape, strides, (void *)fcn ); ``` The function accepts the following arguments: - **arrays**: `[inout] uint8_t**` array whose first two elements are pointers to strided input arrays and whose last element is a pointer to a strided output array. - **shape**: `[in] int64_t*` array whose only element is the number of elements over which to iterate. - **strides**: `[in] int64_t*` array containing strides (in bytes) for each strided array. - **fcn**: `[in] void*` a `stdlib_complex64_t (*f)(stdlib_complex64_t, stdlib_complex64_t)` function to apply provided as a `void` pointer. ```c void stdlib_strided_bk_c_as_cc_c( uint8_t *arrays[], const int64_t *shape, const int64_t *strides, void *fcn ); ``` #### stdlib_strided_bk_c_as_zz_z( \*arrays\[], \*shape, \*strides, \*fcn ) Applies a binary callback to strided input array elements and assigns results to elements in a strided output array. ```c #include "stdlib/complex/float64/ctor.h" #include // Create underlying byte arrays: uint8_t x[] = { 0, 0, 0 }; uint8_t y[] = { 0, 0, 0, 0, 0, 0 }; uint8_t out[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; // Define a pointer to an array containing pointers to strided arrays: uint8_t *arrays[] = { x, y, out }; // Define the strides: int64_t strides[] = { 1, 2, 8 }; // Define the number of elements over which to iterate: int64_t shape[] = { 3 }; // Define a callback: static stdlib_complex128_t fcn( stdlib_complex128_t x, stdlib_complex128_t y ) { // ... } // Apply the callback: stdlib_strided_bk_c_as_zz_z( arrays, shape, strides, (void *)fcn ); ``` The function accepts the following arguments: - **arrays**: `[inout] uint8_t**` array whose first two elements are pointers to strided input arrays and whose last element is a pointer to a strided output array. - **shape**: `[in] int64_t*` array whose only element is the number of elements over which to iterate. - **strides**: `[in] int64_t*` array containing strides (in bytes) for each strided array. - **fcn**: `[in] void*` a `stdlib_complex128_t (*f)(stdlib_complex128_t, stdlib_complex128_t)` function to apply provided as a `void` pointer. ```c void stdlib_strided_bk_c_as_zz_z( uint8_t *arrays[], const int64_t *shape, const int64_t *strides, void *fcn ); ``` #### stdlib_strided_bk_d_as_dd_d( \*arrays\[], \*shape, \*strides, \*fcn ) Applies a binary callback to strided input array elements and assigns results to elements in a strided output array. ```c #include // Create underlying byte arrays: uint8_t x[] = { 0, 0, 0 }; uint8_t y[] = { 0, 0, 0, 0, 0, 0 }; uint8_t out[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; // Define a pointer to an array containing pointers to strided arrays: uint8_t *arrays[] = { x, y, out }; // Define the strides: int64_t strides[] = { 1, 2, 8 }; // Define the number of elements over which to iterate: int64_t shape[] = { 3 }; // Define a callback: static double fcn( double x, double y ) { return x + y; } // Apply the callback: stdlib_strided_bk_d_as_dd_d( arrays, shape, strides, (void *)fcn ); ``` The function accepts the following arguments: - **arrays**: `[inout] uint8_t**` array whose first two elements are pointers to strided input arrays and whose last element is a pointer to a strided output array. - **shape**: `[in] int64_t*` array whose only element is the number of elements over which to iterate. - **strides**: `[in] int64_t*` array containing strides (in bytes) for each strided array. - **fcn**: `[in] void*` a `double (*f)(double, double)` function to apply provided as a `void` pointer. ```c void stdlib_strided_bk_d_as_dd_d( uint8_t *arrays[], const int64_t *shape, const int64_t *strides, void *fcn ); ``` #### stdlib_strided_bk_f_as_dd_d( \*arrays\[], \*shape, \*strides, \*fcn ) Applies a binary callback to strided input array elements and assigns results to elements in a strided output array. ```c #include // Create underlying byte arrays: uint8_t x[] = { 0, 0, 0 }; uint8_t y[] = { 0, 0, 0, 0, 0, 0 }; uint8_t out[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; // Define a pointer to an array containing pointers to strided arrays: uint8_t *arrays[] = { x, y, out }; // Define the strides: int64_t strides[] = { 1, 2, 4 }; // Define the number of elements over which to iterate: int64_t shape[] = { 3 }; // Define a callback: static double fcn( double x, double y ) { return x + y; } // Apply the callback: stdlib_strided_bk_f_as_dd_d( arrays, shape, strides, (void *)fcn ); ``` The function accepts the following arguments: - **arrays**: `[inout] uint8_t**` array whose first two elements are pointers to strided input arrays and whose last element is a pointer to a strided output array. - **shape**: `[in] int64_t*` array whose only element is the number of elements over which to iterate. - **strides**: `[in] int64_t*` array containing strides (in bytes) for each strided array. - **fcn**: `[in] void*` a `double (*f)(double, double)` function to apply provided as a `void` pointer. ```c void stdlib_strided_bk_f_as_dd_d( uint8_t *arrays[], const int64_t *shape, const int64_t *strides, void *fcn ); ``` #### stdlib_strided_bk_f_as_ff_f( \*arrays\[], \*shape, \*strides, \*fcn ) Applies a binary callback to strided input array elements and assigns results to elements in a strided output array. ```c #include // Create underlying byte arrays: uint8_t x[] = { 0, 0, 0 }; uint8_t y[] = { 0, 0, 0, 0, 0, 0 }; uint8_t out[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; // Define a pointer to an array containing pointers to strided arrays: uint8_t *arrays[] = { x, y, out }; // Define the strides: int64_t strides[] = { 1, 2, 4 }; // Define the number of elements over which to iterate: int64_t shape[] = { 3 }; // Define a callback: static float fcn( float x, float y ) { return x + y; } // Apply the callback: stdlib_strided_bk_f_as_ff_f( arrays, shape, strides, (void *)fcn ); ``` The function accepts the following arguments: - **arrays**: `[inout] uint8_t**` array whose first two elements are pointers to strided input arrays and whose last element is a pointer to a strided output array. - **shape**: `[in] int64_t*` array whose only element is the number of elements over which to iterate. - **strides**: `[in] int64_t*` array containing strides (in bytes) for each strided array. - **fcn**: `[in] void*` a `float (*f)(float, float)` function to apply provided as a `void` pointer. ```c void stdlib_strided_bk_f_as_ff_f( uint8_t *arrays[], const int64_t *shape, const int64_t *strides, void *fcn ); ``` #### stdlib_strided_bk_i_as_ii_i( \*arrays\[], \*shape, \*strides, \*fcn ) Applies a binary callback to strided input array elements and assigns results to elements in a strided output array. ```c #include // Create underlying byte arrays: uint8_t x[] = { 0, 0, 0 }; uint8_t y[] = { 0, 0, 0, 0, 0, 0 }; uint8_t out[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; // Define a pointer to an array containing pointers to strided arrays: uint8_t *arrays[] = { x, y, out }; // Define the strides: int64_t strides[] = { 1, 2, 4 }; // Define the number of elements over which to iterate: int64_t shape[] = { 3 }; // Define a callback: static int32_t fcn( int32_t x, int32_t y ) { return x + y; } // Apply the callback: stdlib_strided_bk_i_as_ii_i( arrays, shape, strides, (void *)fcn ); ``` The function accepts the following arguments: - **arrays**: `[inout] uint8_t**` array whose first two elements are pointers to strided input arrays and whose last element is a pointer to a strided output array. - **shape**: `[in] int64_t*` array whose only element is the number of elements over which to iterate. - **strides**: `[in] int64_t*` array containing strides (in bytes) for each strided array. - **fcn**: `[in] void*` a `int32_t (*f)(int32_t, int32_t)` function to apply provided as a `void` pointer. ```c void stdlib_strided_bk_i_as_ii_i( uint8_t *arrays[], const int64_t *shape, const int64_t *strides, void *fcn ); ``` #### stdlib_strided_bk_k_as_kk_k( \*arrays\[], \*shape, \*strides, \*fcn ) Applies a binary callback to strided input array elements and assigns results to elements in a strided output array. ```c #include // Create underlying byte arrays: uint8_t x[] = { 0, 0, 0 }; uint8_t y[] = { 0, 0, 0, 0, 0, 0 }; uint8_t out[] = { 0, 0, 0, 0, 0, 0 }; // Define a pointer to an array containing pointers to strided arrays: uint8_t *arrays[] = { x, y, out }; // Define the strides: int64_t strides[] = { 1, 2, 2 }; // Define the number of elements over which to iterate: int64_t shape[] = { 3 }; // Define a callback: static int16_t fcn( int16_t x, int16_t y ) { return x + y; } // Apply the callback: stdlib_strided_bk_k_as_kk_k( arrays, shape, strides, (void *)fcn ); ``` The function accepts the following arguments: - **arrays**: `[inout] uint8_t**` array whose first two elements are pointers to strided input arrays and whose last element is a pointer to a strided output array. - **shape**: `[in] int64_t*` array whose only element is the number of elements over which to iterate. - **strides**: `[in] int64_t*` array containing strides (in bytes) for each strided array. - **fcn**: `[in] void*` a `int16_t (*f)(int16_t, int16_t)` function to apply provided as a `void` pointer. ```c void stdlib_strided_bk_k_as_kk_k( uint8_t *arrays[], const int64_t *shape, const int64_t *strides, void *fcn ); ``` #### stdlib_strided_bk_z_as_zz_z( \*arrays\[], \*shape, \*strides, \*fcn ) Applies a binary callback to strided input array elements and assigns results to elements in a strided output array. ```c #include "stdlib/complex/float64/ctor.h" #include // Create underlying byte arrays: uint8_t x[] = { 0, 0, 0 }; uint8_t y[] = { 0, 0, 0, 0, 0, 0 }; uint8_t out[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; // Define a pointer to an array containing pointers to strided arrays: uint8_t *arrays[] = { x, y, out }; // Define the strides: int64_t strides[] = { 1, 2, 16 }; // Define the number of elements over which to iterate: int64_t shape[] = { 3 }; // Define a callback: static stdlib_complex128_t fcn( stdlib_complex128_t x, stdlib_complex128_t y ) { // ... } // Apply the callback: stdlib_strided_bk_z_as_zz_z( arrays, shape, strides, (void *)fcn ); ``` The function accepts the following arguments: - **arrays**: `[inout] uint8_t**` array whose first two elements are pointers to strided input arrays and whose last element is a pointer to a strided output array. - **shape**: `[in] int64_t*` array whose only element is the number of elements over which to iterate. - **strides**: `[in] int64_t*` array containing strides (in bytes) for each strided array. - **fcn**: `[in] void*` a `stdlib_complex128_t (*f)(stdlib_complex128_t, stdlib_complex128_t)` function to apply provided as a `void` pointer. ```c void stdlib_strided_bk_z_as_zz_z( uint8_t *arrays[], const int64_t *shape, const int64_t *strides, void *fcn ); ``` #### stdlib_strided_bs_c_as_cc_c( \*arrays\[], \*shape, \*strides, \*fcn ) Applies a binary callback to strided input array elements and assigns results to elements in a strided output array. ```c #include "stdlib/complex/float32/ctor.h" #include // Create underlying byte arrays: uint8_t x[] = { 0, 0, 0 }; uint8_t y[] = { 0, 0, 0 }; uint8_t out[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; // Define a pointer to an array containing pointers to strided arrays: uint8_t *arrays[] = { x, y, out }; // Define the strides: int64_t strides[] = { 1, 1, 8 }; // Define the number of elements over which to iterate: int64_t shape[] = { 3 }; // Define a callback: static stdlib_complex64_t fcn( stdlib_complex64_t x, stdlib_complex64_t y ) { // ... } // Apply the callback: stdlib_strided_bs_c_as_cc_c( arrays, shape, strides, (void *)fcn ); ``` The function accepts the following arguments: - **arrays**: `[inout] uint8_t**` array whose first two elements are pointers to strided input arrays and whose last element is a pointer to a strided output array. - **shape**: `[in] int64_t*` array whose only element is the number of elements over which to iterate. - **strides**: `[in] int64_t*` array containing strides (in bytes) for each strided array. - **fcn**: `[in] void*` a `stdlib_complex64_t (*f)(stdlib_complex64_t, stdlib_complex64_t)` function to apply provided as a `void` pointer. ```c void stdlib_strided_bs_c_as_cc_c( uint8_t *arrays[], const int64_t *shape, const int64_t *strides, void *fcn ); ``` #### stdlib_strided_bs_c_as_zz_z( \*arrays\[], \*shape, \*strides, \*fcn ) Applies a binary callback to strided input array elements and assigns results to elements in a strided output array. ```c #include "stdlib/complex/float64/ctor.h" #include // Create underlying byte arrays: uint8_t x[] = { 0, 0, 0 }; uint8_t y[] = { 0, 0, 0 }; uint8_t out[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; // Define a pointer to an array containing pointers to strided arrays: uint8_t *arrays[] = { x, y, out }; // Define the strides: int64_t strides[] = { 1, 1, 8 }; // Define the number of elements over which to iterate: int64_t shape[] = { 3 }; // Define a callback: static stdlib_complex128_t fcn( stdlib_complex128_t x, stdlib_complex128_t y ) { // ... } // Apply the callback: stdlib_strided_bs_c_as_zz_z( arrays, shape, strides, (void *)fcn ); ``` The function accepts the following arguments: - **arrays**: `[inout] uint8_t**` array whose first two elements are pointers to strided input arrays and whose last element is a pointer to a strided output array. - **shape**: `[in] int64_t*` array whose only element is the number of elements over which to iterate. - **strides**: `[in] int64_t*` array containing strides (in bytes) for each strided array. - **fcn**: `[in] void*` a `stdlib_complex128_t (*f)(stdlib_complex128_t, stdlib_complex128_t)` function to apply provided as a `void` pointer. ```c void stdlib_strided_bs_c_as_zz_z( uint8_t *arrays[], const int64_t *shape, const int64_t *strides, void *fcn ); ``` #### stdlib_strided_bs_d_as_dd_d( \*arrays\[], \*shape, \*strides, \*fcn ) Applies a binary callback to strided input array elements and assigns results to elements in a strided output array. ```c #include // Create underlying byte arrays: uint8_t x[] = { 0, 0, 0 }; uint8_t y[] = { 0, 0, 0 }; uint8_t out[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; // Define a pointer to an array containing pointers to strided arrays: uint8_t *arrays[] = { x, y, out }; // Define the strides: int64_t strides[] = { 1, 1, 8 }; // Define the number of elements over which to iterate: int64_t shape[] = { 3 }; // Define a callback: static double fcn( double x, double y ) { return x + y; } // Apply the callback: stdlib_strided_bs_d_as_dd_d( arrays, shape, strides, (void *)fcn ); ``` The function accepts the following arguments: - **arrays**: `[inout] uint8_t**` array whose first two elements are pointers to strided input arrays and whose last element is a pointer to a strided output array. - **shape**: `[in] int64_t*` array whose only element is the number of elements over which to iterate. - **strides**: `[in] int64_t*` array containing strides (in bytes) for each strided array. - **fcn**: `[in] void*` a `double (*f)(double, double)` function to apply provided as a `void` pointer. ```c void stdlib_strided_bs_d_as_dd_d( uint8_t *arrays[], const int64_t *shape, const int64_t *strides, void *fcn ); ``` #### stdlib_strided_bs_f_as_dd_d( \*arrays\[], \*shape, \*strides, \*fcn ) Applies a binary callback to strided input array elements and assigns results to elements in a strided output array. ```c #include // Create underlying byte arrays: uint8_t x[] = { 0, 0, 0 }; uint8_t y[] = { 0, 0, 0 }; uint8_t out[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; // Define a pointer to an array containing pointers to strided arrays: uint8_t *arrays[] = { x, y, out }; // Define the strides: int64_t strides[] = { 1, 1, 4 }; // Define the number of elements over which to iterate: int64_t shape[] = { 3 }; // Define a callback: static double fcn( double x, double y ) { return x + y; } // Apply the callback: stdlib_strided_bs_f_as_dd_d( arrays, shape, strides, (void *)fcn ); ``` The function accepts the following arguments: - **arrays**: `[inout] uint8_t**` array whose first two elements are pointers to strided input arrays and whose last element is a pointer to a strided output array. - **shape**: `[in] int64_t*` array whose only element is the number of elements over which to iterate. - **strides**: `[in] int64_t*` array containing strides (in bytes) for each strided array. - **fcn**: `[in] void*` a `double (*f)(double, double)` function to apply provided as a `void` pointer. ```c void stdlib_strided_bs_f_as_dd_d( uint8_t *arrays[], const int64_t *shape, const int64_t *strides, void *fcn ); ``` #### stdlib_strided_bs_f_as_ff_f( \*arrays\[], \*shape, \*strides, \*fcn ) Applies a binary callback to strided input array elements and assigns results to elements in a strided output array. ```c #include // Create underlying byte arrays: uint8_t x[] = { 0, 0, 0 }; uint8_t y[] = { 0, 0, 0 }; uint8_t out[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; // Define a pointer to an array containing pointers to strided arrays: uint8_t *arrays[] = { x, y, out }; // Define the strides: int64_t strides[] = { 1, 1, 4 }; // Define the number of elements over which to iterate: int64_t shape[] = { 3 }; // Define a callback: static float fcn( float x, float y ) { return x + y; } // Apply the callback: stdlib_strided_bs_f_as_ff_f( arrays, shape, strides, (void *)fcn ); ``` The function accepts the following arguments: - **arrays**: `[inout] uint8_t**` array whose first two elements are pointers to strided input arrays and whose last element is a pointer to a strided output array. - **shape**: `[in] int64_t*` array whose only element is the number of elements over which to iterate. - **strides**: `[in] int64_t*` array containing strides (in bytes) for each strided array. - **fcn**: `[in] void*` a `float (*f)(float, float)` function to apply provided as a `void` pointer. ```c void stdlib_strided_bs_f_as_ff_f( uint8_t *arrays[], const int64_t *shape, const int64_t *strides, void *fcn ); ``` #### stdlib_strided_bs_i_as_ii_i( \*arrays\[], \*shape, \*strides, \*fcn ) Applies a binary callback to strided input array elements and assigns results to elements in a strided output array. ```c #include // Create underlying byte arrays: uint8_t x[] = { 0, 0, 0 }; uint8_t y[] = { 0, 0, 0 }; uint8_t out[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; // Define a pointer to an array containing pointers to strided arrays: uint8_t *arrays[] = { x, y, out }; // Define the strides: int64_t strides[] = { 1, 1, 4 }; // Define the number of elements over which to iterate: int64_t shape[] = { 3 }; // Define a callback: static int32_t fcn( int32_t x, int32_t y ) { return x + y; } // Apply the callback: stdlib_strided_bs_i_as_ii_i( arrays, shape, strides, (void *)fcn ); ``` The function accepts the following arguments: - **arrays**: `[inout] uint8_t**` array whose first two elements are pointers to strided input arrays and whose last element is a pointer to a strided output array. - **shape**: `[in] int64_t*` array whose only element is the number of elements over which to iterate. - **strides**: `[in] int64_t*` array containing strides (in bytes) for each strided array. - **fcn**: `[in] void*` a `int32_t (*f)(int32_t, int32_t)` function to apply provided as a `void` pointer. ```c void stdlib_strided_bs_i_as_ii_i( uint8_t *arrays[], const int64_t *shape, const int64_t *strides, void *fcn ); ``` #### stdlib_strided_bs_k_as_kk_k( \*arrays\[], \*shape, \*strides, \*fcn ) Applies a binary callback to strided input array elements and assigns results to elements in a strided output array. ```c #include // Create underlying byte arrays: uint8_t x[] = { 0, 0, 0 }; uint8_t y[] = { 0, 0, 0 }; uint8_t out[] = { 0, 0, 0, 0, 0, 0 }; // Define a pointer to an array containing pointers to strided arrays: uint8_t *arrays[] = { x, y, out }; // Define the strides: int64_t strides[] = { 1, 1, 2 }; // Define the number of elements over which to iterate: int64_t shape[] = { 3 }; // Define a callback: static int16_t fcn( int16_t x, int16_t y ) { return x + y; } // Apply the callback: stdlib_strided_bs_k_as_kk_k( arrays, shape, strides, (void *)fcn ); ``` The function accepts the following arguments: - **arrays**: `[inout] uint8_t**` array whose first two elements are pointers to strided input arrays and whose last element is a pointer to a strided output array. - **shape**: `[in] int64_t*` array whose only element is the number of elements over which to iterate. - **strides**: `[in] int64_t*` array containing strides (in bytes) for each strided array. - **fcn**: `[in] void*` a `int16_t (*f)(int16_t, int16_t)` function to apply provided as a `void` pointer. ```c void stdlib_strided_bs_k_as_kk_k( uint8_t *arrays[], const int64_t *shape, const int64_t *strides, void *fcn ); ``` #### stdlib_strided_bs_z_as_zz_z( \*arrays\[], \*shape, \*strides, \*fcn ) Applies a binary callback to strided input array elements and assigns results to elements in a strided output array. ```c #include "stdlib/complex/float64/ctor.h" #include // Create underlying byte arrays: uint8_t x[] = { 0, 0, 0 }; uint8_t y[] = { 0, 0, 0 }; uint8_t out[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; // Define a pointer to an array containing pointers to strided arrays: uint8_t *arrays[] = { x, y, out }; // Define the strides: int64_t strides[] = { 1, 1, 16 }; // Define the number of elements over which to iterate: int64_t shape[] = { 3 }; // Define a callback: static stdlib_complex128_t fcn( stdlib_complex128_t x, stdlib_complex128_t y ) { // ... } // Apply the callback: stdlib_strided_bs_z_as_zz_z( arrays, shape, strides, (void *)fcn ); ``` The function accepts the following arguments: - **arrays**: `[inout] uint8_t**` array whose first two elements are pointers to strided input arrays and whose last element is a pointer to a strided output array. - **shape**: `[in] int64_t*` array whose only element is the number of elements over which to iterate. - **strides**: `[in] int64_t*` array containing strides (in bytes) for each strided array. - **fcn**: `[in] void*` a `stdlib_complex128_t (*f)(stdlib_complex128_t, stdlib_complex128_t)` function to apply provided as a `void` pointer. ```c void stdlib_strided_bs_z_as_zz_z( uint8_t *arrays[], const int64_t *shape, const int64_t *strides, void *fcn ); ``` #### stdlib_strided_bt_c_as_cc_c( \*arrays\[], \*shape, \*strides, \*fcn ) Applies a binary callback to strided input array elements and assigns results to elements in a strided output array. ```c #include "stdlib/complex/float32/ctor.h" #include // Create underlying byte arrays: uint8_t x[] = { 0, 0, 0 }; uint8_t y[] = { 0, 0, 0, 0, 0, 0 }; uint8_t out[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; // Define a pointer to an array containing pointers to strided arrays: uint8_t *arrays[] = { x, y, out }; // Define the strides: int64_t strides[] = { 1, 2, 8 }; // Define the number of elements over which to iterate: int64_t shape[] = { 3 }; // Define a callback: static stdlib_complex64_t fcn( stdlib_complex64_t x, stdlib_complex64_t y ) { // ... } // Apply the callback: stdlib_strided_bt_c_as_cc_c( arrays, shape, strides, (void *)fcn ); ``` The function accepts the following arguments: - **arrays**: `[inout] uint8_t**` array whose first two elements are pointers to strided input arrays and whose last element is a pointer to a strided output array. - **shape**: `[in] int64_t*` array whose only element is the number of elements over which to iterate. - **strides**: `[in] int64_t*` array containing strides (in bytes) for each strided array. - **fcn**: `[in] void*` a `stdlib_complex64_t (*f)(stdlib_complex64_t, stdlib_complex64_t)` function to apply provided as a `void` pointer. ```c void stdlib_strided_bt_c_as_cc_c( uint8_t *arrays[], const int64_t *shape, const int64_t *strides, void *fcn ); ``` #### stdlib_strided_bt_c_as_zz_z( \*arrays\[], \*shape, \*strides, \*fcn ) Applies a binary callback to strided input array elements and assigns results to elements in a strided output array. ```c #include "stdlib/complex/float64/ctor.h" #include // Create underlying byte arrays: uint8_t x[] = { 0, 0, 0 }; uint8_t y[] = { 0, 0, 0, 0, 0, 0 }; uint8_t out[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; // Define a pointer to an array containing pointers to strided arrays: uint8_t *arrays[] = { x, y, out }; // Define the strides: int64_t strides[] = { 1, 2, 8 }; // Define the number of elements over which to iterate: int64_t shape[] = { 3 }; // Define a callback: static stdlib_complex128_t fcn( stdlib_complex128_t x, stdlib_complex128_t y ) { // ... } // Apply the callback: stdlib_strided_bt_c_as_zz_z( arrays, shape, strides, (void *)fcn ); ``` The function accepts the following arguments: - **arrays**: `[inout] uint8_t**` array whose first two elements are pointers to strided input arrays and whose last element is a pointer to a strided output array. - **shape**: `[in] int64_t*` array whose only element is the number of elements over which to iterate. - **strides**: `[in] int64_t*` array containing strides (in bytes) for each strided array. - **fcn**: `[in] void*` a `stdlib_complex128_t (*f)(stdlib_complex128_t, stdlib_complex128_t)` function to apply provided as a `void` pointer. ```c void stdlib_strided_bt_c_as_zz_z( uint8_t *arrays[], const int64_t *shape, const int64_t *strides, void *fcn ); ``` #### stdlib_strided_bt_d_as_dd_d( \*arrays\[], \*shape, \*strides, \*fcn ) Applies a binary callback to strided input array elements and assigns results to elements in a strided output array. ```c #include // Create underlying byte arrays: uint8_t x[] = { 0, 0, 0 }; uint8_t y[] = { 0, 0, 0, 0, 0, 0 }; uint8_t out[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; // Define a pointer to an array containing pointers to strided arrays: uint8_t *arrays[] = { x, y, out }; // Define the strides: int64_t strides[] = { 1, 2, 8 }; // Define the number of elements over which to iterate: int64_t shape[] = { 3 }; // Define a callback: static double fcn( double x, double y ) { return x + y; } // Apply the callback: stdlib_strided_bt_d_as_dd_d( arrays, shape, strides, (void *)fcn ); ``` The function accepts the following arguments: - **arrays**: `[inout] uint8_t**` array whose first two elements are pointers to strided input arrays and whose last element is a pointer to a strided output array. - **shape**: `[in] int64_t*` array whose only element is the number of elements over which to iterate. - **strides**: `[in] int64_t*` array containing strides (in bytes) for each strided array. - **fcn**: `[in] void*` a `double (*f)(double, double)` function to apply provided as a `void` pointer. ```c void stdlib_strided_bt_d_as_dd_d( uint8_t *arrays[], const int64_t *shape, const int64_t *strides, void *fcn ); ``` #### stdlib_strided_bt_f_as_dd_d( \*arrays\[], \*shape, \*strides, \*fcn ) Applies a binary callback to strided input array elements and assigns results to elements in a strided output array. ```c #include // Create underlying byte arrays: uint8_t x[] = { 0, 0, 0 }; uint8_t y[] = { 0, 0, 0, 0, 0, 0 }; uint8_t out[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; // Define a pointer to an array containing pointers to strided arrays: uint8_t *arrays[] = { x, y, out }; // Define the strides: int64_t strides[] = { 1, 2, 4 }; // Define the number of elements over which to iterate: int64_t shape[] = { 3 }; // Define a callback: static double fcn( double x, double y ) { return x + y; } // Apply the callback: stdlib_strided_bt_f_as_dd_d( arrays, shape, strides, (void *)fcn ); ``` The function accepts the following arguments: - **arrays**: `[inout] uint8_t**` array whose first two elements are pointers to strided input arrays and whose last element is a pointer to a strided output array. - **shape**: `[in] int64_t*` array whose only element is the number of elements over which to iterate. - **strides**: `[in] int64_t*` array containing strides (in bytes) for each strided array. - **fcn**: `[in] void*` a `double (*f)(double, double)` function to apply provided as a `void` pointer. ```c void stdlib_strided_bt_f_as_dd_d( uint8_t *arrays[], const int64_t *shape, const int64_t *strides, void *fcn ); ``` #### stdlib_strided_bt_f_as_ff_f( \*arrays\[], \*shape, \*strides, \*fcn ) Applies a binary callback to strided input array elements and assigns results to elements in a strided output array. ```c #include // Create underlying byte arrays: uint8_t x[] = { 0, 0, 0 }; uint8_t y[] = { 0, 0, 0, 0, 0, 0 }; uint8_t out[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; // Define a pointer to an array containing pointers to strided arrays: uint8_t *arrays[] = { x, y, out }; // Define the strides: int64_t strides[] = { 1, 2, 4 }; // Define the number of elements over which to iterate: int64_t shape[] = { 3 }; // Define a callback: static float fcn( float x, float y ) { return x + y; } // Apply the callback: stdlib_strided_bt_f_as_ff_f( arrays, shape, strides, (void *)fcn ); ``` The function accepts the following arguments: - **arrays**: `[inout] uint8_t**` array whose first two elements are pointers to strided input arrays and whose last element is a pointer to a strided output array. - **shape**: `[in] int64_t*` array whose only element is the number of elements over which to iterate. - **strides**: `[in] int64_t*` array containing strides (in bytes) for each strided array. - **fcn**: `[in] void*` a `float (*f)(float, float)` function to apply provided as a `void` pointer. ```c void stdlib_strided_bt_f_as_ff_f( uint8_t *arrays[], const int64_t *shape, const int64_t *strides, void *fcn ); ``` #### stdlib_strided_bt_i_as_ii_i( \*arrays\[], \*shape, \*strides, \*fcn ) Applies a binary callback to strided input array elements and assigns results to elements in a strided output array. ```c #include // Create underlying byte arrays: uint8_t x[] = { 0, 0, 0 }; uint8_t y[] = { 0, 0, 0, 0, 0, 0 }; uint8_t out[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; // Define a pointer to an array containing pointers to strided arrays: uint8_t *arrays[] = { x, y, out }; // Define the strides: int64_t strides[] = { 1, 2, 4 }; // Define the number of elements over which to iterate: int64_t shape[] = { 3 }; // Define a callback: static int32_t fcn( int32_t x, int32_t y ) { return x + y; } // Apply the callback: stdlib_strided_bt_i_as_ii_i( arrays, shape, strides, (void *)fcn ); ``` The function accepts the following arguments: - **arrays**: `[inout] uint8_t**` array whose first two elements are pointers to strided input arrays and whose last element is a pointer to a strided output array. - **shape**: `[in] int64_t*` array whose only element is the number of elements over which to iterate. - **strides**: `[in] int64_t*` array containing strides (in bytes) for each strided array. - **fcn**: `[in] void*` a `int32_t (*f)(int32_t, int32_t)` function to apply provided as a `void` pointer. ```c void stdlib_strided_bt_i_as_ii_i( uint8_t *arrays[], const int64_t *shape, const int64_t *strides, void *fcn ); ``` #### stdlib_strided_bt_t_as_tt_t( \*arrays\[], \*shape, \*strides, \*fcn ) Applies a binary callback to strided input array elements and assigns results to elements in a strided output array. ```c #include // Create underlying byte arrays: uint8_t x[] = { 0, 0, 0 }; uint8_t y[] = { 0, 0, 0, 0, 0, 0 }; uint8_t out[] = { 0, 0, 0, 0, 0, 0 }; // Define a pointer to an array containing pointers to strided arrays: uint8_t *arrays[] = { x, y, out }; // Define the strides: int64_t strides[] = { 1, 2, 2 }; // Define the number of elements over which to iterate: int64_t shape[] = { 3 }; // Define a callback: static uint16_t fcn( uint16_t x, uint16_t y ) { return x + y; } // Apply the callback: stdlib_strided_bt_t_as_tt_t( arrays, shape, strides, (void *)fcn ); ``` The function accepts the following arguments: - **arrays**: `[inout] uint8_t**` array whose first two elements are pointers to strided input arrays and whose last element is a pointer to a strided output array. - **shape**: `[in] int64_t*` array whose only element is the number of elements over which to iterate. - **strides**: `[in] int64_t*` array containing strides (in bytes) for each strided array. - **fcn**: `[in] void*` a `uint16_t (*f)(uint16_t, uint16_t)` function to apply provided as a `void` pointer. ```c void stdlib_strided_bt_t_as_tt_t( uint8_t *arrays[], const int64_t *shape, const int64_t *strides, void *fcn ); ``` #### stdlib_strided_bt_u_as_uu_u( \*arrays\[], \*shape, \*strides, \*fcn ) Applies a binary callback to strided input array elements and assigns results to elements in a strided output array. ```c #include // Create underlying byte arrays: uint8_t x[] = { 0, 0, 0 }; uint8_t y[] = { 0, 0, 0, 0, 0, 0 }; uint8_t out[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; // Define a pointer to an array containing pointers to strided arrays: uint8_t *arrays[] = { x, y, out }; // Define the strides: int64_t strides[] = { 1, 2, 4 }; // Define the number of elements over which to iterate: int64_t shape[] = { 3 }; // Define a callback: static uint32_t fcn( uint32_t x, uint32_t y ) { return x + y; } // Apply the callback: stdlib_strided_bt_u_as_uu_u( arrays, shape, strides, (void *)fcn ); ``` The function accepts the following arguments: - **arrays**: `[inout] uint8_t**` array whose first two elements are pointers to strided input arrays and whose last element is a pointer to a strided output array. - **shape**: `[in] int64_t*` array whose only element is the number of elements over which to iterate. - **strides**: `[in] int64_t*` array containing strides (in bytes) for each strided array. - **fcn**: `[in] void*` a `uint32_t (*f)(uint32_t, uint32_t)` function to apply provided as a `void` pointer. ```c void stdlib_strided_bt_u_as_uu_u( uint8_t *arrays[], const int64_t *shape, const int64_t *strides, void *fcn ); ``` #### stdlib_strided_bt_z_as_zz_z( \*arrays\[], \*shape, \*strides, \*fcn ) Applies a binary callback to strided input array elements and assigns results to elements in a strided output array. ```c #include "stdlib/complex/float64/ctor.h" #include // Create underlying byte arrays: uint8_t x[] = { 0, 0, 0 }; uint8_t y[] = { 0, 0, 0, 0, 0, 0 }; uint8_t out[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; // Define a pointer to an array containing pointers to strided arrays: uint8_t *arrays[] = { x, y, out }; // Define the strides: int64_t strides[] = { 1, 2, 16 }; // Define the number of elements over which to iterate: int64_t shape[] = { 3 }; // Define a callback: static stdlib_complex128_t fcn( stdlib_complex128_t x, stdlib_complex128_t y ) { // ... } // Apply the callback: stdlib_strided_bt_z_as_zz_z( arrays, shape, strides, (void *)fcn ); ``` The function accepts the following arguments: - **arrays**: `[inout] uint8_t**` array whose first two elements are pointers to strided input arrays and whose last element is a pointer to a strided output array. - **shape**: `[in] int64_t*` array whose only element is the number of elements over which to iterate. - **strides**: `[in] int64_t*` array containing strides (in bytes) for each strided array. - **fcn**: `[in] void*` a `stdlib_complex128_t (*f)(stdlib_complex128_t, stdlib_complex128_t)` function to apply provided as a `void` pointer. ```c void stdlib_strided_bt_z_as_zz_z( uint8_t *arrays[], const int64_t *shape, const int64_t *strides, void *fcn ); ``` #### stdlib_strided_bu_d_as_dd_d( \*arrays\[], \*shape, \*strides, \*fcn ) Applies a binary callback to strided input array elements and assigns results to elements in a strided output array. ```c #include // Create underlying byte arrays: uint8_t x[] = { 0, 0, 0 }; uint8_t y[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; uint8_t out[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; // Define a pointer to an array containing pointers to strided arrays: uint8_t *arrays[] = { x, y, out }; // Define the strides: int64_t strides[] = { 1, 4, 8 }; // Define the number of elements over which to iterate: int64_t shape[] = { 3 }; // Define a callback: static double fcn( double x, double y ) { return x + y; } // Apply the callback: stdlib_strided_bu_d_as_dd_d( arrays, shape, strides, (void *)fcn ); ``` The function accepts the following arguments: - **arrays**: `[inout] uint8_t**` array whose first two elements are pointers to strided input arrays and whose last element is a pointer to a strided output array. - **shape**: `[in] int64_t*` array whose only element is the number of elements over which to iterate. - **strides**: `[in] int64_t*` array containing strides (in bytes) for each strided array. - **fcn**: `[in] void*` a `double (*f)(double, double)` function to apply provided as a `void` pointer. ```c void stdlib_strided_bu_d_as_dd_d( uint8_t *arrays[], const int64_t *shape, const int64_t *strides, void *fcn ); ``` #### stdlib_strided_bu_u_as_uu_u( \*arrays\[], \*shape, \*strides, \*fcn ) Applies a binary callback to strided input array elements and assigns results to elements in a strided output array. ```c #include // Create underlying byte arrays: uint8_t x[] = { 0, 0, 0 }; uint8_t y[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; uint8_t out[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; // Define a pointer to an array containing pointers to strided arrays: uint8_t *arrays[] = { x, y, out }; // Define the strides: int64_t strides[] = { 1, 4, 4 }; // Define the number of elements over which to iterate: int64_t shape[] = { 3 }; // Define a callback: static uint32_t fcn( uint32_t x, uint32_t y ) { return x + y; } // Apply the callback: stdlib_strided_bu_u_as_uu_u( arrays, shape, strides, (void *)fcn ); ``` The function accepts the following arguments: - **arrays**: `[inout] uint8_t**` array whose first two elements are pointers to strided input arrays and whose last element is a pointer to a strided output array. - **shape**: `[in] int64_t*` array whose only element is the number of elements over which to iterate. - **strides**: `[in] int64_t*` array containing strides (in bytes) for each strided array. - **fcn**: `[in] void*` a `uint32_t (*f)(uint32_t, uint32_t)` function to apply provided as a `void` pointer. ```c void stdlib_strided_bu_u_as_uu_u( uint8_t *arrays[], const int64_t *shape, const int64_t *strides, void *fcn ); ``` #### stdlib_strided_bu_z_as_zz_z( \*arrays\[], \*shape, \*strides, \*fcn ) Applies a binary callback to strided input array elements and assigns results to elements in a strided output array. ```c #include "stdlib/complex/float64/ctor.h" #include // Create underlying byte arrays: uint8_t x[] = { 0, 0, 0 }; uint8_t y[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; uint8_t out[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; // Define a pointer to an array containing pointers to strided arrays: uint8_t *arrays[] = { x, y, out }; // Define the strides: int64_t strides[] = { 1, 4, 16 }; // Define the number of elements over which to iterate: int64_t shape[] = { 3 }; // Define a callback: static stdlib_complex128_t fcn( stdlib_complex128_t x, stdlib_complex128_t y ) { // ... } // Apply the callback: stdlib_strided_bu_z_as_zz_z( arrays, shape, strides, (void *)fcn ); ``` The function accepts the following arguments: - **arrays**: `[inout] uint8_t**` array whose first two elements are pointers to strided input arrays and whose last element is a pointer to a strided output array. - **shape**: `[in] int64_t*` array whose only element is the number of elements over which to iterate. - **strides**: `[in] int64_t*` array containing strides (in bytes) for each strided array. - **fcn**: `[in] void*` a `stdlib_complex128_t (*f)(stdlib_complex128_t, stdlib_complex128_t)` function to apply provided as a `void` pointer. ```c void stdlib_strided_bu_z_as_zz_z( uint8_t *arrays[], const int64_t *shape, const int64_t *strides, void *fcn ); ``` #### stdlib_strided_bz_z_as_zz_z( \*arrays\[], \*shape, \*strides, \*fcn ) Applies a binary callback to strided input array elements and assigns results to elements in a strided output array. ```c #include "stdlib/complex/float64/ctor.h" #include // Create underlying byte arrays: uint8_t x[] = { 0, 0, 0 }; uint8_t y[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; uint8_t out[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; // Define a pointer to an array containing pointers to strided arrays: uint8_t *arrays[] = { x, y, out }; // Define the strides: int64_t strides[] = { 1, 16, 16 }; // Define the number of elements over which to iterate: int64_t shape[] = { 3 }; // Define a callback: static stdlib_complex128_t fcn( stdlib_complex128_t x, stdlib_complex128_t y ) { // ... } // Apply the callback: stdlib_strided_bz_z_as_zz_z( arrays, shape, strides, (void *)fcn ); ``` The function accepts the following arguments: - **arrays**: `[inout] uint8_t**` array whose first two elements are pointers to strided input arrays and whose last element is a pointer to a strided output array. - **shape**: `[in] int64_t*` array whose only element is the number of elements over which to iterate. - **strides**: `[in] int64_t*` array containing strides (in bytes) for each strided array. - **fcn**: `[in] void*` a `stdlib_complex128_t (*f)(stdlib_complex128_t, stdlib_complex128_t)` function to apply provided as a `void` pointer. ```c void stdlib_strided_bz_z_as_zz_z( uint8_t *arrays[], const int64_t *shape, const int64_t *strides, void *fcn ); ``` #### stdlib_strided_cb_c_as_cc_c( \*arrays\[], \*shape, \*strides, \*fcn ) Applies a binary callback to strided input array elements and assigns results to elements in a strided output array. ```c #include "stdlib/complex/float32/ctor.h" #include // Create underlying byte arrays: uint8_t x[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; uint8_t y[] = { 0, 0, 0 }; uint8_t out[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; // Define a pointer to an array containing pointers to strided arrays: uint8_t *arrays[] = { x, y, out }; // Define the strides: int64_t strides[] = { 8, 1, 8 }; // Define the number of elements over which to iterate: int64_t shape[] = { 3 }; // Define a callback: static stdlib_complex64_t fcn( stdlib_complex64_t x, stdlib_complex64_t y ) { // ... } // Apply the callback: stdlib_strided_cb_c_as_cc_c( arrays, shape, strides, (void *)fcn ); ``` The function accepts the following arguments: - **arrays**: `[inout] uint8_t**` array whose first two elements are pointers to strided input arrays and whose last element is a pointer to a strided output array. - **shape**: `[in] int64_t*` array whose only element is the number of elements over which to iterate. - **strides**: `[in] int64_t*` array containing strides (in bytes) for each strided array. - **fcn**: `[in] void*` a `stdlib_complex64_t (*f)(stdlib_complex64_t, stdlib_complex64_t)` function to apply provided as a `void` pointer. ```c void stdlib_strided_cb_c_as_cc_c( uint8_t *arrays[], const int64_t *shape, const int64_t *strides, void *fcn ); ``` #### stdlib_strided_cb_c_as_zz_z( \*arrays\[], \*shape, \*strides, \*fcn ) Applies a binary callback to strided input array elements and assigns results to elements in a strided output array. ```c #include "stdlib/complex/float64/ctor.h" #include // Create underlying byte arrays: uint8_t x[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; uint8_t y[] = { 0, 0, 0 }; uint8_t out[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; // Define a pointer to an array containing pointers to strided arrays: uint8_t *arrays[] = { x, y, out }; // Define the strides: int64_t strides[] = { 8, 1, 8 }; // Define the number of elements over which to iterate: int64_t shape[] = { 3 }; // Define a callback: static stdlib_complex128_t fcn( stdlib_complex128_t x, stdlib_complex128_t y ) { // ... } // Apply the callback: stdlib_strided_cb_c_as_zz_z( arrays, shape, strides, (void *)fcn ); ``` The function accepts the following arguments: - **arrays**: `[inout] uint8_t**` array whose first two elements are pointers to strided input arrays and whose last element is a pointer to a strided output array. - **shape**: `[in] int64_t*` array whose only element is the number of elements over which to iterate. - **strides**: `[in] int64_t*` array containing strides (in bytes) for each strided array. - **fcn**: `[in] void*` a `stdlib_complex128_t (*f)(stdlib_complex128_t, stdlib_complex128_t)` function to apply provided as a `void` pointer. ```c void stdlib_strided_cb_c_as_zz_z( uint8_t *arrays[], const int64_t *shape, const int64_t *strides, void *fcn ); ``` #### stdlib_strided_cb_z_as_zz_z( \*arrays\[], \*shape, \*strides, \*fcn ) Applies a binary callback to strided input array elements and assigns results to elements in a strided output array. ```c #include "stdlib/complex/float64/ctor.h" #include // Create underlying byte arrays: uint8_t x[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; uint8_t y[] = { 0, 0, 0 }; uint8_t out[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; // Define a pointer to an array containing pointers to strided arrays: uint8_t *arrays[] = { x, y, out }; // Define the strides: int64_t strides[] = { 8, 1, 16 }; // Define the number of elements over which to iterate: int64_t shape[] = { 3 }; // Define a callback: static stdlib_complex128_t fcn( stdlib_complex128_t x, stdlib_complex128_t y ) { // ... } // Apply the callback: stdlib_strided_cb_z_as_zz_z( arrays, shape, strides, (void *)fcn ); ``` The function accepts the following arguments: - **arrays**: `[inout] uint8_t**` array whose first two elements are pointers to strided input arrays and whose last element is a pointer to a strided output array. - **shape**: `[in] int64_t*` array whose only element is the number of elements over which to iterate. - **strides**: `[in] int64_t*` array containing strides (in bytes) for each strided array. - **fcn**: `[in] void*` a `stdlib_complex128_t (*f)(stdlib_complex128_t, stdlib_complex128_t)` function to apply provided as a `void` pointer. ```c void stdlib_strided_cb_z_as_zz_z( uint8_t *arrays[], const int64_t *shape, const int64_t *strides, void *fcn ); ``` #### stdlib_strided_cc_c( \*arrays\[], \*shape, \*strides, \*fcn ) Applies a binary callback to strided input array elements and assigns results to elements in a strided output array. ```c #include "stdlib/complex/float32/ctor.h" #include // Create underlying byte arrays: uint8_t x[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; uint8_t y[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; uint8_t out[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; // Define a pointer to an array containing pointers to strided arrays: uint8_t *arrays[] = { x, y, out }; // Define the strides: int64_t strides[] = { 8, 8, 8 }; // Define the number of elements over which to iterate: int64_t shape[] = { 3 }; // Define a callback: static stdlib_complex64_t fcn( stdlib_complex64_t x, stdlib_complex64_t y ) { // ... } // Apply the callback: stdlib_strided_cc_c( arrays, shape, strides, (void *)fcn ); ``` The function accepts the following arguments: - **arrays**: `[inout] uint8_t**` array whose first two elements are pointers to strided input arrays and whose last element is a pointer to a strided output array. - **shape**: `[in] int64_t*` array whose only element is the number of elements over which to iterate. - **strides**: `[in] int64_t*` array containing strides (in bytes) for each strided array. - **fcn**: `[in] void*` a `stdlib_complex64_t (*f)(stdlib_complex64_t, stdlib_complex64_t)` function to apply provided as a `void` pointer. ```c void stdlib_strided_cc_c( uint8_t *arrays[], const int64_t *shape, const int64_t *strides, void *fcn ); ``` #### stdlib_strided_cc_c_as_zz_z( \*arrays\[], \*shape, \*strides, \*fcn ) Applies a binary callback to strided input array elements and assigns results to elements in a strided output array. ```c #include "stdlib/complex/float64/ctor.h" #include // Create underlying byte arrays: uint8_t x[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; uint8_t y[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; uint8_t out[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; // Define a pointer to an array containing pointers to strided arrays: uint8_t *arrays[] = { x, y, out }; // Define the strides: int64_t strides[] = { 8, 8, 8 }; // Define the number of elements over which to iterate: int64_t shape[] = { 3 }; // Define a callback: static stdlib_complex128_t fcn( stdlib_complex128_t x, stdlib_complex128_t y ) { // ... } // Apply the callback: stdlib_strided_cc_c_as_zz_z( arrays, shape, strides, (void *)fcn ); ``` The function accepts the following arguments: - **arrays**: `[inout] uint8_t**` array whose first two elements are pointers to strided input arrays and whose last element is a pointer to a strided output array. - **shape**: `[in] int64_t*` array whose only element is the number of elements over which to iterate. - **strides**: `[in] int64_t*` array containing strides (in bytes) for each strided array. - **fcn**: `[in] void*` a `stdlib_complex128_t (*f)(stdlib_complex128_t, stdlib_complex128_t)` function to apply provided as a `void` pointer. ```c void stdlib_strided_cc_c_as_zz_z( uint8_t *arrays[], const int64_t *shape, const int64_t *strides, void *fcn ); ``` #### stdlib_strided_cc_z( \*arrays\[], \*shape, \*strides, \*fcn ) Applies a binary callback to strided input array elements and assigns results to elements in a strided output array. ```c #include "stdlib/complex/float32/ctor.h" #include // Create underlying byte arrays: uint8_t x[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; uint8_t y[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; uint8_t out[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; // Define a pointer to an array containing pointers to strided arrays: uint8_t *arrays[] = { x, y, out }; // Define the strides: int64_t strides[] = { 8, 8, 16 }; // Define the number of elements over which to iterate: int64_t shape[] = { 3 }; // Define a callback: static stdlib_complex64_t fcn( stdlib_complex64_t x, stdlib_complex64_t y ) { // ... } // Apply the callback: stdlib_strided_cc_z( arrays, shape, strides, (void *)fcn ); ``` The function accepts the following arguments: - **arrays**: `[inout] uint8_t**` array whose first two elements are pointers to strided input arrays and whose last element is a pointer to a strided output array. - **shape**: `[in] int64_t*` array whose only element is the number of elements over which to iterate. - **strides**: `[in] int64_t*` array containing strides (in bytes) for each strided array. - **fcn**: `[in] void*` a `stdlib_complex64_t (*f)(stdlib_complex64_t, stdlib_complex64_t)` function to apply provided as a `void` pointer. ```c void stdlib_strided_cc_z( uint8_t *arrays[], const int64_t *shape, const int64_t *strides, void *fcn ); ``` #### stdlib_strided_cc_z_as_zz_z( \*arrays\[], \*shape, \*strides, \*fcn ) Applies a binary callback to strided input array elements and assigns results to elements in a strided output array. ```c #include "stdlib/complex/float64/ctor.h" #include // Create underlying byte arrays: uint8_t x[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; uint8_t y[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; uint8_t out[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; // Define a pointer to an array containing pointers to strided arrays: uint8_t *arrays[] = { x, y, out }; // Define the strides: int64_t strides[] = { 8, 8, 16 }; // Define the number of elements over which to iterate: int64_t shape[] = { 3 }; // Define a callback: static stdlib_complex128_t fcn( stdlib_complex128_t x, stdlib_complex128_t y ) { // ... } // Apply the callback: stdlib_strided_cc_z_as_zz_z( arrays, shape, strides, (void *)fcn ); ``` The function accepts the following arguments: - **arrays**: `[inout] uint8_t**` array whose first two elements are pointers to strided input arrays and whose last element is a pointer to a strided output array. - **shape**: `[in] int64_t*` array whose only element is the number of elements over which to iterate. - **strides**: `[in] int64_t*` array containing strides (in bytes) for each strided array. - **fcn**: `[in] void*` a `stdlib_complex128_t (*f)(stdlib_complex128_t, stdlib_complex128_t)` function to apply provided as a `void` pointer. ```c void stdlib_strided_cc_z_as_zz_z( uint8_t *arrays[], const int64_t *shape, const int64_t *strides, void *fcn ); ``` #### stdlib_strided_cd_z_as_zz_z( \*arrays\[], \*shape, \*strides, \*fcn ) Applies a binary callback to strided input array elements and assigns results to elements in a strided output array. ```c #include "stdlib/complex/float64/ctor.h" #include // Create underlying byte arrays: uint8_t x[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; uint8_t y[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; uint8_t out[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; // Define a pointer to an array containing pointers to strided arrays: uint8_t *arrays[] = { x, y, out }; // Define the strides: int64_t strides[] = { 8, 8, 16 }; // Define the number of elements over which to iterate: int64_t shape[] = { 3 }; // Define a callback: static stdlib_complex128_t fcn( stdlib_complex128_t x, stdlib_complex128_t y ) { // ... } // Apply the callback: stdlib_strided_cd_z_as_zz_z( arrays, shape, strides, (void *)fcn ); ``` The function accepts the following arguments: - **arrays**: `[inout] uint8_t**` array whose first two elements are pointers to strided input arrays and whose last element is a pointer to a strided output array. - **shape**: `[in] int64_t*` array whose only element is the number of elements over which to iterate. - **strides**: `[in] int64_t*` array containing strides (in bytes) for each strided array. - **fcn**: `[in] void*` a `stdlib_complex128_t (*f)(stdlib_complex128_t, stdlib_complex128_t)` function to apply provided as a `void` pointer. ```c void stdlib_strided_cd_z_as_zz_z( uint8_t *arrays[], const int64_t *shape, const int64_t *strides, void *fcn ); ``` #### stdlib_strided_cf_c_as_cc_c( \*arrays\[], \*shape, \*strides, \*fcn ) Applies a binary callback to strided input array elements and assigns results to elements in a strided output array. ```c #include "stdlib/complex/float32/ctor.h" #include // Create underlying byte arrays: uint8_t x[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; uint8_t y[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; uint8_t out[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; // Define a pointer to an array containing pointers to strided arrays: uint8_t *arrays[] = { x, y, out }; // Define the strides: int64_t strides[] = { 8, 4, 8 }; // Define the number of elements over which to iterate: int64_t shape[] = { 3 }; // Define a callback: static stdlib_complex64_t fcn( stdlib_complex64_t x, stdlib_complex64_t y ) { // ... } // Apply the callback: stdlib_strided_cf_c_as_cc_c( arrays, shape, strides, (void *)fcn ); ``` The function accepts the following arguments: - **arrays**: `[inout] uint8_t**` array whose first two elements are pointers to strided input arrays and whose last element is a pointer to a strided output array. - **shape**: `[in] int64_t*` array whose only element is the number of elements over which to iterate. - **strides**: `[in] int64_t*` array containing strides (in bytes) for each strided array. - **fcn**: `[in] void*` a `stdlib_complex64_t (*f)(stdlib_complex64_t, stdlib_complex64_t)` function to apply provided as a `void` pointer. ```c void stdlib_strided_cf_c_as_cc_c( uint8_t *arrays[], const int64_t *shape, const int64_t *strides, void *fcn ); ``` #### stdlib_strided_cf_c_as_zz_z( \*arrays\[], \*shape, \*strides, \*fcn ) Applies a binary callback to strided input array elements and assigns results to elements in a strided output array. ```c #include "stdlib/complex/float64/ctor.h" #include // Create underlying byte arrays: uint8_t x[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; uint8_t y[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; uint8_t out[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; // Define a pointer to an array containing pointers to strided arrays: uint8_t *arrays[] = { x, y, out }; // Define the strides: int64_t strides[] = { 8, 4, 8 }; // Define the number of elements over which to iterate: int64_t shape[] = { 3 }; // Define a callback: static stdlib_complex128_t fcn( stdlib_complex128_t x, stdlib_complex128_t y ) { // ... } // Apply the callback: stdlib_strided_cf_c_as_zz_z( arrays, shape, strides, (void *)fcn ); ``` The function accepts the following arguments: - **arrays**: `[inout] uint8_t**` array whose first two elements are pointers to strided input arrays and whose last element is a pointer to a strided output array. - **shape**: `[in] int64_t*` array whose only element is the number of elements over which to iterate. - **strides**: `[in] int64_t*` array containing strides (in bytes) for each strided array. - **fcn**: `[in] void*` a `stdlib_complex128_t (*f)(stdlib_complex128_t, stdlib_complex128_t)` function to apply provided as a `void` pointer. ```c void stdlib_strided_cf_c_as_zz_z( uint8_t *arrays[], const int64_t *shape, const int64_t *strides, void *fcn ); ``` #### stdlib_strided_cf_z_as_zz_z( \*arrays\[], \*shape, \*strides, \*fcn ) Applies a binary callback to strided input array elements and assigns results to elements in a strided output array. ```c #include "stdlib/complex/float64/ctor.h" #include // Create underlying byte arrays: uint8_t x[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; uint8_t y[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; uint8_t out[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; // Define a pointer to an array containing pointers to strided arrays: uint8_t *arrays[] = { x, y, out }; // Define the strides: int64_t strides[] = { 8, 4, 16 }; // Define the number of elements over which to iterate: int64_t shape[] = { 3 }; // Define a callback: static stdlib_complex128_t fcn( stdlib_complex128_t x, stdlib_complex128_t y ) { // ... } // Apply the callback: stdlib_strided_cf_z_as_zz_z( arrays, shape, strides, (void *)fcn ); ``` The function accepts the following arguments: - **arrays**: `[inout] uint8_t**` array whose first two elements are pointers to strided input arrays and whose last element is a pointer to a strided output array. - **shape**: `[in] int64_t*` array whose only element is the number of elements over which to iterate. - **strides**: `[in] int64_t*` array containing strides (in bytes) for each strided array. - **fcn**: `[in] void*` a `stdlib_complex128_t (*f)(stdlib_complex128_t, stdlib_complex128_t)` function to apply provided as a `void` pointer. ```c void stdlib_strided_cf_z_as_zz_z( uint8_t *arrays[], const int64_t *shape, const int64_t *strides, void *fcn ); ``` #### stdlib_strided_ci_z_as_zz_z( \*arrays\[], \*shape, \*strides, \*fcn ) Applies a binary callback to strided input array elements and assigns results to elements in a strided output array. ```c #include "stdlib/complex/float64/ctor.h" #include // Create underlying byte arrays: uint8_t x[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; uint8_t y[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; uint8_t out[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; // Define a pointer to an array containing pointers to strided arrays: uint8_t *arrays[] = { x, y, out }; // Define the strides: int64_t strides[] = { 8, 4, 16 }; // Define the number of elements over which to iterate: int64_t shape[] = { 3 }; // Define a callback: static stdlib_complex128_t fcn( stdlib_complex128_t x, stdlib_complex128_t y ) { // ... } // Apply the callback: stdlib_strided_ci_z_as_zz_z( arrays, shape, strides, (void *)fcn ); ``` The function accepts the following arguments: - **arrays**: `[inout] uint8_t**` array whose first two elements are pointers to strided input arrays and whose last element is a pointer to a strided output array. - **shape**: `[in] int64_t*` array whose only element is the number of elements over which to iterate. - **strides**: `[in] int64_t*` array containing strides (in bytes) for each strided array. - **fcn**: `[in] void*` a `stdlib_complex128_t (*f)(stdlib_complex128_t, stdlib_complex128_t)` function to apply provided as a `void` pointer. ```c void stdlib_strided_ci_z_as_zz_z( uint8_t *arrays[], const int64_t *shape, const int64_t *strides, void *fcn ); ``` #### stdlib_strided_ck_c_as_cc_c( \*arrays\[], \*shape, \*strides, \*fcn ) Applies a binary callback to strided input array elements and assigns results to elements in a strided output array. ```c #include "stdlib/complex/float32/ctor.h" #include // Create underlying byte arrays: uint8_t x[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; uint8_t y[] = { 0, 0, 0, 0, 0, 0 }; uint8_t out[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; // Define a pointer to an array containing pointers to strided arrays: uint8_t *arrays[] = { x, y, out }; // Define the strides: int64_t strides[] = { 8, 2, 8 }; // Define the number of elements over which to iterate: int64_t shape[] = { 3 }; // Define a callback: static stdlib_complex64_t fcn( stdlib_complex64_t x, stdlib_complex64_t y ) { // ... } // Apply the callback: stdlib_strided_ck_c_as_cc_c( arrays, shape, strides, (void *)fcn ); ``` The function accepts the following arguments: - **arrays**: `[inout] uint8_t**` array whose first two elements are pointers to strided input arrays and whose last element is a pointer to a strided output array. - **shape**: `[in] int64_t*` array whose only element is the number of elements over which to iterate. - **strides**: `[in] int64_t*` array containing strides (in bytes) for each strided array. - **fcn**: `[in] void*` a `stdlib_complex64_t (*f)(stdlib_complex64_t, stdlib_complex64_t)` function to apply provided as a `void` pointer. ```c void stdlib_strided_ck_c_as_cc_c( uint8_t *arrays[], const int64_t *shape, const int64_t *strides, void *fcn ); ``` #### stdlib_strided_ck_c_as_zz_z( \*arrays\[], \*shape, \*strides, \*fcn ) Applies a binary callback to strided input array elements and assigns results to elements in a strided output array. ```c #include "stdlib/complex/float64/ctor.h" #include // Create underlying byte arrays: uint8_t x[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; uint8_t y[] = { 0, 0, 0, 0, 0, 0 }; uint8_t out[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; // Define a pointer to an array containing pointers to strided arrays: uint8_t *arrays[] = { x, y, out }; // Define the strides: int64_t strides[] = { 8, 2, 8 }; // Define the number of elements over which to iterate: int64_t shape[] = { 3 }; // Define a callback: static stdlib_complex128_t fcn( stdlib_complex128_t x, stdlib_complex128_t y ) { // ... } // Apply the callback: stdlib_strided_ck_c_as_zz_z( arrays, shape, strides, (void *)fcn ); ``` The function accepts the following arguments: - **arrays**: `[inout] uint8_t**` array whose first two elements are pointers to strided input arrays and whose last element is a pointer to a strided output array. - **shape**: `[in] int64_t*` array whose only element is the number of elements over which to iterate. - **strides**: `[in] int64_t*` array containing strides (in bytes) for each strided array. - **fcn**: `[in] void*` a `stdlib_complex128_t (*f)(stdlib_complex128_t, stdlib_complex128_t)` function to apply provided as a `void` pointer. ```c void stdlib_strided_ck_c_as_zz_z( uint8_t *arrays[], const int64_t *shape, const int64_t *strides, void *fcn ); ``` #### stdlib_strided_ck_z_as_zz_z( \*arrays\[], \*shape, \*strides, \*fcn ) Applies a binary callback to strided input array elements and assigns results to elements in a strided output array. ```c #include "stdlib/complex/float64/ctor.h" #include // Create underlying byte arrays: uint8_t x[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; uint8_t y[] = { 0, 0, 0, 0, 0, 0 }; uint8_t out[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; // Define a pointer to an array containing pointers to strided arrays: uint8_t *arrays[] = { x, y, out }; // Define the strides: int64_t strides[] = { 8, 2, 16 }; // Define the number of elements over which to iterate: int64_t shape[] = { 3 }; // Define a callback: static stdlib_complex128_t fcn( stdlib_complex128_t x, stdlib_complex128_t y ) { // ... } // Apply the callback: stdlib_strided_ck_z_as_zz_z( arrays, shape, strides, (void *)fcn ); ``` The function accepts the following arguments: - **arrays**: `[inout] uint8_t**` array whose first two elements are pointers to strided input arrays and whose last element is a pointer to a strided output array. - **shape**: `[in] int64_t*` array whose only element is the number of elements over which to iterate. - **strides**: `[in] int64_t*` array containing strides (in bytes) for each strided array. - **fcn**: `[in] void*` a `stdlib_complex128_t (*f)(stdlib_complex128_t, stdlib_complex128_t)` function to apply provided as a `void` pointer. ```c void stdlib_strided_ck_z_as_zz_z( uint8_t *arrays[], const int64_t *shape, const int64_t *strides, void *fcn ); ``` #### stdlib_strided_cs_c_as_cc_c( \*arrays\[], \*shape, \*strides, \*fcn ) Applies a binary callback to strided input array elements and assigns results to elements in a strided output array. ```c #include "stdlib/complex/float32/ctor.h" #include // Create underlying byte arrays: uint8_t x[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; uint8_t y[] = { 0, 0, 0 }; uint8_t out[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; // Define a pointer to an array containing pointers to strided arrays: uint8_t *arrays[] = { x, y, out }; // Define the strides: int64_t strides[] = { 8, 1, 8 }; // Define the number of elements over which to iterate: int64_t shape[] = { 3 }; // Define a callback: static stdlib_complex64_t fcn( stdlib_complex64_t x, stdlib_complex64_t y ) { // ... } // Apply the callback: stdlib_strided_cs_c_as_cc_c( arrays, shape, strides, (void *)fcn ); ``` The function accepts the following arguments: - **arrays**: `[inout] uint8_t**` array whose first two elements are pointers to strided input arrays and whose last element is a pointer to a strided output array. - **shape**: `[in] int64_t*` array whose only element is the number of elements over which to iterate. - **strides**: `[in] int64_t*` array containing strides (in bytes) for each strided array. - **fcn**: `[in] void*` a `stdlib_complex64_t (*f)(stdlib_complex64_t, stdlib_complex64_t)` function to apply provided as a `void` pointer. ```c void stdlib_strided_cs_c_as_cc_c( uint8_t *arrays[], const int64_t *shape, const int64_t *strides, void *fcn ); ``` #### stdlib_strided_cs_c_as_zz_z( \*arrays\[], \*shape, \*strides, \*fcn ) Applies a binary callback to strided input array elements and assigns results to elements in a strided output array. ```c #include "stdlib/complex/float64/ctor.h" #include // Create underlying byte arrays: uint8_t x[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; uint8_t y[] = { 0, 0, 0 }; uint8_t out[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; // Define a pointer to an array containing pointers to strided arrays: uint8_t *arrays[] = { x, y, out }; // Define the strides: int64_t strides[] = { 8, 1, 8 }; // Define the number of elements over which to iterate: int64_t shape[] = { 3 }; // Define a callback: static stdlib_complex128_t fcn( stdlib_complex128_t x, stdlib_complex128_t y ) { // ... } // Apply the callback: stdlib_strided_cs_c_as_zz_z( arrays, shape, strides, (void *)fcn ); ``` The function accepts the following arguments: - **arrays**: `[inout] uint8_t**` array whose first two elements are pointers to strided input arrays and whose last element is a pointer to a strided output array. - **shape**: `[in] int64_t*` array whose only element is the number of elements over which to iterate. - **strides**: `[in] int64_t*` array containing strides (in bytes) for each strided array. - **fcn**: `[in] void*` a `stdlib_complex128_t (*f)(stdlib_complex128_t, stdlib_complex128_t)` function to apply provided as a `void` pointer. ```c void stdlib_strided_cs_c_as_zz_z( uint8_t *arrays[], const int64_t *shape, const int64_t *strides, void *fcn ); ``` #### stdlib_strided_cs_z_as_zz_z( \*arrays\[], \*shape, \*strides, \*fcn ) Applies a binary callback to strided input array elements and assigns results to elements in a strided output array. ```c #include "stdlib/complex/float64/ctor.h" #include // Create underlying byte arrays: uint8_t x[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; uint8_t y[] = { 0, 0, 0 }; uint8_t out[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; // Define a pointer to an array containing pointers to strided arrays: uint8_t *arrays[] = { x, y, out }; // Define the strides: int64_t strides[] = { 8, 1, 16 }; // Define the number of elements over which to iterate: int64_t shape[] = { 3 }; // Define a callback: static stdlib_complex128_t fcn( stdlib_complex128_t x, stdlib_complex128_t y ) { // ... } // Apply the callback: stdlib_strided_cs_z_as_zz_z( arrays, shape, strides, (void *)fcn ); ``` The function accepts the following arguments: - **arrays**: `[inout] uint8_t**` array whose first two elements are pointers to strided input arrays and whose last element is a pointer to a strided output array. - **shape**: `[in] int64_t*` array whose only element is the number of elements over which to iterate. - **strides**: `[in] int64_t*` array containing strides (in bytes) for each strided array. - **fcn**: `[in] void*` a `stdlib_complex128_t (*f)(stdlib_complex128_t, stdlib_complex128_t)` function to apply provided as a `void` pointer. ```c void stdlib_strided_cs_z_as_zz_z( uint8_t *arrays[], const int64_t *shape, const int64_t *strides, void *fcn ); ``` #### stdlib_strided_ct_c_as_cc_c( \*arrays\[], \*shape, \*strides, \*fcn ) Applies a binary callback to strided input array elements and assigns results to elements in a strided output array. ```c #include "stdlib/complex/float32/ctor.h" #include // Create underlying byte arrays: uint8_t x[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; uint8_t y[] = { 0, 0, 0, 0, 0, 0 }; uint8_t out[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; // Define a pointer to an array containing pointers to strided arrays: uint8_t *arrays[] = { x, y, out }; // Define the strides: int64_t strides[] = { 8, 2, 8 }; // Define the number of elements over which to iterate: int64_t shape[] = { 3 }; // Define a callback: static stdlib_complex64_t fcn( stdlib_complex64_t x, stdlib_complex64_t y ) { // ... } // Apply the callback: stdlib_strided_ct_c_as_cc_c( arrays, shape, strides, (void *)fcn ); ``` The function accepts the following arguments: - **arrays**: `[inout] uint8_t**` array whose first two elements are pointers to strided input arrays and whose last element is a pointer to a strided output array. - **shape**: `[in] int64_t*` array whose only element is the number of elements over which to iterate. - **strides**: `[in] int64_t*` array containing strides (in bytes) for each strided array. - **fcn**: `[in] void*` a `stdlib_complex64_t (*f)(stdlib_complex64_t, stdlib_complex64_t)` function to apply provided as a `void` pointer. ```c void stdlib_strided_ct_c_as_cc_c( uint8_t *arrays[], const int64_t *shape, const int64_t *strides, void *fcn ); ``` #### stdlib_strided_ct_c_as_zz_z( \*arrays\[], \*shape, \*strides, \*fcn ) Applies a binary callback to strided input array elements and assigns results to elements in a strided output array. ```c #include "stdlib/complex/float64/ctor.h" #include // Create underlying byte arrays: uint8_t x[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; uint8_t y[] = { 0, 0, 0, 0, 0, 0 }; uint8_t out[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; // Define a pointer to an array containing pointers to strided arrays: uint8_t *arrays[] = { x, y, out }; // Define the strides: int64_t strides[] = { 8, 2, 8 }; // Define the number of elements over which to iterate: int64_t shape[] = { 3 }; // Define a callback: static stdlib_complex128_t fcn( stdlib_complex128_t x, stdlib_complex128_t y ) { // ... } // Apply the callback: stdlib_strided_ct_c_as_zz_z( arrays, shape, strides, (void *)fcn ); ``` The function accepts the following arguments: - **arrays**: `[inout] uint8_t**` array whose first two elements are pointers to strided input arrays and whose last element is a pointer to a strided output array. - **shape**: `[in] int64_t*` array whose only element is the number of elements over which to iterate. - **strides**: `[in] int64_t*` array containing strides (in bytes) for each strided array. - **fcn**: `[in] void*` a `stdlib_complex128_t (*f)(stdlib_complex128_t, stdlib_complex128_t)` function to apply provided as a `void` pointer. ```c void stdlib_strided_ct_c_as_zz_z( uint8_t *arrays[], const int64_t *shape, const int64_t *strides, void *fcn ); ``` #### stdlib_strided_ct_z_as_zz_z( \*arrays\[], \*shape, \*strides, \*fcn ) Applies a binary callback to strided input array elements and assigns results to elements in a strided output array. ```c #include "stdlib/complex/float64/ctor.h" #include // Create underlying byte arrays: uint8_t x[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; uint8_t y[] = { 0, 0, 0, 0, 0, 0 }; uint8_t out[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; // Define a pointer to an array containing pointers to strided arrays: uint8_t *arrays[] = { x, y, out }; // Define the strides: int64_t strides[] = { 8, 2, 16 }; // Define the number of elements over which to iterate: int64_t shape[] = { 3 }; // Define a callback: static stdlib_complex128_t fcn( stdlib_complex128_t x, stdlib_complex128_t y ) { // ... } // Apply the callback: stdlib_strided_ct_z_as_zz_z( arrays, shape, strides, (void *)fcn ); ``` The function accepts the following arguments: - **arrays**: `[inout] uint8_t**` array whose first two elements are pointers to strided input arrays and whose last element is a pointer to a strided output array. - **shape**: `[in] int64_t*` array whose only element is the number of elements over which to iterate. - **strides**: `[in] int64_t*` array containing strides (in bytes) for each strided array. - **fcn**: `[in] void*` a `stdlib_complex128_t (*f)(stdlib_complex128_t, stdlib_complex128_t)` function to apply provided as a `void` pointer. ```c void stdlib_strided_ct_z_as_zz_z( uint8_t *arrays[], const int64_t *shape, const int64_t *strides, void *fcn ); ``` #### stdlib_strided_cu_z_as_zz_z( \*arrays\[], \*shape, \*strides, \*fcn ) Applies a binary callback to strided input array elements and assigns results to elements in a strided output array. ```c #include "stdlib/complex/float64/ctor.h" #include // Create underlying byte arrays: uint8_t x[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; uint8_t y[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; uint8_t out[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; // Define a pointer to an array containing pointers to strided arrays: uint8_t *arrays[] = { x, y, out }; // Define the strides: int64_t strides[] = { 8, 4, 16 }; // Define the number of elements over which to iterate: int64_t shape[] = { 3 }; // Define a callback: static stdlib_complex128_t fcn( stdlib_complex128_t x, stdlib_complex128_t y ) { // ... } // Apply the callback: stdlib_strided_cu_z_as_zz_z( arrays, shape, strides, (void *)fcn ); ``` The function accepts the following arguments: - **arrays**: `[inout] uint8_t**` array whose first two elements are pointers to strided input arrays and whose last element is a pointer to a strided output array. - **shape**: `[in] int64_t*` array whose only element is the number of elements over which to iterate. - **strides**: `[in] int64_t*` array containing strides (in bytes) for each strided array. - **fcn**: `[in] void*` a `stdlib_complex128_t (*f)(stdlib_complex128_t, stdlib_complex128_t)` function to apply provided as a `void` pointer. ```c void stdlib_strided_cu_z_as_zz_z( uint8_t *arrays[], const int64_t *shape, const int64_t *strides, void *fcn ); ``` #### stdlib_strided_cz_z_as_zz_z( \*arrays\[], \*shape, \*strides, \*fcn ) Applies a binary callback to strided input array elements and assigns results to elements in a strided output array. ```c #include "stdlib/complex/float64/ctor.h" #include // Create underlying byte arrays: uint8_t x[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; uint8_t y[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; uint8_t out[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; // Define a pointer to an array containing pointers to strided arrays: uint8_t *arrays[] = { x, y, out }; // Define the strides: int64_t strides[] = { 8, 16, 16 }; // Define the number of elements over which to iterate: int64_t shape[] = { 3 }; // Define a callback: static stdlib_complex128_t fcn( stdlib_complex128_t x, stdlib_complex128_t y ) { // ... } // Apply the callback: stdlib_strided_cz_z_as_zz_z( arrays, shape, strides, (void *)fcn ); ``` The function accepts the following arguments: - **arrays**: `[inout] uint8_t**` array whose first two elements are pointers to strided input arrays and whose last element is a pointer to a strided output array. - **shape**: `[in] int64_t*` array whose only element is the number of elements over which to iterate. - **strides**: `[in] int64_t*` array containing strides (in bytes) for each strided array. - **fcn**: `[in] void*` a `stdlib_complex128_t (*f)(stdlib_complex128_t, stdlib_complex128_t)` function to apply provided as a `void` pointer. ```c void stdlib_strided_cz_z_as_zz_z( uint8_t *arrays[], const int64_t *shape, const int64_t *strides, void *fcn ); ``` #### stdlib_strided_db_d_as_dd_d( \*arrays\[], \*shape, \*strides, \*fcn ) Applies a binary callback to strided input array elements and assigns results to elements in a strided output array. ```c #include // Create underlying byte arrays: uint8_t x[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; uint8_t y[] = { 0, 0, 0 }; uint8_t out[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; // Define a pointer to an array containing pointers to strided arrays: uint8_t *arrays[] = { x, y, out }; // Define the strides: int64_t strides[] = { 8, 1, 8 }; // Define the number of elements over which to iterate: int64_t shape[] = { 3 }; // Define a callback: static double fcn( double x, double y ) { return x + y; } // Apply the callback: stdlib_strided_db_d_as_dd_d( arrays, shape, strides, (void *)fcn ); ``` The function accepts the following arguments: - **arrays**: `[inout] uint8_t**` array whose first two elements are pointers to strided input arrays and whose last element is a pointer to a strided output array. - **shape**: `[in] int64_t*` array whose only element is the number of elements over which to iterate. - **strides**: `[in] int64_t*` array containing strides (in bytes) for each strided array. - **fcn**: `[in] void*` a `double (*f)(double, double)` function to apply provided as a `void` pointer. ```c void stdlib_strided_db_d_as_dd_d( uint8_t *arrays[], const int64_t *shape, const int64_t *strides, void *fcn ); ``` #### stdlib_strided_db_z_as_zz_z( \*arrays\[], \*shape, \*strides, \*fcn ) Applies a binary callback to strided input array elements and assigns results to elements in a strided output array. ```c #include "stdlib/complex/float64/ctor.h" #include // Create underlying byte arrays: uint8_t x[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; uint8_t y[] = { 0, 0, 0 }; uint8_t out[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; // Define a pointer to an array containing pointers to strided arrays: uint8_t *arrays[] = { x, y, out }; // Define the strides: int64_t strides[] = { 8, 1, 16 }; // Define the number of elements over which to iterate: int64_t shape[] = { 3 }; // Define a callback: static stdlib_complex128_t fcn( stdlib_complex128_t x, stdlib_complex128_t y ) { // ... } // Apply the callback: stdlib_strided_db_z_as_zz_z( arrays, shape, strides, (void *)fcn ); ``` The function accepts the following arguments: - **arrays**: `[inout] uint8_t**` array whose first two elements are pointers to strided input arrays and whose last element is a pointer to a strided output array. - **shape**: `[in] int64_t*` array whose only element is the number of elements over which to iterate. - **strides**: `[in] int64_t*` array containing strides (in bytes) for each strided array. - **fcn**: `[in] void*` a `stdlib_complex128_t (*f)(stdlib_complex128_t, stdlib_complex128_t)` function to apply provided as a `void` pointer. ```c void stdlib_strided_db_z_as_zz_z( uint8_t *arrays[], const int64_t *shape, const int64_t *strides, void *fcn ); ``` #### stdlib_strided_dc_z_as_zz_z( \*arrays\[], \*shape, \*strides, \*fcn ) Applies a binary callback to strided input array elements and assigns results to elements in a strided output array. ```c #include "stdlib/complex/float64/ctor.h" #include // Create underlying byte arrays: uint8_t x[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; uint8_t y[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; uint8_t out[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; // Define a pointer to an array containing pointers to strided arrays: uint8_t *arrays[] = { x, y, out }; // Define the strides: int64_t strides[] = { 8, 8, 16 }; // Define the number of elements over which to iterate: int64_t shape[] = { 3 }; // Define a callback: static stdlib_complex128_t fcn( stdlib_complex128_t x, stdlib_complex128_t y ) { // ... } // Apply the callback: stdlib_strided_dc_z_as_zz_z( arrays, shape, strides, (void *)fcn ); ``` The function accepts the following arguments: - **arrays**: `[inout] uint8_t**` array whose first two elements are pointers to strided input arrays and whose last element is a pointer to a strided output array. - **shape**: `[in] int64_t*` array whose only element is the number of elements over which to iterate. - **strides**: `[in] int64_t*` array containing strides (in bytes) for each strided array. - **fcn**: `[in] void*` a `stdlib_complex128_t (*f)(stdlib_complex128_t, stdlib_complex128_t)` function to apply provided as a `void` pointer. ```c void stdlib_strided_dc_z_as_zz_z( uint8_t *arrays[], const int64_t *shape, const int64_t *strides, void *fcn ); ``` #### stdlib_strided_dd_d( \*arrays\[], \*shape, \*strides, \*fcn ) Applies a binary callback to strided input array elements and assigns results to elements in a strided output array. ```c #include // Create underlying byte arrays: uint8_t x[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; uint8_t y[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; uint8_t out[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; // Define a pointer to an array containing pointers to strided arrays: uint8_t *arrays[] = { x, y, out }; // Define the strides: int64_t strides[] = { 8, 8, 8 }; // Define the number of elements over which to iterate: int64_t shape[] = { 3 }; // Define a callback: static double fcn( double x, double y ) { return x + y; } // Apply the callback: stdlib_strided_dd_d( arrays, shape, strides, (void *)fcn ); ``` The function accepts the following arguments: - **arrays**: `[inout] uint8_t**` array whose first two elements are pointers to strided input arrays and whose last element is a pointer to a strided output array. - **shape**: `[in] int64_t*` array whose only element is the number of elements over which to iterate. - **strides**: `[in] int64_t*` array containing strides (in bytes) for each strided array. - **fcn**: `[in] void*` a `double (*f)(double, double)` function to apply provided as a `void` pointer. ```c void stdlib_strided_dd_d( uint8_t *arrays[], const int64_t *shape, const int64_t *strides, void *fcn ); ``` #### stdlib_strided_dd_z( \*arrays\[], \*shape, \*strides, \*fcn ) Applies a binary callback to strided input array elements and assigns results to elements in a strided output array. ```c #include // Create underlying byte arrays: uint8_t x[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; uint8_t y[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; uint8_t out[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; // Define a pointer to an array containing pointers to strided arrays: uint8_t *arrays[] = { x, y, out }; // Define the strides: int64_t strides[] = { 8, 8, 16 }; // Define the number of elements over which to iterate: int64_t shape[] = { 3 }; // Define a callback: static double fcn( double x, double y ) { return x + y; } // Apply the callback: stdlib_strided_dd_z( arrays, shape, strides, (void *)fcn ); ``` The function accepts the following arguments: - **arrays**: `[inout] uint8_t**` array whose first two elements are pointers to strided input arrays and whose last element is a pointer to a strided output array. - **shape**: `[in] int64_t*` array whose only element is the number of elements over which to iterate. - **strides**: `[in] int64_t*` array containing strides (in bytes) for each strided array. - **fcn**: `[in] void*` a `double (*f)(double, double)` function to apply provided as a `void` pointer. ```c void stdlib_strided_dd_z( uint8_t *arrays[], const int64_t *shape, const int64_t *strides, void *fcn ); ``` #### stdlib_strided_dd_z_as_zz_z( \*arrays\[], \*shape, \*strides, \*fcn ) Applies a binary callback to strided input array elements and assigns results to elements in a strided output array. ```c #include "stdlib/complex/float64/ctor.h" #include // Create underlying byte arrays: uint8_t x[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; uint8_t y[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; uint8_t out[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; // Define a pointer to an array containing pointers to strided arrays: uint8_t *arrays[] = { x, y, out }; // Define the strides: int64_t strides[] = { 8, 8, 16 }; // Define the number of elements over which to iterate: int64_t shape[] = { 3 }; // Define a callback: static stdlib_complex128_t fcn( stdlib_complex128_t x, stdlib_complex128_t y ) { // ... } // Apply the callback: stdlib_strided_dd_z_as_zz_z( arrays, shape, strides, (void *)fcn ); ``` The function accepts the following arguments: - **arrays**: `[inout] uint8_t**` array whose first two elements are pointers to strided input arrays and whose last element is a pointer to a strided output array. - **shape**: `[in] int64_t*` array whose only element is the number of elements over which to iterate. - **strides**: `[in] int64_t*` array containing strides (in bytes) for each strided array. - **fcn**: `[in] void*` a `stdlib_complex128_t (*f)(stdlib_complex128_t, stdlib_complex128_t)` function to apply provided as a `void` pointer. ```c void stdlib_strided_dd_z_as_zz_z( uint8_t *arrays[], const int64_t *shape, const int64_t *strides, void *fcn ); ``` #### stdlib_strided_df_d_as_dd_d( \*arrays\[], \*shape, \*strides, \*fcn ) Applies a binary callback to strided input array elements and assigns results to elements in a strided output array. ```c #include // Create underlying byte arrays: uint8_t x[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; uint8_t y[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; uint8_t out[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; // Define a pointer to an array containing pointers to strided arrays: uint8_t *arrays[] = { x, y, out }; // Define the strides: int64_t strides[] = { 8, 4, 8 }; // Define the number of elements over which to iterate: int64_t shape[] = { 3 }; // Define a callback: static double fcn( double x, double y ) { return x + y; } // Apply the callback: stdlib_strided_df_d_as_dd_d( arrays, shape, strides, (void *)fcn ); ``` The function accepts the following arguments: - **arrays**: `[inout] uint8_t**` array whose first two elements are pointers to strided input arrays and whose last element is a pointer to a strided output array. - **shape**: `[in] int64_t*` array whose only element is the number of elements over which to iterate. - **strides**: `[in] int64_t*` array containing strides (in bytes) for each strided array. - **fcn**: `[in] void*` a `double (*f)(double, double)` function to apply provided as a `void` pointer. ```c void stdlib_strided_df_d_as_dd_d( uint8_t *arrays[], const int64_t *shape, const int64_t *strides, void *fcn ); ``` #### stdlib_strided_df_z_as_zz_z( \*arrays\[], \*shape, \*strides, \*fcn ) Applies a binary callback to strided input array elements and assigns results to elements in a strided output array. ```c #include "stdlib/complex/float64/ctor.h" #include // Create underlying byte arrays: uint8_t x[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; uint8_t y[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; uint8_t out[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; // Define a pointer to an array containing pointers to strided arrays: uint8_t *arrays[] = { x, y, out }; // Define the strides: int64_t strides[] = { 8, 4, 16 }; // Define the number of elements over which to iterate: int64_t shape[] = { 3 }; // Define a callback: static stdlib_complex128_t fcn( stdlib_complex128_t x, stdlib_complex128_t y ) { // ... } // Apply the callback: stdlib_strided_df_z_as_zz_z( arrays, shape, strides, (void *)fcn ); ``` The function accepts the following arguments: - **arrays**: `[inout] uint8_t**` array whose first two elements are pointers to strided input arrays and whose last element is a pointer to a strided output array. - **shape**: `[in] int64_t*` array whose only element is the number of elements over which to iterate. - **strides**: `[in] int64_t*` array containing strides (in bytes) for each strided array. - **fcn**: `[in] void*` a `stdlib_complex128_t (*f)(stdlib_complex128_t, stdlib_complex128_t)` function to apply provided as a `void` pointer. ```c void stdlib_strided_df_z_as_zz_z( uint8_t *arrays[], const int64_t *shape, const int64_t *strides, void *fcn ); ``` #### stdlib_strided_di_d_as_dd_d( \*arrays\[], \*shape, \*strides, \*fcn ) Applies a binary callback to strided input array elements and assigns results to elements in a strided output array. ```c #include // Create underlying byte arrays: uint8_t x[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; uint8_t y[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; uint8_t out[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; // Define a pointer to an array containing pointers to strided arrays: uint8_t *arrays[] = { x, y, out }; // Define the strides: int64_t strides[] = { 8, 4, 8 }; // Define the number of elements over which to iterate: int64_t shape[] = { 3 }; // Define a callback: static double fcn( double x, double y ) { return x + y; } // Apply the callback: stdlib_strided_di_d_as_dd_d( arrays, shape, strides, (void *)fcn ); ``` The function accepts the following arguments: - **arrays**: `[inout] uint8_t**` array whose first two elements are pointers to strided input arrays and whose last element is a pointer to a strided output array. - **shape**: `[in] int64_t*` array whose only element is the number of elements over which to iterate. - **strides**: `[in] int64_t*` array containing strides (in bytes) for each strided array. - **fcn**: `[in] void*` a `double (*f)(double, double)` function to apply provided as a `void` pointer. ```c void stdlib_strided_di_d_as_dd_d( uint8_t *arrays[], const int64_t *shape, const int64_t *strides, void *fcn ); ``` #### stdlib_strided_di_z_as_zz_z( \*arrays\[], \*shape, \*strides, \*fcn ) Applies a binary callback to strided input array elements and assigns results to elements in a strided output array. ```c #include "stdlib/complex/float64/ctor.h" #include // Create underlying byte arrays: uint8_t x[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; uint8_t y[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; uint8_t out[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; // Define a pointer to an array containing pointers to strided arrays: uint8_t *arrays[] = { x, y, out }; // Define the strides: int64_t strides[] = { 8, 4, 16 }; // Define the number of elements over which to iterate: int64_t shape[] = { 3 }; // Define a callback: static stdlib_complex128_t fcn( stdlib_complex128_t x, stdlib_complex128_t y ) { // ... } // Apply the callback: stdlib_strided_di_z_as_zz_z( arrays, shape, strides, (void *)fcn ); ``` The function accepts the following arguments: - **arrays**: `[inout] uint8_t**` array whose first two elements are pointers to strided input arrays and whose last element is a pointer to a strided output array. - **shape**: `[in] int64_t*` array whose only element is the number of elements over which to iterate. - **strides**: `[in] int64_t*` array containing strides (in bytes) for each strided array. - **fcn**: `[in] void*` a `stdlib_complex128_t (*f)(stdlib_complex128_t, stdlib_complex128_t)` function to apply provided as a `void` pointer. ```c void stdlib_strided_di_z_as_zz_z( uint8_t *arrays[], const int64_t *shape, const int64_t *strides, void *fcn ); ``` #### stdlib_strided_dk_d_as_dd_d( \*arrays\[], \*shape, \*strides, \*fcn ) Applies a binary callback to strided input array elements and assigns results to elements in a strided output array. ```c #include // Create underlying byte arrays: uint8_t x[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; uint8_t y[] = { 0, 0, 0, 0, 0, 0 }; uint8_t out[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; // Define a pointer to an array containing pointers to strided arrays: uint8_t *arrays[] = { x, y, out }; // Define the strides: int64_t strides[] = { 8, 2, 8 }; // Define the number of elements over which to iterate: int64_t shape[] = { 3 }; // Define a callback: static double fcn( double x, double y ) { return x + y; } // Apply the callback: stdlib_strided_dk_d_as_dd_d( arrays, shape, strides, (void *)fcn ); ``` The function accepts the following arguments: - **arrays**: `[inout] uint8_t**` array whose first two elements are pointers to strided input arrays and whose last element is a pointer to a strided output array. - **shape**: `[in] int64_t*` array whose only element is the number of elements over which to iterate. - **strides**: `[in] int64_t*` array containing strides (in bytes) for each strided array. - **fcn**: `[in] void*` a `double (*f)(double, double)` function to apply provided as a `void` pointer. ```c void stdlib_strided_dk_d_as_dd_d( uint8_t *arrays[], const int64_t *shape, const int64_t *strides, void *fcn ); ``` #### stdlib_strided_dk_z_as_zz_z( \*arrays\[], \*shape, \*strides, \*fcn ) Applies a binary callback to strided input array elements and assigns results to elements in a strided output array. ```c #include "stdlib/complex/float64/ctor.h" #include // Create underlying byte arrays: uint8_t x[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; uint8_t y[] = { 0, 0, 0, 0, 0, 0 }; uint8_t out[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; // Define a pointer to an array containing pointers to strided arrays: uint8_t *arrays[] = { x, y, out }; // Define the strides: int64_t strides[] = { 8, 2, 16 }; // Define the number of elements over which to iterate: int64_t shape[] = { 3 }; // Define a callback: static stdlib_complex128_t fcn( stdlib_complex128_t x, stdlib_complex128_t y ) { // ... } // Apply the callback: stdlib_strided_dk_z_as_zz_z( arrays, shape, strides, (void *)fcn ); ``` The function accepts the following arguments: - **arrays**: `[inout] uint8_t**` array whose first two elements are pointers to strided input arrays and whose last element is a pointer to a strided output array. - **shape**: `[in] int64_t*` array whose only element is the number of elements over which to iterate. - **strides**: `[in] int64_t*` array containing strides (in bytes) for each strided array. - **fcn**: `[in] void*` a `stdlib_complex128_t (*f)(stdlib_complex128_t, stdlib_complex128_t)` function to apply provided as a `void` pointer. ```c void stdlib_strided_dk_z_as_zz_z( uint8_t *arrays[], const int64_t *shape, const int64_t *strides, void *fcn ); ``` #### stdlib_strided_ds_d_as_dd_d( \*arrays\[], \*shape, \*strides, \*fcn ) Applies a binary callback to strided input array elements and assigns results to elements in a strided output array. ```c #include // Create underlying byte arrays: uint8_t x[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; uint8_t y[] = { 0, 0, 0 }; uint8_t out[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; // Define a pointer to an array containing pointers to strided arrays: uint8_t *arrays[] = { x, y, out }; // Define the strides: int64_t strides[] = { 8, 1, 8 }; // Define the number of elements over which to iterate: int64_t shape[] = { 3 }; // Define a callback: static double fcn( double x, double y ) { return x + y; } // Apply the callback: stdlib_strided_ds_d_as_dd_d( arrays, shape, strides, (void *)fcn ); ``` The function accepts the following arguments: - **arrays**: `[inout] uint8_t**` array whose first two elements are pointers to strided input arrays and whose last element is a pointer to a strided output array. - **shape**: `[in] int64_t*` array whose only element is the number of elements over which to iterate. - **strides**: `[in] int64_t*` array containing strides (in bytes) for each strided array. - **fcn**: `[in] void*` a `double (*f)(double, double)` function to apply provided as a `void` pointer. ```c void stdlib_strided_ds_d_as_dd_d( uint8_t *arrays[], const int64_t *shape, const int64_t *strides, void *fcn ); ``` #### stdlib_strided_ds_z_as_zz_z( \*arrays\[], \*shape, \*strides, \*fcn ) Applies a binary callback to strided input array elements and assigns results to elements in a strided output array. ```c #include "stdlib/complex/float64/ctor.h" #include // Create underlying byte arrays: uint8_t x[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; uint8_t y[] = { 0, 0, 0 }; uint8_t out[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; // Define a pointer to an array containing pointers to strided arrays: uint8_t *arrays[] = { x, y, out }; // Define the strides: int64_t strides[] = { 8, 1, 16 }; // Define the number of elements over which to iterate: int64_t shape[] = { 3 }; // Define a callback: static stdlib_complex128_t fcn( stdlib_complex128_t x, stdlib_complex128_t y ) { // ... } // Apply the callback: stdlib_strided_ds_z_as_zz_z( arrays, shape, strides, (void *)fcn ); ``` The function accepts the following arguments: - **arrays**: `[inout] uint8_t**` array whose first two elements are pointers to strided input arrays and whose last element is a pointer to a strided output array. - **shape**: `[in] int64_t*` array whose only element is the number of elements over which to iterate. - **strides**: `[in] int64_t*` array containing strides (in bytes) for each strided array. - **fcn**: `[in] void*` a `stdlib_complex128_t (*f)(stdlib_complex128_t, stdlib_complex128_t)` function to apply provided as a `void` pointer. ```c void stdlib_strided_ds_z_as_zz_z( uint8_t *arrays[], const int64_t *shape, const int64_t *strides, void *fcn ); ``` #### stdlib_strided_dt_d_as_dd_d( \*arrays\[], \*shape, \*strides, \*fcn ) Applies a binary callback to strided input array elements and assigns results to elements in a strided output array. ```c #include // Create underlying byte arrays: uint8_t x[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; uint8_t y[] = { 0, 0, 0, 0, 0, 0 }; uint8_t out[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; // Define a pointer to an array containing pointers to strided arrays: uint8_t *arrays[] = { x, y, out }; // Define the strides: int64_t strides[] = { 8, 2, 8 }; // Define the number of elements over which to iterate: int64_t shape[] = { 3 }; // Define a callback: static double fcn( double x, double y ) { return x + y; } // Apply the callback: stdlib_strided_dt_d_as_dd_d( arrays, shape, strides, (void *)fcn ); ``` The function accepts the following arguments: - **arrays**: `[inout] uint8_t**` array whose first two elements are pointers to strided input arrays and whose last element is a pointer to a strided output array. - **shape**: `[in] int64_t*` array whose only element is the number of elements over which to iterate. - **strides**: `[in] int64_t*` array containing strides (in bytes) for each strided array. - **fcn**: `[in] void*` a `double (*f)(double, double)` function to apply provided as a `void` pointer. ```c void stdlib_strided_dt_d_as_dd_d( uint8_t *arrays[], const int64_t *shape, const int64_t *strides, void *fcn ); ``` #### stdlib_strided_dt_z_as_zz_z( \*arrays\[], \*shape, \*strides, \*fcn ) Applies a binary callback to strided input array elements and assigns results to elements in a strided output array. ```c #include "stdlib/complex/float64/ctor.h" #include // Create underlying byte arrays: uint8_t x[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; uint8_t y[] = { 0, 0, 0, 0, 0, 0 }; uint8_t out[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; // Define a pointer to an array containing pointers to strided arrays: uint8_t *arrays[] = { x, y, out }; // Define the strides: int64_t strides[] = { 8, 2, 16 }; // Define the number of elements over which to iterate: int64_t shape[] = { 3 }; // Define a callback: static stdlib_complex128_t fcn( stdlib_complex128_t x, stdlib_complex128_t y ) { // ... } // Apply the callback: stdlib_strided_dt_z_as_zz_z( arrays, shape, strides, (void *)fcn ); ``` The function accepts the following arguments: - **arrays**: `[inout] uint8_t**` array whose first two elements are pointers to strided input arrays and whose last element is a pointer to a strided output array. - **shape**: `[in] int64_t*` array whose only element is the number of elements over which to iterate. - **strides**: `[in] int64_t*` array containing strides (in bytes) for each strided array. - **fcn**: `[in] void*` a `stdlib_complex128_t (*f)(stdlib_complex128_t, stdlib_complex128_t)` function to apply provided as a `void` pointer. ```c void stdlib_strided_dt_z_as_zz_z( uint8_t *arrays[], const int64_t *shape, const int64_t *strides, void *fcn ); ``` #### stdlib_strided_du_d_as_dd_d( \*arrays\[], \*shape, \*strides, \*fcn ) Applies a binary callback to strided input array elements and assigns results to elements in a strided output array. ```c #include // Create underlying byte arrays: uint8_t x[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; uint8_t y[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; uint8_t out[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; // Define a pointer to an array containing pointers to strided arrays: uint8_t *arrays[] = { x, y, out }; // Define the strides: int64_t strides[] = { 8, 4, 8 }; // Define the number of elements over which to iterate: int64_t shape[] = { 3 }; // Define a callback: static double fcn( double x, double y ) { return x + y; } // Apply the callback: stdlib_strided_du_d_as_dd_d( arrays, shape, strides, (void *)fcn ); ``` The function accepts the following arguments: - **arrays**: `[inout] uint8_t**` array whose first two elements are pointers to strided input arrays and whose last element is a pointer to a strided output array. - **shape**: `[in] int64_t*` array whose only element is the number of elements over which to iterate. - **strides**: `[in] int64_t*` array containing strides (in bytes) for each strided array. - **fcn**: `[in] void*` a `double (*f)(double, double)` function to apply provided as a `void` pointer. ```c void stdlib_strided_du_d_as_dd_d( uint8_t *arrays[], const int64_t *shape, const int64_t *strides, void *fcn ); ``` #### stdlib_strided_du_z_as_zz_z( \*arrays\[], \*shape, \*strides, \*fcn ) Applies a binary callback to strided input array elements and assigns results to elements in a strided output array. ```c #include "stdlib/complex/float64/ctor.h" #include // Create underlying byte arrays: uint8_t x[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; uint8_t y[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; uint8_t out[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; // Define a pointer to an array containing pointers to strided arrays: uint8_t *arrays[] = { x, y, out }; // Define the strides: int64_t strides[] = { 8, 4, 16 }; // Define the number of elements over which to iterate: int64_t shape[] = { 3 }; // Define a callback: static stdlib_complex128_t fcn( stdlib_complex128_t x, stdlib_complex128_t y ) { // ... } // Apply the callback: stdlib_strided_du_z_as_zz_z( arrays, shape, strides, (void *)fcn ); ``` The function accepts the following arguments: - **arrays**: `[inout] uint8_t**` array whose first two elements are pointers to strided input arrays and whose last element is a pointer to a strided output array. - **shape**: `[in] int64_t*` array whose only element is the number of elements over which to iterate. - **strides**: `[in] int64_t*` array containing strides (in bytes) for each strided array. - **fcn**: `[in] void*` a `stdlib_complex128_t (*f)(stdlib_complex128_t, stdlib_complex128_t)` function to apply provided as a `void` pointer. ```c void stdlib_strided_du_z_as_zz_z( uint8_t *arrays[], const int64_t *shape, const int64_t *strides, void *fcn ); ``` #### stdlib_strided_dz_z_as_zz_z( \*arrays\[], \*shape, \*strides, \*fcn ) Applies a binary callback to strided input array elements and assigns results to elements in a strided output array. ```c #include "stdlib/complex/float64/ctor.h" #include // Create underlying byte arrays: uint8_t x[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; uint8_t y[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; uint8_t out[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; // Define a pointer to an array containing pointers to strided arrays: uint8_t *arrays[] = { x, y, out }; // Define the strides: int64_t strides[] = { 8, 16, 16 }; // Define the number of elements over which to iterate: int64_t shape[] = { 3 }; // Define a callback: static stdlib_complex128_t fcn( stdlib_complex128_t x, stdlib_complex128_t y ) { // ... } // Apply the callback: stdlib_strided_dz_z_as_zz_z( arrays, shape, strides, (void *)fcn ); ``` The function accepts the following arguments: - **arrays**: `[inout] uint8_t**` array whose first two elements are pointers to strided input arrays and whose last element is a pointer to a strided output array. - **shape**: `[in] int64_t*` array whose only element is the number of elements over which to iterate. - **strides**: `[in] int64_t*` array containing strides (in bytes) for each strided array. - **fcn**: `[in] void*` a `stdlib_complex128_t (*f)(stdlib_complex128_t, stdlib_complex128_t)` function to apply provided as a `void` pointer. ```c void stdlib_strided_dz_z_as_zz_z( uint8_t *arrays[], const int64_t *shape, const int64_t *strides, void *fcn ); ``` #### stdlib_strided_fb_c_as_cc_c( \*arrays\[], \*shape, \*strides, \*fcn ) Applies a binary callback to strided input array elements and assigns results to elements in a strided output array. ```c #include "stdlib/complex/float32/ctor.h" #include // Create underlying byte arrays: uint8_t x[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; uint8_t y[] = { 0, 0, 0 }; uint8_t out[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; // Define a pointer to an array containing pointers to strided arrays: uint8_t *arrays[] = { x, y, out }; // Define the strides: int64_t strides[] = { 4, 1, 8 }; // Define the number of elements over which to iterate: int64_t shape[] = { 3 }; // Define a callback: static stdlib_complex64_t fcn( stdlib_complex64_t x, stdlib_complex64_t y ) { // ... } // Apply the callback: stdlib_strided_fb_c_as_cc_c( arrays, shape, strides, (void *)fcn ); ``` The function accepts the following arguments: - **arrays**: `[inout] uint8_t**` array whose first two elements are pointers to strided input arrays and whose last element is a pointer to a strided output array. - **shape**: `[in] int64_t*` array whose only element is the number of elements over which to iterate. - **strides**: `[in] int64_t*` array containing strides (in bytes) for each strided array. - **fcn**: `[in] void*` a `stdlib_complex64_t (*f)(stdlib_complex64_t, stdlib_complex64_t)` function to apply provided as a `void` pointer. ```c void stdlib_strided_fb_c_as_cc_c( uint8_t *arrays[], const int64_t *shape, const int64_t *strides, void *fcn ); ``` #### stdlib_strided_fb_c_as_zz_z( \*arrays\[], \*shape, \*strides, \*fcn ) Applies a binary callback to strided input array elements and assigns results to elements in a strided output array. ```c #include "stdlib/complex/float64/ctor.h" #include // Create underlying byte arrays: uint8_t x[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; uint8_t y[] = { 0, 0, 0 }; uint8_t out[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; // Define a pointer to an array containing pointers to strided arrays: uint8_t *arrays[] = { x, y, out }; // Define the strides: int64_t strides[] = { 4, 1, 8 }; // Define the number of elements over which to iterate: int64_t shape[] = { 3 }; // Define a callback: static stdlib_complex128_t fcn( stdlib_complex128_t x, stdlib_complex128_t y ) { // ... } // Apply the callback: stdlib_strided_fb_c_as_zz_z( arrays, shape, strides, (void *)fcn ); ``` The function accepts the following arguments: - **arrays**: `[inout] uint8_t**` array whose first two elements are pointers to strided input arrays and whose last element is a pointer to a strided output array. - **shape**: `[in] int64_t*` array whose only element is the number of elements over which to iterate. - **strides**: `[in] int64_t*` array containing strides (in bytes) for each strided array. - **fcn**: `[in] void*` a `stdlib_complex128_t (*f)(stdlib_complex128_t, stdlib_complex128_t)` function to apply provided as a `void` pointer. ```c void stdlib_strided_fb_c_as_zz_z( uint8_t *arrays[], const int64_t *shape, const int64_t *strides, void *fcn ); ``` #### stdlib_strided_fb_d_as_dd_d( \*arrays\[], \*shape, \*strides, \*fcn ) Applies a binary callback to strided input array elements and assigns results to elements in a strided output array. ```c #include // Create underlying byte arrays: uint8_t x[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; uint8_t y[] = { 0, 0, 0 }; uint8_t out[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; // Define a pointer to an array containing pointers to strided arrays: uint8_t *arrays[] = { x, y, out }; // Define the strides: int64_t strides[] = { 4, 1, 8 }; // Define the number of elements over which to iterate: int64_t shape[] = { 3 }; // Define a callback: static double fcn( double x, double y ) { return x + y; } // Apply the callback: stdlib_strided_fb_d_as_dd_d( arrays, shape, strides, (void *)fcn ); ``` The function accepts the following arguments: - **arrays**: `[inout] uint8_t**` array whose first two elements are pointers to strided input arrays and whose last element is a pointer to a strided output array. - **shape**: `[in] int64_t*` array whose only element is the number of elements over which to iterate. - **strides**: `[in] int64_t*` array containing strides (in bytes) for each strided array. - **fcn**: `[in] void*` a `double (*f)(double, double)` function to apply provided as a `void` pointer. ```c void stdlib_strided_fb_d_as_dd_d( uint8_t *arrays[], const int64_t *shape, const int64_t *strides, void *fcn ); ``` #### stdlib_strided_fb_f_as_dd_d( \*arrays\[], \*shape, \*strides, \*fcn ) Applies a binary callback to strided input array elements and assigns results to elements in a strided output array. ```c #include // Create underlying byte arrays: uint8_t x[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; uint8_t y[] = { 0, 0, 0 }; uint8_t out[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; // Define a pointer to an array containing pointers to strided arrays: uint8_t *arrays[] = { x, y, out }; // Define the strides: int64_t strides[] = { 4, 1, 4 }; // Define the number of elements over which to iterate: int64_t shape[] = { 3 }; // Define a callback: static double fcn( double x, double y ) { return x + y; } // Apply the callback: stdlib_strided_fb_f_as_dd_d( arrays, shape, strides, (void *)fcn ); ``` The function accepts the following arguments: - **arrays**: `[inout] uint8_t**` array whose first two elements are pointers to strided input arrays and whose last element is a pointer to a strided output array. - **shape**: `[in] int64_t*` array whose only element is the number of elements over which to iterate. - **strides**: `[in] int64_t*` array containing strides (in bytes) for each strided array. - **fcn**: `[in] void*` a `double (*f)(double, double)` function to apply provided as a `void` pointer. ```c void stdlib_strided_fb_f_as_dd_d( uint8_t *arrays[], const int64_t *shape, const int64_t *strides, void *fcn ); ``` #### stdlib_strided_fb_f_as_ff_f( \*arrays\[], \*shape, \*strides, \*fcn ) Applies a binary callback to strided input array elements and assigns results to elements in a strided output array. ```c #include // Create underlying byte arrays: uint8_t x[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; uint8_t y[] = { 0, 0, 0 }; uint8_t out[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; // Define a pointer to an array containing pointers to strided arrays: uint8_t *arrays[] = { x, y, out }; // Define the strides: int64_t strides[] = { 4, 1, 4 }; // Define the number of elements over which to iterate: int64_t shape[] = { 3 }; // Define a callback: static float fcn( float x, float y ) { return x + y; } // Apply the callback: stdlib_strided_fb_f_as_ff_f( arrays, shape, strides, (void *)fcn ); ``` The function accepts the following arguments: - **arrays**: `[inout] uint8_t**` array whose first two elements are pointers to strided input arrays and whose last element is a pointer to a strided output array. - **shape**: `[in] int64_t*` array whose only element is the number of elements over which to iterate. - **strides**: `[in] int64_t*` array containing strides (in bytes) for each strided array. - **fcn**: `[in] void*` a `float (*f)(float, float)` function to apply provided as a `void` pointer. ```c void stdlib_strided_fb_f_as_ff_f( uint8_t *arrays[], const int64_t *shape, const int64_t *strides, void *fcn ); ``` #### stdlib_strided_fb_z_as_zz_z( \*arrays\[], \*shape, \*strides, \*fcn ) Applies a binary callback to strided input array elements and assigns results to elements in a strided output array. ```c #include "stdlib/complex/float64/ctor.h" #include // Create underlying byte arrays: uint8_t x[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; uint8_t y[] = { 0, 0, 0 }; uint8_t out[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; // Define a pointer to an array containing pointers to strided arrays: uint8_t *arrays[] = { x, y, out }; // Define the strides: int64_t strides[] = { 4, 1, 16 }; // Define the number of elements over which to iterate: int64_t shape[] = { 3 }; // Define a callback: static stdlib_complex128_t fcn( stdlib_complex128_t x, stdlib_complex128_t y ) { // ... } // Apply the callback: stdlib_strided_fb_z_as_zz_z( arrays, shape, strides, (void *)fcn ); ``` The function accepts the following arguments: - **arrays**: `[inout] uint8_t**` array whose first two elements are pointers to strided input arrays and whose last element is a pointer to a strided output array. - **shape**: `[in] int64_t*` array whose only element is the number of elements over which to iterate. - **strides**: `[in] int64_t*` array containing strides (in bytes) for each strided array. - **fcn**: `[in] void*` a `stdlib_complex128_t (*f)(stdlib_complex128_t, stdlib_complex128_t)` function to apply provided as a `void` pointer. ```c void stdlib_strided_fb_z_as_zz_z( uint8_t *arrays[], const int64_t *shape, const int64_t *strides, void *fcn ); ``` #### stdlib_strided_fc_c_as_cc_c( \*arrays\[], \*shape, \*strides, \*fcn ) Applies a binary callback to strided input array elements and assigns results to elements in a strided output array. ```c #include "stdlib/complex/float32/ctor.h" #include // Create underlying byte arrays: uint8_t x[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; uint8_t y[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; uint8_t out[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; // Define a pointer to an array containing pointers to strided arrays: uint8_t *arrays[] = { x, y, out }; // Define the strides: int64_t strides[] = { 4, 8, 8 }; // Define the number of elements over which to iterate: int64_t shape[] = { 3 }; // Define a callback: static stdlib_complex64_t fcn( stdlib_complex64_t x, stdlib_complex64_t y ) { // ... } // Apply the callback: stdlib_strided_fc_c_as_cc_c( arrays, shape, strides, (void *)fcn ); ``` The function accepts the following arguments: - **arrays**: `[inout] uint8_t**` array whose first two elements are pointers to strided input arrays and whose last element is a pointer to a strided output array. - **shape**: `[in] int64_t*` array whose only element is the number of elements over which to iterate. - **strides**: `[in] int64_t*` array containing strides (in bytes) for each strided array. - **fcn**: `[in] void*` a `stdlib_complex64_t (*f)(stdlib_complex64_t, stdlib_complex64_t)` function to apply provided as a `void` pointer. ```c void stdlib_strided_fc_c_as_cc_c( uint8_t *arrays[], const int64_t *shape, const int64_t *strides, void *fcn ); ``` #### stdlib_strided_fc_c_as_zz_z( \*arrays\[], \*shape, \*strides, \*fcn ) Applies a binary callback to strided input array elements and assigns results to elements in a strided output array. ```c #include "stdlib/complex/float64/ctor.h" #include // Create underlying byte arrays: uint8_t x[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; uint8_t y[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; uint8_t out[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; // Define a pointer to an array containing pointers to strided arrays: uint8_t *arrays[] = { x, y, out }; // Define the strides: int64_t strides[] = { 4, 8, 8 }; // Define the number of elements over which to iterate: int64_t shape[] = { 3 }; // Define a callback: static stdlib_complex128_t fcn( stdlib_complex128_t x, stdlib_complex128_t y ) { // ... } // Apply the callback: stdlib_strided_fc_c_as_zz_z( arrays, shape, strides, (void *)fcn ); ``` The function accepts the following arguments: - **arrays**: `[inout] uint8_t**` array whose first two elements are pointers to strided input arrays and whose last element is a pointer to a strided output array. - **shape**: `[in] int64_t*` array whose only element is the number of elements over which to iterate. - **strides**: `[in] int64_t*` array containing strides (in bytes) for each strided array. - **fcn**: `[in] void*` a `stdlib_complex128_t (*f)(stdlib_complex128_t, stdlib_complex128_t)` function to apply provided as a `void` pointer. ```c void stdlib_strided_fc_c_as_zz_z( uint8_t *arrays[], const int64_t *shape, const int64_t *strides, void *fcn ); ``` #### stdlib_strided_fc_z_as_zz_z( \*arrays\[], \*shape, \*strides, \*fcn ) Applies a binary callback to strided input array elements and assigns results to elements in a strided output array. ```c #include "stdlib/complex/float64/ctor.h" #include // Create underlying byte arrays: uint8_t x[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; uint8_t y[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; uint8_t out[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; // Define a pointer to an array containing pointers to strided arrays: uint8_t *arrays[] = { x, y, out }; // Define the strides: int64_t strides[] = { 4, 8, 16 }; // Define the number of elements over which to iterate: int64_t shape[] = { 3 }; // Define a callback: static stdlib_complex128_t fcn( stdlib_complex128_t x, stdlib_complex128_t y ) { // ... } // Apply the callback: stdlib_strided_fc_z_as_zz_z( arrays, shape, strides, (void *)fcn ); ``` The function accepts the following arguments: - **arrays**: `[inout] uint8_t**` array whose first two elements are pointers to strided input arrays and whose last element is a pointer to a strided output array. - **shape**: `[in] int64_t*` array whose only element is the number of elements over which to iterate. - **strides**: `[in] int64_t*` array containing strides (in bytes) for each strided array. - **fcn**: `[in] void*` a `stdlib_complex128_t (*f)(stdlib_complex128_t, stdlib_complex128_t)` function to apply provided as a `void` pointer. ```c void stdlib_strided_fc_z_as_zz_z( uint8_t *arrays[], const int64_t *shape, const int64_t *strides, void *fcn ); ``` #### stdlib_strided_fd_d_as_dd_d( \*arrays\[], \*shape, \*strides, \*fcn ) Applies a binary callback to strided input array elements and assigns results to elements in a strided output array. ```c #include // Create underlying byte arrays: uint8_t x[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; uint8_t y[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; uint8_t out[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; // Define a pointer to an array containing pointers to strided arrays: uint8_t *arrays[] = { x, y, out }; // Define the strides: int64_t strides[] = { 4, 8, 8 }; // Define the number of elements over which to iterate: int64_t shape[] = { 3 }; // Define a callback: static double fcn( double x, double y ) { return x + y; } // Apply the callback: stdlib_strided_fd_d_as_dd_d( arrays, shape, strides, (void *)fcn ); ``` The function accepts the following arguments: - **arrays**: `[inout] uint8_t**` array whose first two elements are pointers to strided input arrays and whose last element is a pointer to a strided output array. - **shape**: `[in] int64_t*` array whose only element is the number of elements over which to iterate. - **strides**: `[in] int64_t*` array containing strides (in bytes) for each strided array. - **fcn**: `[in] void*` a `double (*f)(double, double)` function to apply provided as a `void` pointer. ```c void stdlib_strided_fd_d_as_dd_d( uint8_t *arrays[], const int64_t *shape, const int64_t *strides, void *fcn ); ``` #### stdlib_strided_fd_z_as_zz_z( \*arrays\[], \*shape, \*strides, \*fcn ) Applies a binary callback to strided input array elements and assigns results to elements in a strided output array. ```c #include "stdlib/complex/float64/ctor.h" #include // Create underlying byte arrays: uint8_t x[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; uint8_t y[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; uint8_t out[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; // Define a pointer to an array containing pointers to strided arrays: uint8_t *arrays[] = { x, y, out }; // Define the strides: int64_t strides[] = { 4, 8, 16 }; // Define the number of elements over which to iterate: int64_t shape[] = { 3 }; // Define a callback: static stdlib_complex128_t fcn( stdlib_complex128_t x, stdlib_complex128_t y ) { // ... } // Apply the callback: stdlib_strided_fd_z_as_zz_z( arrays, shape, strides, (void *)fcn ); ``` The function accepts the following arguments: - **arrays**: `[inout] uint8_t**` array whose first two elements are pointers to strided input arrays and whose last element is a pointer to a strided output array. - **shape**: `[in] int64_t*` array whose only element is the number of elements over which to iterate. - **strides**: `[in] int64_t*` array containing strides (in bytes) for each strided array. - **fcn**: `[in] void*` a `stdlib_complex128_t (*f)(stdlib_complex128_t, stdlib_complex128_t)` function to apply provided as a `void` pointer. ```c void stdlib_strided_fd_z_as_zz_z( uint8_t *arrays[], const int64_t *shape, const int64_t *strides, void *fcn ); ``` #### stdlib_strided_ff_c( \*arrays\[], \*shape, \*strides, \*fcn ) Applies a binary callback to strided input array elements and assigns results to elements in a strided output array. ```c #include // Create underlying byte arrays: uint8_t x[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; uint8_t y[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; uint8_t out[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; // Define a pointer to an array containing pointers to strided arrays: uint8_t *arrays[] = { x, y, out }; // Define the strides: int64_t strides[] = { 4, 4, 8 }; // Define the number of elements over which to iterate: int64_t shape[] = { 3 }; // Define a callback: static float fcn( float x, float y ) { return x + y; } // Apply the callback: stdlib_strided_ff_c( arrays, shape, strides, (void *)fcn ); ``` The function accepts the following arguments: - **arrays**: `[inout] uint8_t**` array whose first two elements are pointers to strided input arrays and whose last element is a pointer to a strided output array. - **shape**: `[in] int64_t*` array whose only element is the number of elements over which to iterate. - **strides**: `[in] int64_t*` array containing strides (in bytes) for each strided array. - **fcn**: `[in] void*` a `float (*f)(float, float)` function to apply provided as a `void` pointer. ```c void stdlib_strided_ff_c( uint8_t *arrays[], const int64_t *shape, const int64_t *strides, void *fcn ); ``` #### stdlib_strided_ff_c_as_cc_c( \*arrays\[], \*shape, \*strides, \*fcn ) Applies a binary callback to strided input array elements and assigns results to elements in a strided output array. ```c #include "stdlib/complex/float32/ctor.h" #include // Create underlying byte arrays: uint8_t x[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; uint8_t y[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; uint8_t out[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; // Define a pointer to an array containing pointers to strided arrays: uint8_t *arrays[] = { x, y, out }; // Define the strides: int64_t strides[] = { 4, 4, 8 }; // Define the number of elements over which to iterate: int64_t shape[] = { 3 }; // Define a callback: static stdlib_complex64_t fcn( stdlib_complex64_t x, stdlib_complex64_t y ) { // ... } // Apply the callback: stdlib_strided_ff_c_as_cc_c( arrays, shape, strides, (void *)fcn ); ``` The function accepts the following arguments: - **arrays**: `[inout] uint8_t**` array whose first two elements are pointers to strided input arrays and whose last element is a pointer to a strided output array. - **shape**: `[in] int64_t*` array whose only element is the number of elements over which to iterate. - **strides**: `[in] int64_t*` array containing strides (in bytes) for each strided array. - **fcn**: `[in] void*` a `stdlib_complex64_t (*f)(stdlib_complex64_t, stdlib_complex64_t)` function to apply provided as a `void` pointer. ```c void stdlib_strided_ff_c_as_cc_c( uint8_t *arrays[], const int64_t *shape, const int64_t *strides, void *fcn ); ``` #### stdlib_strided_ff_c_as_zz_z( \*arrays\[], \*shape, \*strides, \*fcn ) Applies a binary callback to strided input array elements and assigns results to elements in a strided output array. ```c #include "stdlib/complex/float64/ctor.h" #include // Create underlying byte arrays: uint8_t x[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; uint8_t y[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; uint8_t out[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; // Define a pointer to an array containing pointers to strided arrays: uint8_t *arrays[] = { x, y, out }; // Define the strides: int64_t strides[] = { 4, 4, 8 }; // Define the number of elements over which to iterate: int64_t shape[] = { 3 }; // Define a callback: static stdlib_complex128_t fcn( stdlib_complex128_t x, stdlib_complex128_t y ) { // ... } // Apply the callback: stdlib_strided_ff_c_as_zz_z( arrays, shape, strides, (void *)fcn ); ``` The function accepts the following arguments: - **arrays**: `[inout] uint8_t**` array whose first two elements are pointers to strided input arrays and whose last element is a pointer to a strided output array. - **shape**: `[in] int64_t*` array whose only element is the number of elements over which to iterate. - **strides**: `[in] int64_t*` array containing strides (in bytes) for each strided array. - **fcn**: `[in] void*` a `stdlib_complex128_t (*f)(stdlib_complex128_t, stdlib_complex128_t)` function to apply provided as a `void` pointer. ```c void stdlib_strided_ff_c_as_zz_z( uint8_t *arrays[], const int64_t *shape, const int64_t *strides, void *fcn ); ``` #### stdlib_strided_ff_d( \*arrays\[], \*shape, \*strides, \*fcn ) Applies a binary callback to strided input array elements and assigns results to elements in a strided output array. ```c #include // Create underlying byte arrays: uint8_t x[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; uint8_t y[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; uint8_t out[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; // Define a pointer to an array containing pointers to strided arrays: uint8_t *arrays[] = { x, y, out }; // Define the strides: int64_t strides[] = { 4, 4, 8 }; // Define the number of elements over which to iterate: int64_t shape[] = { 3 }; // Define a callback: static float fcn( float x, float y ) { return x + y; } // Apply the callback: stdlib_strided_ff_d( arrays, shape, strides, (void *)fcn ); ``` The function accepts the following arguments: - **arrays**: `[inout] uint8_t**` array whose first two elements are pointers to strided input arrays and whose last element is a pointer to a strided output array. - **shape**: `[in] int64_t*` array whose only element is the number of elements over which to iterate. - **strides**: `[in] int64_t*` array containing strides (in bytes) for each strided array. - **fcn**: `[in] void*` a `float (*f)(float, float)` function to apply provided as a `void` pointer. ```c void stdlib_strided_ff_d( uint8_t *arrays[], const int64_t *shape, const int64_t *strides, void *fcn ); ``` #### stdlib_strided_ff_d_as_dd_d( \*arrays\[], \*shape, \*strides, \*fcn ) Applies a binary callback to strided input array elements and assigns results to elements in a strided output array. ```c #include // Create underlying byte arrays: uint8_t x[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; uint8_t y[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; uint8_t out[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; // Define a pointer to an array containing pointers to strided arrays: uint8_t *arrays[] = { x, y, out }; // Define the strides: int64_t strides[] = { 4, 4, 8 }; // Define the number of elements over which to iterate: int64_t shape[] = { 3 }; // Define a callback: static double fcn( double x, double y ) { return x + y; } // Apply the callback: stdlib_strided_ff_d_as_dd_d( arrays, shape, strides, (void *)fcn ); ``` The function accepts the following arguments: - **arrays**: `[inout] uint8_t**` array whose first two elements are pointers to strided input arrays and whose last element is a pointer to a strided output array. - **shape**: `[in] int64_t*` array whose only element is the number of elements over which to iterate. - **strides**: `[in] int64_t*` array containing strides (in bytes) for each strided array. - **fcn**: `[in] void*` a `double (*f)(double, double)` function to apply provided as a `void` pointer. ```c void stdlib_strided_ff_d_as_dd_d( uint8_t *arrays[], const int64_t *shape, const int64_t *strides, void *fcn ); ``` #### stdlib_strided_ff_f( \*arrays\[], \*shape, \*strides, \*fcn ) Applies a binary callback to strided input array elements and assigns results to elements in a strided output array. ```c #include // Create underlying byte arrays: uint8_t x[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; uint8_t y[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; uint8_t out[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; // Define a pointer to an array containing pointers to strided arrays: uint8_t *arrays[] = { x, y, out }; // Define the strides: int64_t strides[] = { 4, 4, 4 }; // Define the number of elements over which to iterate: int64_t shape[] = { 3 }; // Define a callback: static float fcn( float x, float y ) { return x + y; } // Apply the callback: stdlib_strided_ff_f( arrays, shape, strides, (void *)fcn ); ``` The function accepts the following arguments: - **arrays**: `[inout] uint8_t**` array whose first two elements are pointers to strided input arrays and whose last element is a pointer to a strided output array. - **shape**: `[in] int64_t*` array whose only element is the number of elements over which to iterate. - **strides**: `[in] int64_t*` array containing strides (in bytes) for each strided array. - **fcn**: `[in] void*` a `float (*f)(float, float)` function to apply provided as a `void` pointer. ```c void stdlib_strided_ff_f( uint8_t *arrays[], const int64_t *shape, const int64_t *strides, void *fcn ); ``` #### stdlib_strided_ff_f_as_dd_d( \*arrays\[], \*shape, \*strides, \*fcn ) Applies a binary callback to strided input array elements and assigns results to elements in a strided output array. ```c #include // Create underlying byte arrays: uint8_t x[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; uint8_t y[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; uint8_t out[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; // Define a pointer to an array containing pointers to strided arrays: uint8_t *arrays[] = { x, y, out }; // Define the strides: int64_t strides[] = { 4, 4, 4 }; // Define the number of elements over which to iterate: int64_t shape[] = { 3 }; // Define a callback: static double fcn( double x, double y ) { return x + y; } // Apply the callback: stdlib_strided_ff_f_as_dd_d( arrays, shape, strides, (void *)fcn ); ``` The function accepts the following arguments: - **arrays**: `[inout] uint8_t**` array whose first two elements are pointers to strided input arrays and whose last element is a pointer to a strided output array. - **shape**: `[in] int64_t*` array whose only element is the number of elements over which to iterate. - **strides**: `[in] int64_t*` array containing strides (in bytes) for each strided array. - **fcn**: `[in] void*` a `double (*f)(double, double)` function to apply provided as a `void` pointer. ```c void stdlib_strided_ff_f_as_dd_d( uint8_t *arrays[], const int64_t *shape, const int64_t *strides, void *fcn ); ``` #### stdlib_strided_ff_z( \*arrays\[], \*shape, \*strides, \*fcn ) Applies a binary callback to strided input array elements and assigns results to elements in a strided output array. ```c #include // Create underlying byte arrays: uint8_t x[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; uint8_t y[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; uint8_t out[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; // Define a pointer to an array containing pointers to strided arrays: uint8_t *arrays[] = { x, y, out }; // Define the strides: int64_t strides[] = { 4, 4, 16 }; // Define the number of elements over which to iterate: int64_t shape[] = { 3 }; // Define a callback: static float fcn( float x, float y ) { return x + y; } // Apply the callback: stdlib_strided_ff_z( arrays, shape, strides, (void *)fcn ); ``` The function accepts the following arguments: - **arrays**: `[inout] uint8_t**` array whose first two elements are pointers to strided input arrays and whose last element is a pointer to a strided output array. - **shape**: `[in] int64_t*` array whose only element is the number of elements over which to iterate. - **strides**: `[in] int64_t*` array containing strides (in bytes) for each strided array. - **fcn**: `[in] void*` a `float (*f)(float, float)` function to apply provided as a `void` pointer. ```c void stdlib_strided_ff_z( uint8_t *arrays[], const int64_t *shape, const int64_t *strides, void *fcn ); ``` #### stdlib_strided_ff_z_as_zz_z( \*arrays\[], \*shape, \*strides, \*fcn ) Applies a binary callback to strided input array elements and assigns results to elements in a strided output array. ```c #include "stdlib/complex/float64/ctor.h" #include // Create underlying byte arrays: uint8_t x[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; uint8_t y[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; uint8_t out[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; // Define a pointer to an array containing pointers to strided arrays: uint8_t *arrays[] = { x, y, out }; // Define the strides: int64_t strides[] = { 4, 4, 16 }; // Define the number of elements over which to iterate: int64_t shape[] = { 3 }; // Define a callback: static stdlib_complex128_t fcn( stdlib_complex128_t x, stdlib_complex128_t y ) { // ... } // Apply the callback: stdlib_strided_ff_z_as_zz_z( arrays, shape, strides, (void *)fcn ); ``` The function accepts the following arguments: - **arrays**: `[inout] uint8_t**` array whose first two elements are pointers to strided input arrays and whose last element is a pointer to a strided output array. - **shape**: `[in] int64_t*` array whose only element is the number of elements over which to iterate. - **strides**: `[in] int64_t*` array containing strides (in bytes) for each strided array. - **fcn**: `[in] void*` a `stdlib_complex128_t (*f)(stdlib_complex128_t, stdlib_complex128_t)` function to apply provided as a `void` pointer. ```c void stdlib_strided_ff_z_as_zz_z( uint8_t *arrays[], const int64_t *shape, const int64_t *strides, void *fcn ); ``` #### stdlib_strided_fi_d_as_dd_d( \*arrays\[], \*shape, \*strides, \*fcn ) Applies a binary callback to strided input array elements and assigns results to elements in a strided output array. ```c #include // Create underlying byte arrays: uint8_t x[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; uint8_t y[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; uint8_t out[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; // Define a pointer to an array containing pointers to strided arrays: uint8_t *arrays[] = { x, y, out }; // Define the strides: int64_t strides[] = { 4, 4, 8 }; // Define the number of elements over which to iterate: int64_t shape[] = { 3 }; // Define a callback: static double fcn( double x, double y ) { return x + y; } // Apply the callback: stdlib_strided_fi_d_as_dd_d( arrays, shape, strides, (void *)fcn ); ``` The function accepts the following arguments: - **arrays**: `[inout] uint8_t**` array whose first two elements are pointers to strided input arrays and whose last element is a pointer to a strided output array. - **shape**: `[in] int64_t*` array whose only element is the number of elements over which to iterate. - **strides**: `[in] int64_t*` array containing strides (in bytes) for each strided array. - **fcn**: `[in] void*` a `double (*f)(double, double)` function to apply provided as a `void` pointer. ```c void stdlib_strided_fi_d_as_dd_d( uint8_t *arrays[], const int64_t *shape, const int64_t *strides, void *fcn ); ``` #### stdlib_strided_fi_z_as_zz_z( \*arrays\[], \*shape, \*strides, \*fcn ) Applies a binary callback to strided input array elements and assigns results to elements in a strided output array. ```c #include "stdlib/complex/float64/ctor.h" #include // Create underlying byte arrays: uint8_t x[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; uint8_t y[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; uint8_t out[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; // Define a pointer to an array containing pointers to strided arrays: uint8_t *arrays[] = { x, y, out }; // Define the strides: int64_t strides[] = { 4, 4, 16 }; // Define the number of elements over which to iterate: int64_t shape[] = { 3 }; // Define a callback: static stdlib_complex128_t fcn( stdlib_complex128_t x, stdlib_complex128_t y ) { // ... } // Apply the callback: stdlib_strided_fi_z_as_zz_z( arrays, shape, strides, (void *)fcn ); ``` The function accepts the following arguments: - **arrays**: `[inout] uint8_t**` array whose first two elements are pointers to strided input arrays and whose last element is a pointer to a strided output array. - **shape**: `[in] int64_t*` array whose only element is the number of elements over which to iterate. - **strides**: `[in] int64_t*` array containing strides (in bytes) for each strided array. - **fcn**: `[in] void*` a `stdlib_complex128_t (*f)(stdlib_complex128_t, stdlib_complex128_t)` function to apply provided as a `void` pointer. ```c void stdlib_strided_fi_z_as_zz_z( uint8_t *arrays[], const int64_t *shape, const int64_t *strides, void *fcn ); ``` #### stdlib_strided_fk_c_as_cc_c( \*arrays\[], \*shape, \*strides, \*fcn ) Applies a binary callback to strided input array elements and assigns results to elements in a strided output array. ```c #include "stdlib/complex/float32/ctor.h" #include // Create underlying byte arrays: uint8_t x[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; uint8_t y[] = { 0, 0, 0, 0, 0, 0 }; uint8_t out[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; // Define a pointer to an array containing pointers to strided arrays: uint8_t *arrays[] = { x, y, out }; // Define the strides: int64_t strides[] = { 4, 2, 8 }; // Define the number of elements over which to iterate: int64_t shape[] = { 3 }; // Define a callback: static stdlib_complex64_t fcn( stdlib_complex64_t x, stdlib_complex64_t y ) { // ... } // Apply the callback: stdlib_strided_fk_c_as_cc_c( arrays, shape, strides, (void *)fcn ); ``` The function accepts the following arguments: - **arrays**: `[inout] uint8_t**` array whose first two elements are pointers to strided input arrays and whose last element is a pointer to a strided output array. - **shape**: `[in] int64_t*` array whose only element is the number of elements over which to iterate. - **strides**: `[in] int64_t*` array containing strides (in bytes) for each strided array. - **fcn**: `[in] void*` a `stdlib_complex64_t (*f)(stdlib_complex64_t, stdlib_complex64_t)` function to apply provided as a `void` pointer. ```c void stdlib_strided_fk_c_as_cc_c( uint8_t *arrays[], const int64_t *shape, const int64_t *strides, void *fcn ); ``` #### stdlib_strided_fk_c_as_zz_z( \*arrays\[], \*shape, \*strides, \*fcn ) Applies a binary callback to strided input array elements and assigns results to elements in a strided output array. ```c #include "stdlib/complex/float64/ctor.h" #include // Create underlying byte arrays: uint8_t x[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; uint8_t y[] = { 0, 0, 0, 0, 0, 0 }; uint8_t out[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; // Define a pointer to an array containing pointers to strided arrays: uint8_t *arrays[] = { x, y, out }; // Define the strides: int64_t strides[] = { 4, 2, 8 }; // Define the number of elements over which to iterate: int64_t shape[] = { 3 }; // Define a callback: static stdlib_complex128_t fcn( stdlib_complex128_t x, stdlib_complex128_t y ) { // ... } // Apply the callback: stdlib_strided_fk_c_as_zz_z( arrays, shape, strides, (void *)fcn ); ``` The function accepts the following arguments: - **arrays**: `[inout] uint8_t**` array whose first two elements are pointers to strided input arrays and whose last element is a pointer to a strided output array. - **shape**: `[in] int64_t*` array whose only element is the number of elements over which to iterate. - **strides**: `[in] int64_t*` array containing strides (in bytes) for each strided array. - **fcn**: `[in] void*` a `stdlib_complex128_t (*f)(stdlib_complex128_t, stdlib_complex128_t)` function to apply provided as a `void` pointer. ```c void stdlib_strided_fk_c_as_zz_z( uint8_t *arrays[], const int64_t *shape, const int64_t *strides, void *fcn ); ``` #### stdlib_strided_fk_d_as_dd_d( \*arrays\[], \*shape, \*strides, \*fcn ) Applies a binary callback to strided input array elements and assigns results to elements in a strided output array. ```c #include // Create underlying byte arrays: uint8_t x[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; uint8_t y[] = { 0, 0, 0, 0, 0, 0 }; uint8_t out[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; // Define a pointer to an array containing pointers to strided arrays: uint8_t *arrays[] = { x, y, out }; // Define the strides: int64_t strides[] = { 4, 2, 8 }; // Define the number of elements over which to iterate: int64_t shape[] = { 3 }; // Define a callback: static double fcn( double x, double y ) { return x + y; } // Apply the callback: stdlib_strided_fk_d_as_dd_d( arrays, shape, strides, (void *)fcn ); ``` The function accepts the following arguments: - **arrays**: `[inout] uint8_t**` array whose first two elements are pointers to strided input arrays and whose last element is a pointer to a strided output array. - **shape**: `[in] int64_t*` array whose only element is the number of elements over which to iterate. - **strides**: `[in] int64_t*` array containing strides (in bytes) for each strided array. - **fcn**: `[in] void*` a `double (*f)(double, double)` function to apply provided as a `void` pointer. ```c void stdlib_strided_fk_d_as_dd_d( uint8_t *arrays[], const int64_t *shape, const int64_t *strides, void *fcn ); ``` #### stdlib_strided_fk_f_as_dd_d( \*arrays\[], \*shape, \*strides, \*fcn ) Applies a binary callback to strided input array elements and assigns results to elements in a strided output array. ```c #include // Create underlying byte arrays: uint8_t x[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; uint8_t y[] = { 0, 0, 0, 0, 0, 0 }; uint8_t out[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; // Define a pointer to an array containing pointers to strided arrays: uint8_t *arrays[] = { x, y, out }; // Define the strides: int64_t strides[] = { 4, 2, 4 }; // Define the number of elements over which to iterate: int64_t shape[] = { 3 }; // Define a callback: static double fcn( double x, double y ) { return x + y; } // Apply the callback: stdlib_strided_fk_f_as_dd_d( arrays, shape, strides, (void *)fcn ); ``` The function accepts the following arguments: - **arrays**: `[inout] uint8_t**` array whose first two elements are pointers to strided input arrays and whose last element is a pointer to a strided output array. - **shape**: `[in] int64_t*` array whose only element is the number of elements over which to iterate. - **strides**: `[in] int64_t*` array containing strides (in bytes) for each strided array. - **fcn**: `[in] void*` a `double (*f)(double, double)` function to apply provided as a `void` pointer. ```c void stdlib_strided_fk_f_as_dd_d( uint8_t *arrays[], const int64_t *shape, const int64_t *strides, void *fcn ); ``` #### stdlib_strided_fk_f_as_ff_f( \*arrays\[], \*shape, \*strides, \*fcn ) Applies a binary callback to strided input array elements and assigns results to elements in a strided output array. ```c #include // Create underlying byte arrays: uint8_t x[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; uint8_t y[] = { 0, 0, 0, 0, 0, 0 }; uint8_t out[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; // Define a pointer to an array containing pointers to strided arrays: uint8_t *arrays[] = { x, y, out }; // Define the strides: int64_t strides[] = { 4, 2, 4 }; // Define the number of elements over which to iterate: int64_t shape[] = { 3 }; // Define a callback: static float fcn( float x, float y ) { return x + y; } // Apply the callback: stdlib_strided_fk_f_as_ff_f( arrays, shape, strides, (void *)fcn ); ``` The function accepts the following arguments: - **arrays**: `[inout] uint8_t**` array whose first two elements are pointers to strided input arrays and whose last element is a pointer to a strided output array. - **shape**: `[in] int64_t*` array whose only element is the number of elements over which to iterate. - **strides**: `[in] int64_t*` array containing strides (in bytes) for each strided array. - **fcn**: `[in] void*` a `float (*f)(float, float)` function to apply provided as a `void` pointer. ```c void stdlib_strided_fk_f_as_ff_f( uint8_t *arrays[], const int64_t *shape, const int64_t *strides, void *fcn ); ``` #### stdlib_strided_fk_z_as_zz_z( \*arrays\[], \*shape, \*strides, \*fcn ) Applies a binary callback to strided input array elements and assigns results to elements in a strided output array. ```c #include "stdlib/complex/float64/ctor.h" #include // Create underlying byte arrays: uint8_t x[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; uint8_t y[] = { 0, 0, 0, 0, 0, 0 }; uint8_t out[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; // Define a pointer to an array containing pointers to strided arrays: uint8_t *arrays[] = { x, y, out }; // Define the strides: int64_t strides[] = { 4, 2, 16 }; // Define the number of elements over which to iterate: int64_t shape[] = { 3 }; // Define a callback: static stdlib_complex128_t fcn( stdlib_complex128_t x, stdlib_complex128_t y ) { // ... } // Apply the callback: stdlib_strided_fk_z_as_zz_z( arrays, shape, strides, (void *)fcn ); ``` The function accepts the following arguments: - **arrays**: `[inout] uint8_t**` array whose first two elements are pointers to strided input arrays and whose last element is a pointer to a strided output array. - **shape**: `[in] int64_t*` array whose only element is the number of elements over which to iterate. - **strides**: `[in] int64_t*` array containing strides (in bytes) for each strided array. - **fcn**: `[in] void*` a `stdlib_complex128_t (*f)(stdlib_complex128_t, stdlib_complex128_t)` function to apply provided as a `void` pointer. ```c void stdlib_strided_fk_z_as_zz_z( uint8_t *arrays[], const int64_t *shape, const int64_t *strides, void *fcn ); ``` #### stdlib_strided_fs_c_as_cc_c( \*arrays\[], \*shape, \*strides, \*fcn ) Applies a binary callback to strided input array elements and assigns results to elements in a strided output array. ```c #include "stdlib/complex/float32/ctor.h" #include // Create underlying byte arrays: uint8_t x[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; uint8_t y[] = { 0, 0, 0 }; uint8_t out[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; // Define a pointer to an array containing pointers to strided arrays: uint8_t *arrays[] = { x, y, out }; // Define the strides: int64_t strides[] = { 4, 1, 8 }; // Define the number of elements over which to iterate: int64_t shape[] = { 3 }; // Define a callback: static stdlib_complex64_t fcn( stdlib_complex64_t x, stdlib_complex64_t y ) { // ... } // Apply the callback: stdlib_strided_fs_c_as_cc_c( arrays, shape, strides, (void *)fcn ); ``` The function accepts the following arguments: - **arrays**: `[inout] uint8_t**` array whose first two elements are pointers to strided input arrays and whose last element is a pointer to a strided output array. - **shape**: `[in] int64_t*` array whose only element is the number of elements over which to iterate. - **strides**: `[in] int64_t*` array containing strides (in bytes) for each strided array. - **fcn**: `[in] void*` a `stdlib_complex64_t (*f)(stdlib_complex64_t, stdlib_complex64_t)` function to apply provided as a `void` pointer. ```c void stdlib_strided_fs_c_as_cc_c( uint8_t *arrays[], const int64_t *shape, const int64_t *strides, void *fcn ); ``` #### stdlib_strided_fs_c_as_zz_z( \*arrays\[], \*shape, \*strides, \*fcn ) Applies a binary callback to strided input array elements and assigns results to elements in a strided output array. ```c #include "stdlib/complex/float64/ctor.h" #include // Create underlying byte arrays: uint8_t x[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; uint8_t y[] = { 0, 0, 0 }; uint8_t out[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; // Define a pointer to an array containing pointers to strided arrays: uint8_t *arrays[] = { x, y, out }; // Define the strides: int64_t strides[] = { 4, 1, 8 }; // Define the number of elements over which to iterate: int64_t shape[] = { 3 }; // Define a callback: static stdlib_complex128_t fcn( stdlib_complex128_t x, stdlib_complex128_t y ) { // ... } // Apply the callback: stdlib_strided_fs_c_as_zz_z( arrays, shape, strides, (void *)fcn ); ``` The function accepts the following arguments: - **arrays**: `[inout] uint8_t**` array whose first two elements are pointers to strided input arrays and whose last element is a pointer to a strided output array. - **shape**: `[in] int64_t*` array whose only element is the number of elements over which to iterate. - **strides**: `[in] int64_t*` array containing strides (in bytes) for each strided array. - **fcn**: `[in] void*` a `stdlib_complex128_t (*f)(stdlib_complex128_t, stdlib_complex128_t)` function to apply provided as a `void` pointer. ```c void stdlib_strided_fs_c_as_zz_z( uint8_t *arrays[], const int64_t *shape, const int64_t *strides, void *fcn ); ``` #### stdlib_strided_fs_d_as_dd_d( \*arrays\[], \*shape, \*strides, \*fcn ) Applies a binary callback to strided input array elements and assigns results to elements in a strided output array. ```c #include // Create underlying byte arrays: uint8_t x[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; uint8_t y[] = { 0, 0, 0 }; uint8_t out[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; // Define a pointer to an array containing pointers to strided arrays: uint8_t *arrays[] = { x, y, out }; // Define the strides: int64_t strides[] = { 4, 1, 8 }; // Define the number of elements over which to iterate: int64_t shape[] = { 3 }; // Define a callback: static double fcn( double x, double y ) { return x + y; } // Apply the callback: stdlib_strided_fs_d_as_dd_d( arrays, shape, strides, (void *)fcn ); ``` The function accepts the following arguments: - **arrays**: `[inout] uint8_t**` array whose first two elements are pointers to strided input arrays and whose last element is a pointer to a strided output array. - **shape**: `[in] int64_t*` array whose only element is the number of elements over which to iterate. - **strides**: `[in] int64_t*` array containing strides (in bytes) for each strided array. - **fcn**: `[in] void*` a `double (*f)(double, double)` function to apply provided as a `void` pointer. ```c void stdlib_strided_fs_d_as_dd_d( uint8_t *arrays[], const int64_t *shape, const int64_t *strides, void *fcn ); ``` #### stdlib_strided_fs_f_as_dd_d( \*arrays\[], \*shape, \*strides, \*fcn ) Applies a binary callback to strided input array elements and assigns results to elements in a strided output array. ```c #include // Create underlying byte arrays: uint8_t x[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; uint8_t y[] = { 0, 0, 0 }; uint8_t out[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; // Define a pointer to an array containing pointers to strided arrays: uint8_t *arrays[] = { x, y, out }; // Define the strides: int64_t strides[] = { 4, 1, 4 }; // Define the number of elements over which to iterate: int64_t shape[] = { 3 }; // Define a callback: static double fcn( double x, double y ) { return x + y; } // Apply the callback: stdlib_strided_fs_f_as_dd_d( arrays, shape, strides, (void *)fcn ); ``` The function accepts the following arguments: - **arrays**: `[inout] uint8_t**` array whose first two elements are pointers to strided input arrays and whose last element is a pointer to a strided output array. - **shape**: `[in] int64_t*` array whose only element is the number of elements over which to iterate. - **strides**: `[in] int64_t*` array containing strides (in bytes) for each strided array. - **fcn**: `[in] void*` a `double (*f)(double, double)` function to apply provided as a `void` pointer. ```c void stdlib_strided_fs_f_as_dd_d( uint8_t *arrays[], const int64_t *shape, const int64_t *strides, void *fcn ); ``` #### stdlib_strided_fs_f_as_ff_f( \*arrays\[], \*shape, \*strides, \*fcn ) Applies a binary callback to strided input array elements and assigns results to elements in a strided output array. ```c #include // Create underlying byte arrays: uint8_t x[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; uint8_t y[] = { 0, 0, 0 }; uint8_t out[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; // Define a pointer to an array containing pointers to strided arrays: uint8_t *arrays[] = { x, y, out }; // Define the strides: int64_t strides[] = { 4, 1, 4 }; // Define the number of elements over which to iterate: int64_t shape[] = { 3 }; // Define a callback: static float fcn( float x, float y ) { return x + y; } // Apply the callback: stdlib_strided_fs_f_as_ff_f( arrays, shape, strides, (void *)fcn ); ``` The function accepts the following arguments: - **arrays**: `[inout] uint8_t**` array whose first two elements are pointers to strided input arrays and whose last element is a pointer to a strided output array. - **shape**: `[in] int64_t*` array whose only element is the number of elements over which to iterate. - **strides**: `[in] int64_t*` array containing strides (in bytes) for each strided array. - **fcn**: `[in] void*` a `float (*f)(float, float)` function to apply provided as a `void` pointer. ```c void stdlib_strided_fs_f_as_ff_f( uint8_t *arrays[], const int64_t *shape, const int64_t *strides, void *fcn ); ``` #### stdlib_strided_fs_z_as_zz_z( \*arrays\[], \*shape, \*strides, \*fcn ) Applies a binary callback to strided input array elements and assigns results to elements in a strided output array. ```c #include "stdlib/complex/float64/ctor.h" #include // Create underlying byte arrays: uint8_t x[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; uint8_t y[] = { 0, 0, 0 }; uint8_t out[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; // Define a pointer to an array containing pointers to strided arrays: uint8_t *arrays[] = { x, y, out }; // Define the strides: int64_t strides[] = { 4, 1, 16 }; // Define the number of elements over which to iterate: int64_t shape[] = { 3 }; // Define a callback: static stdlib_complex128_t fcn( stdlib_complex128_t x, stdlib_complex128_t y ) { // ... } // Apply the callback: stdlib_strided_fs_z_as_zz_z( arrays, shape, strides, (void *)fcn ); ``` The function accepts the following arguments: - **arrays**: `[inout] uint8_t**` array whose first two elements are pointers to strided input arrays and whose last element is a pointer to a strided output array. - **shape**: `[in] int64_t*` array whose only element is the number of elements over which to iterate. - **strides**: `[in] int64_t*` array containing strides (in bytes) for each strided array. - **fcn**: `[in] void*` a `stdlib_complex128_t (*f)(stdlib_complex128_t, stdlib_complex128_t)` function to apply provided as a `void` pointer. ```c void stdlib_strided_fs_z_as_zz_z( uint8_t *arrays[], const int64_t *shape, const int64_t *strides, void *fcn ); ``` #### stdlib_strided_ft_c_as_cc_c( \*arrays\[], \*shape, \*strides, \*fcn ) Applies a binary callback to strided input array elements and assigns results to elements in a strided output array. ```c #include "stdlib/complex/float32/ctor.h" #include // Create underlying byte arrays: uint8_t x[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; uint8_t y[] = { 0, 0, 0, 0, 0, 0 }; uint8_t out[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; // Define a pointer to an array containing pointers to strided arrays: uint8_t *arrays[] = { x, y, out }; // Define the strides: int64_t strides[] = { 4, 2, 8 }; // Define the number of elements over which to iterate: int64_t shape[] = { 3 }; // Define a callback: static stdlib_complex64_t fcn( stdlib_complex64_t x, stdlib_complex64_t y ) { // ... } // Apply the callback: stdlib_strided_ft_c_as_cc_c( arrays, shape, strides, (void *)fcn ); ``` The function accepts the following arguments: - **arrays**: `[inout] uint8_t**` array whose first two elements are pointers to strided input arrays and whose last element is a pointer to a strided output array. - **shape**: `[in] int64_t*` array whose only element is the number of elements over which to iterate. - **strides**: `[in] int64_t*` array containing strides (in bytes) for each strided array. - **fcn**: `[in] void*` a `stdlib_complex64_t (*f)(stdlib_complex64_t, stdlib_complex64_t)` function to apply provided as a `void` pointer. ```c void stdlib_strided_ft_c_as_cc_c( uint8_t *arrays[], const int64_t *shape, const int64_t *strides, void *fcn ); ``` #### stdlib_strided_ft_c_as_zz_z( \*arrays\[], \*shape, \*strides, \*fcn ) Applies a binary callback to strided input array elements and assigns results to elements in a strided output array. ```c #include "stdlib/complex/float64/ctor.h" #include // Create underlying byte arrays: uint8_t x[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; uint8_t y[] = { 0, 0, 0, 0, 0, 0 }; uint8_t out[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; // Define a pointer to an array containing pointers to strided arrays: uint8_t *arrays[] = { x, y, out }; // Define the strides: int64_t strides[] = { 4, 2, 8 }; // Define the number of elements over which to iterate: int64_t shape[] = { 3 }; // Define a callback: static stdlib_complex128_t fcn( stdlib_complex128_t x, stdlib_complex128_t y ) { // ... } // Apply the callback: stdlib_strided_ft_c_as_zz_z( arrays, shape, strides, (void *)fcn ); ``` The function accepts the following arguments: - **arrays**: `[inout] uint8_t**` array whose first two elements are pointers to strided input arrays and whose last element is a pointer to a strided output array. - **shape**: `[in] int64_t*` array whose only element is the number of elements over which to iterate. - **strides**: `[in] int64_t*` array containing strides (in bytes) for each strided array. - **fcn**: `[in] void*` a `stdlib_complex128_t (*f)(stdlib_complex128_t, stdlib_complex128_t)` function to apply provided as a `void` pointer. ```c void stdlib_strided_ft_c_as_zz_z( uint8_t *arrays[], const int64_t *shape, const int64_t *strides, void *fcn ); ``` #### stdlib_strided_ft_d_as_dd_d( \*arrays\[], \*shape, \*strides, \*fcn ) Applies a binary callback to strided input array elements and assigns results to elements in a strided output array. ```c #include // Create underlying byte arrays: uint8_t x[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; uint8_t y[] = { 0, 0, 0, 0, 0, 0 }; uint8_t out[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; // Define a pointer to an array containing pointers to strided arrays: uint8_t *arrays[] = { x, y, out }; // Define the strides: int64_t strides[] = { 4, 2, 8 }; // Define the number of elements over which to iterate: int64_t shape[] = { 3 }; // Define a callback: static double fcn( double x, double y ) { return x + y; } // Apply the callback: stdlib_strided_ft_d_as_dd_d( arrays, shape, strides, (void *)fcn ); ``` The function accepts the following arguments: - **arrays**: `[inout] uint8_t**` array whose first two elements are pointers to strided input arrays and whose last element is a pointer to a strided output array. - **shape**: `[in] int64_t*` array whose only element is the number of elements over which to iterate. - **strides**: `[in] int64_t*` array containing strides (in bytes) for each strided array. - **fcn**: `[in] void*` a `double (*f)(double, double)` function to apply provided as a `void` pointer. ```c void stdlib_strided_ft_d_as_dd_d( uint8_t *arrays[], const int64_t *shape, const int64_t *strides, void *fcn ); ``` #### stdlib_strided_ft_f_as_dd_d( \*arrays\[], \*shape, \*strides, \*fcn ) Applies a binary callback to strided input array elements and assigns results to elements in a strided output array. ```c #include // Create underlying byte arrays: uint8_t x[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; uint8_t y[] = { 0, 0, 0, 0, 0, 0 }; uint8_t out[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; // Define a pointer to an array containing pointers to strided arrays: uint8_t *arrays[] = { x, y, out }; // Define the strides: int64_t strides[] = { 4, 2, 4 }; // Define the number of elements over which to iterate: int64_t shape[] = { 3 }; // Define a callback: static double fcn( double x, double y ) { return x + y; } // Apply the callback: stdlib_strided_ft_f_as_dd_d( arrays, shape, strides, (void *)fcn ); ``` The function accepts the following arguments: - **arrays**: `[inout] uint8_t**` array whose first two elements are pointers to strided input arrays and whose last element is a pointer to a strided output array. - **shape**: `[in] int64_t*` array whose only element is the number of elements over which to iterate. - **strides**: `[in] int64_t*` array containing strides (in bytes) for each strided array. - **fcn**: `[in] void*` a `double (*f)(double, double)` function to apply provided as a `void` pointer. ```c void stdlib_strided_ft_f_as_dd_d( uint8_t *arrays[], const int64_t *shape, const int64_t *strides, void *fcn ); ``` #### stdlib_strided_ft_f_as_ff_f( \*arrays\[], \*shape, \*strides, \*fcn ) Applies a binary callback to strided input array elements and assigns results to elements in a strided output array. ```c #include // Create underlying byte arrays: uint8_t x[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; uint8_t y[] = { 0, 0, 0, 0, 0, 0 }; uint8_t out[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; // Define a pointer to an array containing pointers to strided arrays: uint8_t *arrays[] = { x, y, out }; // Define the strides: int64_t strides[] = { 4, 2, 4 }; // Define the number of elements over which to iterate: int64_t shape[] = { 3 }; // Define a callback: static float fcn( float x, float y ) { return x + y; } // Apply the callback: stdlib_strided_ft_f_as_ff_f( arrays, shape, strides, (void *)fcn ); ``` The function accepts the following arguments: - **arrays**: `[inout] uint8_t**` array whose first two elements are pointers to strided input arrays and whose last element is a pointer to a strided output array. - **shape**: `[in] int64_t*` array whose only element is the number of elements over which to iterate. - **strides**: `[in] int64_t*` array containing strides (in bytes) for each strided array. - **fcn**: `[in] void*` a `float (*f)(float, float)` function to apply provided as a `void` pointer. ```c void stdlib_strided_ft_f_as_ff_f( uint8_t *arrays[], const int64_t *shape, const int64_t *strides, void *fcn ); ``` #### stdlib_strided_ft_z_as_zz_z( \*arrays\[], \*shape, \*strides, \*fcn ) Applies a binary callback to strided input array elements and assigns results to elements in a strided output array. ```c #include "stdlib/complex/float64/ctor.h" #include // Create underlying byte arrays: uint8_t x[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; uint8_t y[] = { 0, 0, 0, 0, 0, 0 }; uint8_t out[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; // Define a pointer to an array containing pointers to strided arrays: uint8_t *arrays[] = { x, y, out }; // Define the strides: int64_t strides[] = { 4, 2, 16 }; // Define the number of elements over which to iterate: int64_t shape[] = { 3 }; // Define a callback: static stdlib_complex128_t fcn( stdlib_complex128_t x, stdlib_complex128_t y ) { // ... } // Apply the callback: stdlib_strided_ft_z_as_zz_z( arrays, shape, strides, (void *)fcn ); ``` The function accepts the following arguments: - **arrays**: `[inout] uint8_t**` array whose first two elements are pointers to strided input arrays and whose last element is a pointer to a strided output array. - **shape**: `[in] int64_t*` array whose only element is the number of elements over which to iterate. - **strides**: `[in] int64_t*` array containing strides (in bytes) for each strided array. - **fcn**: `[in] void*` a `stdlib_complex128_t (*f)(stdlib_complex128_t, stdlib_complex128_t)` function to apply provided as a `void` pointer. ```c void stdlib_strided_ft_z_as_zz_z( uint8_t *arrays[], const int64_t *shape, const int64_t *strides, void *fcn ); ``` #### stdlib_strided_fu_d_as_dd_d( \*arrays\[], \*shape, \*strides, \*fcn ) Applies a binary callback to strided input array elements and assigns results to elements in a strided output array. ```c #include // Create underlying byte arrays: uint8_t x[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; uint8_t y[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; uint8_t out[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; // Define a pointer to an array containing pointers to strided arrays: uint8_t *arrays[] = { x, y, out }; // Define the strides: int64_t strides[] = { 4, 4, 8 }; // Define the number of elements over which to iterate: int64_t shape[] = { 3 }; // Define a callback: static double fcn( double x, double y ) { return x + y; } // Apply the callback: stdlib_strided_fu_d_as_dd_d( arrays, shape, strides, (void *)fcn ); ``` The function accepts the following arguments: - **arrays**: `[inout] uint8_t**` array whose first two elements are pointers to strided input arrays and whose last element is a pointer to a strided output array. - **shape**: `[in] int64_t*` array whose only element is the number of elements over which to iterate. - **strides**: `[in] int64_t*` array containing strides (in bytes) for each strided array. - **fcn**: `[in] void*` a `double (*f)(double, double)` function to apply provided as a `void` pointer. ```c void stdlib_strided_fu_d_as_dd_d( uint8_t *arrays[], const int64_t *shape, const int64_t *strides, void *fcn ); ``` #### stdlib_strided_fu_z_as_zz_z( \*arrays\[], \*shape, \*strides, \*fcn ) Applies a binary callback to strided input array elements and assigns results to elements in a strided output array. ```c #include "stdlib/complex/float64/ctor.h" #include // Create underlying byte arrays: uint8_t x[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; uint8_t y[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; uint8_t out[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; // Define a pointer to an array containing pointers to strided arrays: uint8_t *arrays[] = { x, y, out }; // Define the strides: int64_t strides[] = { 4, 4, 16 }; // Define the number of elements over which to iterate: int64_t shape[] = { 3 }; // Define a callback: static stdlib_complex128_t fcn( stdlib_complex128_t x, stdlib_complex128_t y ) { // ... } // Apply the callback: stdlib_strided_fu_z_as_zz_z( arrays, shape, strides, (void *)fcn ); ``` The function accepts the following arguments: - **arrays**: `[inout] uint8_t**` array whose first two elements are pointers to strided input arrays and whose last element is a pointer to a strided output array. - **shape**: `[in] int64_t*` array whose only element is the number of elements over which to iterate. - **strides**: `[in] int64_t*` array containing strides (in bytes) for each strided array. - **fcn**: `[in] void*` a `stdlib_complex128_t (*f)(stdlib_complex128_t, stdlib_complex128_t)` function to apply provided as a `void` pointer. ```c void stdlib_strided_fu_z_as_zz_z( uint8_t *arrays[], const int64_t *shape, const int64_t *strides, void *fcn ); ``` #### stdlib_strided_fz_z_as_zz_z( \*arrays\[], \*shape, \*strides, \*fcn ) Applies a binary callback to strided input array elements and assigns results to elements in a strided output array. ```c #include "stdlib/complex/float64/ctor.h" #include // Create underlying byte arrays: uint8_t x[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; uint8_t y[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; uint8_t out[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; // Define a pointer to an array containing pointers to strided arrays: uint8_t *arrays[] = { x, y, out }; // Define the strides: int64_t strides[] = { 4, 16, 16 }; // Define the number of elements over which to iterate: int64_t shape[] = { 3 }; // Define a callback: static stdlib_complex128_t fcn( stdlib_complex128_t x, stdlib_complex128_t y ) { // ... } // Apply the callback: stdlib_strided_fz_z_as_zz_z( arrays, shape, strides, (void *)fcn ); ``` The function accepts the following arguments: - **arrays**: `[inout] uint8_t**` array whose first two elements are pointers to strided input arrays and whose last element is a pointer to a strided output array. - **shape**: `[in] int64_t*` array whose only element is the number of elements over which to iterate. - **strides**: `[in] int64_t*` array containing strides (in bytes) for each strided array. - **fcn**: `[in] void*` a `stdlib_complex128_t (*f)(stdlib_complex128_t, stdlib_complex128_t)` function to apply provided as a `void` pointer. ```c void stdlib_strided_fz_z_as_zz_z( uint8_t *arrays[], const int64_t *shape, const int64_t *strides, void *fcn ); ``` #### stdlib_strided_ib_d_as_dd_d( \*arrays\[], \*shape, \*strides, \*fcn ) Applies a binary callback to strided input array elements and assigns results to elements in a strided output array. ```c #include // Create underlying byte arrays: uint8_t x[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; uint8_t y[] = { 0, 0, 0 }; uint8_t out[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; // Define a pointer to an array containing pointers to strided arrays: uint8_t *arrays[] = { x, y, out }; // Define the strides: int64_t strides[] = { 4, 1, 8 }; // Define the number of elements over which to iterate: int64_t shape[] = { 3 }; // Define a callback: static double fcn( double x, double y ) { return x + y; } // Apply the callback: stdlib_strided_ib_d_as_dd_d( arrays, shape, strides, (void *)fcn ); ``` The function accepts the following arguments: - **arrays**: `[inout] uint8_t**` array whose first two elements are pointers to strided input arrays and whose last element is a pointer to a strided output array. - **shape**: `[in] int64_t*` array whose only element is the number of elements over which to iterate. - **strides**: `[in] int64_t*` array containing strides (in bytes) for each strided array. - **fcn**: `[in] void*` a `double (*f)(double, double)` function to apply provided as a `void` pointer. ```c void stdlib_strided_ib_d_as_dd_d( uint8_t *arrays[], const int64_t *shape, const int64_t *strides, void *fcn ); ``` #### stdlib_strided_ib_i_as_ii_i( \*arrays\[], \*shape, \*strides, \*fcn ) Applies a binary callback to strided input array elements and assigns results to elements in a strided output array. ```c #include // Create underlying byte arrays: uint8_t x[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; uint8_t y[] = { 0, 0, 0 }; uint8_t out[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; // Define a pointer to an array containing pointers to strided arrays: uint8_t *arrays[] = { x, y, out }; // Define the strides: int64_t strides[] = { 4, 1, 4 }; // Define the number of elements over which to iterate: int64_t shape[] = { 3 }; // Define a callback: static int32_t fcn( int32_t x, int32_t y ) { return x + y; } // Apply the callback: stdlib_strided_ib_i_as_ii_i( arrays, shape, strides, (void *)fcn ); ``` The function accepts the following arguments: - **arrays**: `[inout] uint8_t**` array whose first two elements are pointers to strided input arrays and whose last element is a pointer to a strided output array. - **shape**: `[in] int64_t*` array whose only element is the number of elements over which to iterate. - **strides**: `[in] int64_t*` array containing strides (in bytes) for each strided array. - **fcn**: `[in] void*` a `int32_t (*f)(int32_t, int32_t)` function to apply provided as a `void` pointer. ```c void stdlib_strided_ib_i_as_ii_i( uint8_t *arrays[], const int64_t *shape, const int64_t *strides, void *fcn ); ``` #### stdlib_strided_ib_z_as_zz_z( \*arrays\[], \*shape, \*strides, \*fcn ) Applies a binary callback to strided input array elements and assigns results to elements in a strided output array. ```c #include "stdlib/complex/float64/ctor.h" #include // Create underlying byte arrays: uint8_t x[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; uint8_t y[] = { 0, 0, 0 }; uint8_t out[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; // Define a pointer to an array containing pointers to strided arrays: uint8_t *arrays[] = { x, y, out }; // Define the strides: int64_t strides[] = { 4, 1, 16 }; // Define the number of elements over which to iterate: int64_t shape[] = { 3 }; // Define a callback: static stdlib_complex128_t fcn( stdlib_complex128_t x, stdlib_complex128_t y ) { // ... } // Apply the callback: stdlib_strided_ib_z_as_zz_z( arrays, shape, strides, (void *)fcn ); ``` The function accepts the following arguments: - **arrays**: `[inout] uint8_t**` array whose first two elements are pointers to strided input arrays and whose last element is a pointer to a strided output array. - **shape**: `[in] int64_t*` array whose only element is the number of elements over which to iterate. - **strides**: `[in] int64_t*` array containing strides (in bytes) for each strided array. - **fcn**: `[in] void*` a `stdlib_complex128_t (*f)(stdlib_complex128_t, stdlib_complex128_t)` function to apply provided as a `void` pointer. ```c void stdlib_strided_ib_z_as_zz_z( uint8_t *arrays[], const int64_t *shape, const int64_t *strides, void *fcn ); ``` #### stdlib_strided_ic_z_as_zz_z( \*arrays\[], \*shape, \*strides, \*fcn ) Applies a binary callback to strided input array elements and assigns results to elements in a strided output array. ```c #include "stdlib/complex/float64/ctor.h" #include // Create underlying byte arrays: uint8_t x[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; uint8_t y[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; uint8_t out[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; // Define a pointer to an array containing pointers to strided arrays: uint8_t *arrays[] = { x, y, out }; // Define the strides: int64_t strides[] = { 4, 8, 16 }; // Define the number of elements over which to iterate: int64_t shape[] = { 3 }; // Define a callback: static stdlib_complex128_t fcn( stdlib_complex128_t x, stdlib_complex128_t y ) { // ... } // Apply the callback: stdlib_strided_ic_z_as_zz_z( arrays, shape, strides, (void *)fcn ); ``` The function accepts the following arguments: - **arrays**: `[inout] uint8_t**` array whose first two elements are pointers to strided input arrays and whose last element is a pointer to a strided output array. - **shape**: `[in] int64_t*` array whose only element is the number of elements over which to iterate. - **strides**: `[in] int64_t*` array containing strides (in bytes) for each strided array. - **fcn**: `[in] void*` a `stdlib_complex128_t (*f)(stdlib_complex128_t, stdlib_complex128_t)` function to apply provided as a `void` pointer. ```c void stdlib_strided_ic_z_as_zz_z( uint8_t *arrays[], const int64_t *shape, const int64_t *strides, void *fcn ); ``` #### stdlib_strided_id_d_as_dd_d( \*arrays\[], \*shape, \*strides, \*fcn ) Applies a binary callback to strided input array elements and assigns results to elements in a strided output array. ```c #include // Create underlying byte arrays: uint8_t x[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; uint8_t y[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; uint8_t out[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; // Define a pointer to an array containing pointers to strided arrays: uint8_t *arrays[] = { x, y, out }; // Define the strides: int64_t strides[] = { 4, 8, 8 }; // Define the number of elements over which to iterate: int64_t shape[] = { 3 }; // Define a callback: static double fcn( double x, double y ) { return x + y; } // Apply the callback: stdlib_strided_id_d_as_dd_d( arrays, shape, strides, (void *)fcn ); ``` The function accepts the following arguments: - **arrays**: `[inout] uint8_t**` array whose first two elements are pointers to strided input arrays and whose last element is a pointer to a strided output array. - **shape**: `[in] int64_t*` array whose only element is the number of elements over which to iterate. - **strides**: `[in] int64_t*` array containing strides (in bytes) for each strided array. - **fcn**: `[in] void*` a `double (*f)(double, double)` function to apply provided as a `void` pointer. ```c void stdlib_strided_id_d_as_dd_d( uint8_t *arrays[], const int64_t *shape, const int64_t *strides, void *fcn ); ``` #### stdlib_strided_id_z_as_zz_z( \*arrays\[], \*shape, \*strides, \*fcn ) Applies a binary callback to strided input array elements and assigns results to elements in a strided output array. ```c #include "stdlib/complex/float64/ctor.h" #include // Create underlying byte arrays: uint8_t x[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; uint8_t y[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; uint8_t out[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; // Define a pointer to an array containing pointers to strided arrays: uint8_t *arrays[] = { x, y, out }; // Define the strides: int64_t strides[] = { 4, 8, 16 }; // Define the number of elements over which to iterate: int64_t shape[] = { 3 }; // Define a callback: static stdlib_complex128_t fcn( stdlib_complex128_t x, stdlib_complex128_t y ) { // ... } // Apply the callback: stdlib_strided_id_z_as_zz_z( arrays, shape, strides, (void *)fcn ); ``` The function accepts the following arguments: - **arrays**: `[inout] uint8_t**` array whose first two elements are pointers to strided input arrays and whose last element is a pointer to a strided output array. - **shape**: `[in] int64_t*` array whose only element is the number of elements over which to iterate. - **strides**: `[in] int64_t*` array containing strides (in bytes) for each strided array. - **fcn**: `[in] void*` a `stdlib_complex128_t (*f)(stdlib_complex128_t, stdlib_complex128_t)` function to apply provided as a `void` pointer. ```c void stdlib_strided_id_z_as_zz_z( uint8_t *arrays[], const int64_t *shape, const int64_t *strides, void *fcn ); ``` #### stdlib_strided_if_d_as_dd_d( \*arrays\[], \*shape, \*strides, \*fcn ) Applies a binary callback to strided input array elements and assigns results to elements in a strided output array. ```c #include // Create underlying byte arrays: uint8_t x[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; uint8_t y[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; uint8_t out[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; // Define a pointer to an array containing pointers to strided arrays: uint8_t *arrays[] = { x, y, out }; // Define the strides: int64_t strides[] = { 4, 4, 8 }; // Define the number of elements over which to iterate: int64_t shape[] = { 3 }; // Define a callback: static double fcn( double x, double y ) { return x + y; } // Apply the callback: stdlib_strided_if_d_as_dd_d( arrays, shape, strides, (void *)fcn ); ``` The function accepts the following arguments: - **arrays**: `[inout] uint8_t**` array whose first two elements are pointers to strided input arrays and whose last element is a pointer to a strided output array. - **shape**: `[in] int64_t*` array whose only element is the number of elements over which to iterate. - **strides**: `[in] int64_t*` array containing strides (in bytes) for each strided array. - **fcn**: `[in] void*` a `double (*f)(double, double)` function to apply provided as a `void` pointer. ```c void stdlib_strided_if_d_as_dd_d( uint8_t *arrays[], const int64_t *shape, const int64_t *strides, void *fcn ); ``` #### stdlib_strided_if_z_as_zz_z( \*arrays\[], \*shape, \*strides, \*fcn ) Applies a binary callback to strided input array elements and assigns results to elements in a strided output array. ```c #include "stdlib/complex/float64/ctor.h" #include // Create underlying byte arrays: uint8_t x[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; uint8_t y[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; uint8_t out[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; // Define a pointer to an array containing pointers to strided arrays: uint8_t *arrays[] = { x, y, out }; // Define the strides: int64_t strides[] = { 4, 4, 16 }; // Define the number of elements over which to iterate: int64_t shape[] = { 3 }; // Define a callback: static stdlib_complex128_t fcn( stdlib_complex128_t x, stdlib_complex128_t y ) { // ... } // Apply the callback: stdlib_strided_if_z_as_zz_z( arrays, shape, strides, (void *)fcn ); ``` The function accepts the following arguments: - **arrays**: `[inout] uint8_t**` array whose first two elements are pointers to strided input arrays and whose last element is a pointer to a strided output array. - **shape**: `[in] int64_t*` array whose only element is the number of elements over which to iterate. - **strides**: `[in] int64_t*` array containing strides (in bytes) for each strided array. - **fcn**: `[in] void*` a `stdlib_complex128_t (*f)(stdlib_complex128_t, stdlib_complex128_t)` function to apply provided as a `void` pointer. ```c void stdlib_strided_if_z_as_zz_z( uint8_t *arrays[], const int64_t *shape, const int64_t *strides, void *fcn ); ``` #### stdlib_strided_ii_d( \*arrays\[], \*shape, \*strides, \*fcn ) Applies a binary callback to strided input array elements and assigns results to elements in a strided output array. ```c #include // Create underlying byte arrays: uint8_t x[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; uint8_t y[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; uint8_t out[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; // Define a pointer to an array containing pointers to strided arrays: uint8_t *arrays[] = { x, y, out }; // Define the strides: int64_t strides[] = { 4, 4, 8 }; // Define the number of elements over which to iterate: int64_t shape[] = { 3 }; // Define a callback: static int32_t fcn( int32_t x, int32_t y ) { return x + y; } // Apply the callback: stdlib_strided_ii_d( arrays, shape, strides, (void *)fcn ); ``` The function accepts the following arguments: - **arrays**: `[inout] uint8_t**` array whose first two elements are pointers to strided input arrays and whose last element is a pointer to a strided output array. - **shape**: `[in] int64_t*` array whose only element is the number of elements over which to iterate. - **strides**: `[in] int64_t*` array containing strides (in bytes) for each strided array. - **fcn**: `[in] void*` a `int32_t (*f)(int32_t, int32_t)` function to apply provided as a `void` pointer. ```c void stdlib_strided_ii_d( uint8_t *arrays[], const int64_t *shape, const int64_t *strides, void *fcn ); ``` #### stdlib_strided_ii_d_as_dd_d( \*arrays\[], \*shape, \*strides, \*fcn ) Applies a binary callback to strided input array elements and assigns results to elements in a strided output array. ```c #include // Create underlying byte arrays: uint8_t x[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; uint8_t y[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; uint8_t out[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; // Define a pointer to an array containing pointers to strided arrays: uint8_t *arrays[] = { x, y, out }; // Define the strides: int64_t strides[] = { 4, 4, 8 }; // Define the number of elements over which to iterate: int64_t shape[] = { 3 }; // Define a callback: static double fcn( double x, double y ) { return x + y; } // Apply the callback: stdlib_strided_ii_d_as_dd_d( arrays, shape, strides, (void *)fcn ); ``` The function accepts the following arguments: - **arrays**: `[inout] uint8_t**` array whose first two elements are pointers to strided input arrays and whose last element is a pointer to a strided output array. - **shape**: `[in] int64_t*` array whose only element is the number of elements over which to iterate. - **strides**: `[in] int64_t*` array containing strides (in bytes) for each strided array. - **fcn**: `[in] void*` a `double (*f)(double, double)` function to apply provided as a `void` pointer. ```c void stdlib_strided_ii_d_as_dd_d( uint8_t *arrays[], const int64_t *shape, const int64_t *strides, void *fcn ); ``` #### stdlib_strided_ii_i( \*arrays\[], \*shape, \*strides, \*fcn ) Applies a binary callback to strided input array elements and assigns results to elements in a strided output array. ```c #include // Create underlying byte arrays: uint8_t x[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; uint8_t y[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; uint8_t out[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; // Define a pointer to an array containing pointers to strided arrays: uint8_t *arrays[] = { x, y, out }; // Define the strides: int64_t strides[] = { 4, 4, 4 }; // Define the number of elements over which to iterate: int64_t shape[] = { 3 }; // Define a callback: static int32_t fcn( int32_t x, int32_t y ) { return x + y; } // Apply the callback: stdlib_strided_ii_i( arrays, shape, strides, (void *)fcn ); ``` The function accepts the following arguments: - **arrays**: `[inout] uint8_t**` array whose first two elements are pointers to strided input arrays and whose last element is a pointer to a strided output array. - **shape**: `[in] int64_t*` array whose only element is the number of elements over which to iterate. - **strides**: `[in] int64_t*` array containing strides (in bytes) for each strided array. - **fcn**: `[in] void*` a `int32_t (*f)(int32_t, int32_t)` function to apply provided as a `void` pointer. ```c void stdlib_strided_ii_i( uint8_t *arrays[], const int64_t *shape, const int64_t *strides, void *fcn ); ``` #### stdlib_strided_ii_z( \*arrays\[], \*shape, \*strides, \*fcn ) Applies a binary callback to strided input array elements and assigns results to elements in a strided output array. ```c #include // Create underlying byte arrays: uint8_t x[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; uint8_t y[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; uint8_t out[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; // Define a pointer to an array containing pointers to strided arrays: uint8_t *arrays[] = { x, y, out }; // Define the strides: int64_t strides[] = { 4, 4, 16 }; // Define the number of elements over which to iterate: int64_t shape[] = { 3 }; // Define a callback: static int32_t fcn( int32_t x, int32_t y ) { return x + y; } // Apply the callback: stdlib_strided_ii_z( arrays, shape, strides, (void *)fcn ); ``` The function accepts the following arguments: - **arrays**: `[inout] uint8_t**` array whose first two elements are pointers to strided input arrays and whose last element is a pointer to a strided output array. - **shape**: `[in] int64_t*` array whose only element is the number of elements over which to iterate. - **strides**: `[in] int64_t*` array containing strides (in bytes) for each strided array. - **fcn**: `[in] void*` a `int32_t (*f)(int32_t, int32_t)` function to apply provided as a `void` pointer. ```c void stdlib_strided_ii_z( uint8_t *arrays[], const int64_t *shape, const int64_t *strides, void *fcn ); ``` #### stdlib_strided_ii_z_as_zz_z( \*arrays\[], \*shape, \*strides, \*fcn ) Applies a binary callback to strided input array elements and assigns results to elements in a strided output array. ```c #include "stdlib/complex/float64/ctor.h" #include // Create underlying byte arrays: uint8_t x[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; uint8_t y[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; uint8_t out[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; // Define a pointer to an array containing pointers to strided arrays: uint8_t *arrays[] = { x, y, out }; // Define the strides: int64_t strides[] = { 4, 4, 16 }; // Define the number of elements over which to iterate: int64_t shape[] = { 3 }; // Define a callback: static stdlib_complex128_t fcn( stdlib_complex128_t x, stdlib_complex128_t y ) { // ... } // Apply the callback: stdlib_strided_ii_z_as_zz_z( arrays, shape, strides, (void *)fcn ); ``` The function accepts the following arguments: - **arrays**: `[inout] uint8_t**` array whose first two elements are pointers to strided input arrays and whose last element is a pointer to a strided output array. - **shape**: `[in] int64_t*` array whose only element is the number of elements over which to iterate. - **strides**: `[in] int64_t*` array containing strides (in bytes) for each strided array. - **fcn**: `[in] void*` a `stdlib_complex128_t (*f)(stdlib_complex128_t, stdlib_complex128_t)` function to apply provided as a `void` pointer. ```c void stdlib_strided_ii_z_as_zz_z( uint8_t *arrays[], const int64_t *shape, const int64_t *strides, void *fcn ); ``` #### stdlib_strided_ik_d_as_dd_d( \*arrays\[], \*shape, \*strides, \*fcn ) Applies a binary callback to strided input array elements and assigns results to elements in a strided output array. ```c #include // Create underlying byte arrays: uint8_t x[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; uint8_t y[] = { 0, 0, 0, 0, 0, 0 }; uint8_t out[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; // Define a pointer to an array containing pointers to strided arrays: uint8_t *arrays[] = { x, y, out }; // Define the strides: int64_t strides[] = { 4, 2, 8 }; // Define the number of elements over which to iterate: int64_t shape[] = { 3 }; // Define a callback: static double fcn( double x, double y ) { return x + y; } // Apply the callback: stdlib_strided_ik_d_as_dd_d( arrays, shape, strides, (void *)fcn ); ``` The function accepts the following arguments: - **arrays**: `[inout] uint8_t**` array whose first two elements are pointers to strided input arrays and whose last element is a pointer to a strided output array. - **shape**: `[in] int64_t*` array whose only element is the number of elements over which to iterate. - **strides**: `[in] int64_t*` array containing strides (in bytes) for each strided array. - **fcn**: `[in] void*` a `double (*f)(double, double)` function to apply provided as a `void` pointer. ```c void stdlib_strided_ik_d_as_dd_d( uint8_t *arrays[], const int64_t *shape, const int64_t *strides, void *fcn ); ``` #### stdlib_strided_ik_i_as_ii_i( \*arrays\[], \*shape, \*strides, \*fcn ) Applies a binary callback to strided input array elements and assigns results to elements in a strided output array. ```c #include // Create underlying byte arrays: uint8_t x[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; uint8_t y[] = { 0, 0, 0, 0, 0, 0 }; uint8_t out[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; // Define a pointer to an array containing pointers to strided arrays: uint8_t *arrays[] = { x, y, out }; // Define the strides: int64_t strides[] = { 4, 2, 4 }; // Define the number of elements over which to iterate: int64_t shape[] = { 3 }; // Define a callback: static int32_t fcn( int32_t x, int32_t y ) { return x + y; } // Apply the callback: stdlib_strided_ik_i_as_ii_i( arrays, shape, strides, (void *)fcn ); ``` The function accepts the following arguments: - **arrays**: `[inout] uint8_t**` array whose first two elements are pointers to strided input arrays and whose last element is a pointer to a strided output array. - **shape**: `[in] int64_t*` array whose only element is the number of elements over which to iterate. - **strides**: `[in] int64_t*` array containing strides (in bytes) for each strided array. - **fcn**: `[in] void*` a `int32_t (*f)(int32_t, int32_t)` function to apply provided as a `void` pointer. ```c void stdlib_strided_ik_i_as_ii_i( uint8_t *arrays[], const int64_t *shape, const int64_t *strides, void *fcn ); ``` #### stdlib_strided_ik_z_as_zz_z( \*arrays\[], \*shape, \*strides, \*fcn ) Applies a binary callback to strided input array elements and assigns results to elements in a strided output array. ```c #include "stdlib/complex/float64/ctor.h" #include // Create underlying byte arrays: uint8_t x[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; uint8_t y[] = { 0, 0, 0, 0, 0, 0 }; uint8_t out[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; // Define a pointer to an array containing pointers to strided arrays: uint8_t *arrays[] = { x, y, out }; // Define the strides: int64_t strides[] = { 4, 2, 16 }; // Define the number of elements over which to iterate: int64_t shape[] = { 3 }; // Define a callback: static stdlib_complex128_t fcn( stdlib_complex128_t x, stdlib_complex128_t y ) { // ... } // Apply the callback: stdlib_strided_ik_z_as_zz_z( arrays, shape, strides, (void *)fcn ); ``` The function accepts the following arguments: - **arrays**: `[inout] uint8_t**` array whose first two elements are pointers to strided input arrays and whose last element is a pointer to a strided output array. - **shape**: `[in] int64_t*` array whose only element is the number of elements over which to iterate. - **strides**: `[in] int64_t*` array containing strides (in bytes) for each strided array. - **fcn**: `[in] void*` a `stdlib_complex128_t (*f)(stdlib_complex128_t, stdlib_complex128_t)` function to apply provided as a `void` pointer. ```c void stdlib_strided_ik_z_as_zz_z( uint8_t *arrays[], const int64_t *shape, const int64_t *strides, void *fcn ); ``` #### stdlib_strided_is_d_as_dd_d( \*arrays\[], \*shape, \*strides, \*fcn ) Applies a binary callback to strided input array elements and assigns results to elements in a strided output array. ```c #include // Create underlying byte arrays: uint8_t x[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; uint8_t y[] = { 0, 0, 0 }; uint8_t out[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; // Define a pointer to an array containing pointers to strided arrays: uint8_t *arrays[] = { x, y, out }; // Define the strides: int64_t strides[] = { 4, 1, 8 }; // Define the number of elements over which to iterate: int64_t shape[] = { 3 }; // Define a callback: static double fcn( double x, double y ) { return x + y; } // Apply the callback: stdlib_strided_is_d_as_dd_d( arrays, shape, strides, (void *)fcn ); ``` The function accepts the following arguments: - **arrays**: `[inout] uint8_t**` array whose first two elements are pointers to strided input arrays and whose last element is a pointer to a strided output array. - **shape**: `[in] int64_t*` array whose only element is the number of elements over which to iterate. - **strides**: `[in] int64_t*` array containing strides (in bytes) for each strided array. - **fcn**: `[in] void*` a `double (*f)(double, double)` function to apply provided as a `void` pointer. ```c void stdlib_strided_is_d_as_dd_d( uint8_t *arrays[], const int64_t *shape, const int64_t *strides, void *fcn ); ``` #### stdlib_strided_is_i_as_ii_i( \*arrays\[], \*shape, \*strides, \*fcn ) Applies a binary callback to strided input array elements and assigns results to elements in a strided output array. ```c #include // Create underlying byte arrays: uint8_t x[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; uint8_t y[] = { 0, 0, 0 }; uint8_t out[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; // Define a pointer to an array containing pointers to strided arrays: uint8_t *arrays[] = { x, y, out }; // Define the strides: int64_t strides[] = { 4, 1, 4 }; // Define the number of elements over which to iterate: int64_t shape[] = { 3 }; // Define a callback: static int32_t fcn( int32_t x, int32_t y ) { return x + y; } // Apply the callback: stdlib_strided_is_i_as_ii_i( arrays, shape, strides, (void *)fcn ); ``` The function accepts the following arguments: - **arrays**: `[inout] uint8_t**` array whose first two elements are pointers to strided input arrays and whose last element is a pointer to a strided output array. - **shape**: `[in] int64_t*` array whose only element is the number of elements over which to iterate. - **strides**: `[in] int64_t*` array containing strides (in bytes) for each strided array. - **fcn**: `[in] void*` a `int32_t (*f)(int32_t, int32_t)` function to apply provided as a `void` pointer. ```c void stdlib_strided_is_i_as_ii_i( uint8_t *arrays[], const int64_t *shape, const int64_t *strides, void *fcn ); ``` #### stdlib_strided_is_z_as_zz_z( \*arrays\[], \*shape, \*strides, \*fcn ) Applies a binary callback to strided input array elements and assigns results to elements in a strided output array. ```c #include "stdlib/complex/float64/ctor.h" #include // Create underlying byte arrays: uint8_t x[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; uint8_t y[] = { 0, 0, 0 }; uint8_t out[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; // Define a pointer to an array containing pointers to strided arrays: uint8_t *arrays[] = { x, y, out }; // Define the strides: int64_t strides[] = { 4, 1, 16 }; // Define the number of elements over which to iterate: int64_t shape[] = { 3 }; // Define a callback: static stdlib_complex128_t fcn( stdlib_complex128_t x, stdlib_complex128_t y ) { // ... } // Apply the callback: stdlib_strided_is_z_as_zz_z( arrays, shape, strides, (void *)fcn ); ``` The function accepts the following arguments: - **arrays**: `[inout] uint8_t**` array whose first two elements are pointers to strided input arrays and whose last element is a pointer to a strided output array. - **shape**: `[in] int64_t*` array whose only element is the number of elements over which to iterate. - **strides**: `[in] int64_t*` array containing strides (in bytes) for each strided array. - **fcn**: `[in] void*` a `stdlib_complex128_t (*f)(stdlib_complex128_t, stdlib_complex128_t)` function to apply provided as a `void` pointer. ```c void stdlib_strided_is_z_as_zz_z( uint8_t *arrays[], const int64_t *shape, const int64_t *strides, void *fcn ); ``` #### stdlib_strided_it_d_as_dd_d( \*arrays\[], \*shape, \*strides, \*fcn ) Applies a binary callback to strided input array elements and assigns results to elements in a strided output array. ```c #include // Create underlying byte arrays: uint8_t x[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; uint8_t y[] = { 0, 0, 0, 0, 0, 0 }; uint8_t out[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; // Define a pointer to an array containing pointers to strided arrays: uint8_t *arrays[] = { x, y, out }; // Define the strides: int64_t strides[] = { 4, 2, 8 }; // Define the number of elements over which to iterate: int64_t shape[] = { 3 }; // Define a callback: static double fcn( double x, double y ) { return x + y; } // Apply the callback: stdlib_strided_it_d_as_dd_d( arrays, shape, strides, (void *)fcn ); ``` The function accepts the following arguments: - **arrays**: `[inout] uint8_t**` array whose first two elements are pointers to strided input arrays and whose last element is a pointer to a strided output array. - **shape**: `[in] int64_t*` array whose only element is the number of elements over which to iterate. - **strides**: `[in] int64_t*` array containing strides (in bytes) for each strided array. - **fcn**: `[in] void*` a `double (*f)(double, double)` function to apply provided as a `void` pointer. ```c void stdlib_strided_it_d_as_dd_d( uint8_t *arrays[], const int64_t *shape, const int64_t *strides, void *fcn ); ``` #### stdlib_strided_it_i_as_ii_i( \*arrays\[], \*shape, \*strides, \*fcn ) Applies a binary callback to strided input array elements and assigns results to elements in a strided output array. ```c #include // Create underlying byte arrays: uint8_t x[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; uint8_t y[] = { 0, 0, 0, 0, 0, 0 }; uint8_t out[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; // Define a pointer to an array containing pointers to strided arrays: uint8_t *arrays[] = { x, y, out }; // Define the strides: int64_t strides[] = { 4, 2, 4 }; // Define the number of elements over which to iterate: int64_t shape[] = { 3 }; // Define a callback: static int32_t fcn( int32_t x, int32_t y ) { return x + y; } // Apply the callback: stdlib_strided_it_i_as_ii_i( arrays, shape, strides, (void *)fcn ); ``` The function accepts the following arguments: - **arrays**: `[inout] uint8_t**` array whose first two elements are pointers to strided input arrays and whose last element is a pointer to a strided output array. - **shape**: `[in] int64_t*` array whose only element is the number of elements over which to iterate. - **strides**: `[in] int64_t*` array containing strides (in bytes) for each strided array. - **fcn**: `[in] void*` a `int32_t (*f)(int32_t, int32_t)` function to apply provided as a `void` pointer. ```c void stdlib_strided_it_i_as_ii_i( uint8_t *arrays[], const int64_t *shape, const int64_t *strides, void *fcn ); ``` #### stdlib_strided_it_z_as_zz_z( \*arrays\[], \*shape, \*strides, \*fcn ) Applies a binary callback to strided input array elements and assigns results to elements in a strided output array. ```c #include "stdlib/complex/float64/ctor.h" #include // Create underlying byte arrays: uint8_t x[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; uint8_t y[] = { 0, 0, 0, 0, 0, 0 }; uint8_t out[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; // Define a pointer to an array containing pointers to strided arrays: uint8_t *arrays[] = { x, y, out }; // Define the strides: int64_t strides[] = { 4, 2, 16 }; // Define the number of elements over which to iterate: int64_t shape[] = { 3 }; // Define a callback: static stdlib_complex128_t fcn( stdlib_complex128_t x, stdlib_complex128_t y ) { // ... } // Apply the callback: stdlib_strided_it_z_as_zz_z( arrays, shape, strides, (void *)fcn ); ``` The function accepts the following arguments: - **arrays**: `[inout] uint8_t**` array whose first two elements are pointers to strided input arrays and whose last element is a pointer to a strided output array. - **shape**: `[in] int64_t*` array whose only element is the number of elements over which to iterate. - **strides**: `[in] int64_t*` array containing strides (in bytes) for each strided array. - **fcn**: `[in] void*` a `stdlib_complex128_t (*f)(stdlib_complex128_t, stdlib_complex128_t)` function to apply provided as a `void` pointer. ```c void stdlib_strided_it_z_as_zz_z( uint8_t *arrays[], const int64_t *shape, const int64_t *strides, void *fcn ); ``` #### stdlib_strided_iu_d_as_dd_d( \*arrays\[], \*shape, \*strides, \*fcn ) Applies a binary callback to strided input array elements and assigns results to elements in a strided output array. ```c #include // Create underlying byte arrays: uint8_t x[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; uint8_t y[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; uint8_t out[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; // Define a pointer to an array containing pointers to strided arrays: uint8_t *arrays[] = { x, y, out }; // Define the strides: int64_t strides[] = { 4, 4, 8 }; // Define the number of elements over which to iterate: int64_t shape[] = { 3 }; // Define a callback: static double fcn( double x, double y ) { return x + y; } // Apply the callback: stdlib_strided_iu_d_as_dd_d( arrays, shape, strides, (void *)fcn ); ``` The function accepts the following arguments: - **arrays**: `[inout] uint8_t**` array whose first two elements are pointers to strided input arrays and whose last element is a pointer to a strided output array. - **shape**: `[in] int64_t*` array whose only element is the number of elements over which to iterate. - **strides**: `[in] int64_t*` array containing strides (in bytes) for each strided array. - **fcn**: `[in] void*` a `double (*f)(double, double)` function to apply provided as a `void` pointer. ```c void stdlib_strided_iu_d_as_dd_d( uint8_t *arrays[], const int64_t *shape, const int64_t *strides, void *fcn ); ``` #### stdlib_strided_iu_z_as_zz_z( \*arrays\[], \*shape, \*strides, \*fcn ) Applies a binary callback to strided input array elements and assigns results to elements in a strided output array. ```c #include "stdlib/complex/float64/ctor.h" #include // Create underlying byte arrays: uint8_t x[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; uint8_t y[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; uint8_t out[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; // Define a pointer to an array containing pointers to strided arrays: uint8_t *arrays[] = { x, y, out }; // Define the strides: int64_t strides[] = { 4, 4, 16 }; // Define the number of elements over which to iterate: int64_t shape[] = { 3 }; // Define a callback: static stdlib_complex128_t fcn( stdlib_complex128_t x, stdlib_complex128_t y ) { // ... } // Apply the callback: stdlib_strided_iu_z_as_zz_z( arrays, shape, strides, (void *)fcn ); ``` The function accepts the following arguments: - **arrays**: `[inout] uint8_t**` array whose first two elements are pointers to strided input arrays and whose last element is a pointer to a strided output array. - **shape**: `[in] int64_t*` array whose only element is the number of elements over which to iterate. - **strides**: `[in] int64_t*` array containing strides (in bytes) for each strided array. - **fcn**: `[in] void*` a `stdlib_complex128_t (*f)(stdlib_complex128_t, stdlib_complex128_t)` function to apply provided as a `void` pointer. ```c void stdlib_strided_iu_z_as_zz_z( uint8_t *arrays[], const int64_t *shape, const int64_t *strides, void *fcn ); ``` #### stdlib_strided_iz_z_as_zz_z( \*arrays\[], \*shape, \*strides, \*fcn ) Applies a binary callback to strided input array elements and assigns results to elements in a strided output array. ```c #include "stdlib/complex/float64/ctor.h" #include // Create underlying byte arrays: uint8_t x[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; uint8_t y[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; uint8_t out[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; // Define a pointer to an array containing pointers to strided arrays: uint8_t *arrays[] = { x, y, out }; // Define the strides: int64_t strides[] = { 4, 16, 16 }; // Define the number of elements over which to iterate: int64_t shape[] = { 3 }; // Define a callback: static stdlib_complex128_t fcn( stdlib_complex128_t x, stdlib_complex128_t y ) { // ... } // Apply the callback: stdlib_strided_iz_z_as_zz_z( arrays, shape, strides, (void *)fcn ); ``` The function accepts the following arguments: - **arrays**: `[inout] uint8_t**` array whose first two elements are pointers to strided input arrays and whose last element is a pointer to a strided output array. - **shape**: `[in] int64_t*` array whose only element is the number of elements over which to iterate. - **strides**: `[in] int64_t*` array containing strides (in bytes) for each strided array. - **fcn**: `[in] void*` a `stdlib_complex128_t (*f)(stdlib_complex128_t, stdlib_complex128_t)` function to apply provided as a `void` pointer. ```c void stdlib_strided_iz_z_as_zz_z( uint8_t *arrays[], const int64_t *shape, const int64_t *strides, void *fcn ); ``` #### stdlib_strided_kb_c_as_cc_c( \*arrays\[], \*shape, \*strides, \*fcn ) Applies a binary callback to strided input array elements and assigns results to elements in a strided output array. ```c #include "stdlib/complex/float32/ctor.h" #include // Create underlying byte arrays: uint8_t x[] = { 0, 0, 0, 0, 0, 0 }; uint8_t y[] = { 0, 0, 0 }; uint8_t out[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; // Define a pointer to an array containing pointers to strided arrays: uint8_t *arrays[] = { x, y, out }; // Define the strides: int64_t strides[] = { 2, 1, 8 }; // Define the number of elements over which to iterate: int64_t shape[] = { 3 }; // Define a callback: static stdlib_complex64_t fcn( stdlib_complex64_t x, stdlib_complex64_t y ) { // ... } // Apply the callback: stdlib_strided_kb_c_as_cc_c( arrays, shape, strides, (void *)fcn ); ``` The function accepts the following arguments: - **arrays**: `[inout] uint8_t**` array whose first two elements are pointers to strided input arrays and whose last element is a pointer to a strided output array. - **shape**: `[in] int64_t*` array whose only element is the number of elements over which to iterate. - **strides**: `[in] int64_t*` array containing strides (in bytes) for each strided array. - **fcn**: `[in] void*` a `stdlib_complex64_t (*f)(stdlib_complex64_t, stdlib_complex64_t)` function to apply provided as a `void` pointer. ```c void stdlib_strided_kb_c_as_cc_c( uint8_t *arrays[], const int64_t *shape, const int64_t *strides, void *fcn ); ``` #### stdlib_strided_kb_c_as_zz_z( \*arrays\[], \*shape, \*strides, \*fcn ) Applies a binary callback to strided input array elements and assigns results to elements in a strided output array. ```c #include "stdlib/complex/float64/ctor.h" #include // Create underlying byte arrays: uint8_t x[] = { 0, 0, 0, 0, 0, 0 }; uint8_t y[] = { 0, 0, 0 }; uint8_t out[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; // Define a pointer to an array containing pointers to strided arrays: uint8_t *arrays[] = { x, y, out }; // Define the strides: int64_t strides[] = { 2, 1, 8 }; // Define the number of elements over which to iterate: int64_t shape[] = { 3 }; // Define a callback: static stdlib_complex128_t fcn( stdlib_complex128_t x, stdlib_complex128_t y ) { // ... } // Apply the callback: stdlib_strided_kb_c_as_zz_z( arrays, shape, strides, (void *)fcn ); ``` The function accepts the following arguments: - **arrays**: `[inout] uint8_t**` array whose first two elements are pointers to strided input arrays and whose last element is a pointer to a strided output array. - **shape**: `[in] int64_t*` array whose only element is the number of elements over which to iterate. - **strides**: `[in] int64_t*` array containing strides (in bytes) for each strided array. - **fcn**: `[in] void*` a `stdlib_complex128_t (*f)(stdlib_complex128_t, stdlib_complex128_t)` function to apply provided as a `void` pointer. ```c void stdlib_strided_kb_c_as_zz_z( uint8_t *arrays[], const int64_t *shape, const int64_t *strides, void *fcn ); ``` #### stdlib_strided_kb_d_as_dd_d( \*arrays\[], \*shape, \*strides, \*fcn ) Applies a binary callback to strided input array elements and assigns results to elements in a strided output array. ```c #include // Create underlying byte arrays: uint8_t x[] = { 0, 0, 0, 0, 0, 0 }; uint8_t y[] = { 0, 0, 0 }; uint8_t out[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; // Define a pointer to an array containing pointers to strided arrays: uint8_t *arrays[] = { x, y, out }; // Define the strides: int64_t strides[] = { 2, 1, 8 }; // Define the number of elements over which to iterate: int64_t shape[] = { 3 }; // Define a callback: static double fcn( double x, double y ) { return x + y; } // Apply the callback: stdlib_strided_kb_d_as_dd_d( arrays, shape, strides, (void *)fcn ); ``` The function accepts the following arguments: - **arrays**: `[inout] uint8_t**` array whose first two elements are pointers to strided input arrays and whose last element is a pointer to a strided output array. - **shape**: `[in] int64_t*` array whose only element is the number of elements over which to iterate. - **strides**: `[in] int64_t*` array containing strides (in bytes) for each strided array. - **fcn**: `[in] void*` a `double (*f)(double, double)` function to apply provided as a `void` pointer. ```c void stdlib_strided_kb_d_as_dd_d( uint8_t *arrays[], const int64_t *shape, const int64_t *strides, void *fcn ); ``` #### stdlib_strided_kb_f_as_dd_d( \*arrays\[], \*shape, \*strides, \*fcn ) Applies a binary callback to strided input array elements and assigns results to elements in a strided output array. ```c #include // Create underlying byte arrays: uint8_t x[] = { 0, 0, 0, 0, 0, 0 }; uint8_t y[] = { 0, 0, 0 }; uint8_t out[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; // Define a pointer to an array containing pointers to strided arrays: uint8_t *arrays[] = { x, y, out }; // Define the strides: int64_t strides[] = { 2, 1, 4 }; // Define the number of elements over which to iterate: int64_t shape[] = { 3 }; // Define a callback: static double fcn( double x, double y ) { return x + y; } // Apply the callback: stdlib_strided_kb_f_as_dd_d( arrays, shape, strides, (void *)fcn ); ``` The function accepts the following arguments: - **arrays**: `[inout] uint8_t**` array whose first two elements are pointers to strided input arrays and whose last element is a pointer to a strided output array. - **shape**: `[in] int64_t*` array whose only element is the number of elements over which to iterate. - **strides**: `[in] int64_t*` array containing strides (in bytes) for each strided array. - **fcn**: `[in] void*` a `double (*f)(double, double)` function to apply provided as a `void` pointer. ```c void stdlib_strided_kb_f_as_dd_d( uint8_t *arrays[], const int64_t *shape, const int64_t *strides, void *fcn ); ``` #### stdlib_strided_kb_f_as_ff_f( \*arrays\[], \*shape, \*strides, \*fcn ) Applies a binary callback to strided input array elements and assigns results to elements in a strided output array. ```c #include // Create underlying byte arrays: uint8_t x[] = { 0, 0, 0, 0, 0, 0 }; uint8_t y[] = { 0, 0, 0 }; uint8_t out[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; // Define a pointer to an array containing pointers to strided arrays: uint8_t *arrays[] = { x, y, out }; // Define the strides: int64_t strides[] = { 2, 1, 4 }; // Define the number of elements over which to iterate: int64_t shape[] = { 3 }; // Define a callback: static float fcn( float x, float y ) { return x + y; } // Apply the callback: stdlib_strided_kb_f_as_ff_f( arrays, shape, strides, (void *)fcn ); ``` The function accepts the following arguments: - **arrays**: `[inout] uint8_t**` array whose first two elements are pointers to strided input arrays and whose last element is a pointer to a strided output array. - **shape**: `[in] int64_t*` array whose only element is the number of elements over which to iterate. - **strides**: `[in] int64_t*` array containing strides (in bytes) for each strided array. - **fcn**: `[in] void*` a `float (*f)(float, float)` function to apply provided as a `void` pointer. ```c void stdlib_strided_kb_f_as_ff_f( uint8_t *arrays[], const int64_t *shape, const int64_t *strides, void *fcn ); ``` #### stdlib_strided_kb_i_as_ii_i( \*arrays\[], \*shape, \*strides, \*fcn ) Applies a binary callback to strided input array elements and assigns results to elements in a strided output array. ```c #include // Create underlying byte arrays: uint8_t x[] = { 0, 0, 0, 0, 0, 0 }; uint8_t y[] = { 0, 0, 0 }; uint8_t out[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; // Define a pointer to an array containing pointers to strided arrays: uint8_t *arrays[] = { x, y, out }; // Define the strides: int64_t strides[] = { 2, 1, 4 }; // Define the number of elements over which to iterate: int64_t shape[] = { 3 }; // Define a callback: static int32_t fcn( int32_t x, int32_t y ) { return x + y; } // Apply the callback: stdlib_strided_kb_i_as_ii_i( arrays, shape, strides, (void *)fcn ); ``` The function accepts the following arguments: - **arrays**: `[inout] uint8_t**` array whose first two elements are pointers to strided input arrays and whose last element is a pointer to a strided output array. - **shape**: `[in] int64_t*` array whose only element is the number of elements over which to iterate. - **strides**: `[in] int64_t*` array containing strides (in bytes) for each strided array. - **fcn**: `[in] void*` a `int32_t (*f)(int32_t, int32_t)` function to apply provided as a `void` pointer. ```c void stdlib_strided_kb_i_as_ii_i( uint8_t *arrays[], const int64_t *shape, const int64_t *strides, void *fcn ); ``` #### stdlib_strided_kb_k_as_kk_k( \*arrays\[], \*shape, \*strides, \*fcn ) Applies a binary callback to strided input array elements and assigns results to elements in a strided output array. ```c #include // Create underlying byte arrays: uint8_t x[] = { 0, 0, 0, 0, 0, 0 }; uint8_t y[] = { 0, 0, 0 }; uint8_t out[] = { 0, 0, 0, 0, 0, 0 }; // Define a pointer to an array containing pointers to strided arrays: uint8_t *arrays[] = { x, y, out }; // Define the strides: int64_t strides[] = { 2, 1, 2 }; // Define the number of elements over which to iterate: int64_t shape[] = { 3 }; // Define a callback: static int16_t fcn( int16_t x, int16_t y ) { return x + y; } // Apply the callback: stdlib_strided_kb_k_as_kk_k( arrays, shape, strides, (void *)fcn ); ``` The function accepts the following arguments: - **arrays**: `[inout] uint8_t**` array whose first two elements are pointers to strided input arrays and whose last element is a pointer to a strided output array. - **shape**: `[in] int64_t*` array whose only element is the number of elements over which to iterate. - **strides**: `[in] int64_t*` array containing strides (in bytes) for each strided array. - **fcn**: `[in] void*` a `int16_t (*f)(int16_t, int16_t)` function to apply provided as a `void` pointer. ```c void stdlib_strided_kb_k_as_kk_k( uint8_t *arrays[], const int64_t *shape, const int64_t *strides, void *fcn ); ``` #### stdlib_strided_kb_z_as_zz_z( \*arrays\[], \*shape, \*strides, \*fcn ) Applies a binary callback to strided input array elements and assigns results to elements in a strided output array. ```c #include "stdlib/complex/float64/ctor.h" #include // Create underlying byte arrays: uint8_t x[] = { 0, 0, 0, 0, 0, 0 }; uint8_t y[] = { 0, 0, 0 }; uint8_t out[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; // Define a pointer to an array containing pointers to strided arrays: uint8_t *arrays[] = { x, y, out }; // Define the strides: int64_t strides[] = { 2, 1, 16 }; // Define the number of elements over which to iterate: int64_t shape[] = { 3 }; // Define a callback: static stdlib_complex128_t fcn( stdlib_complex128_t x, stdlib_complex128_t y ) { // ... } // Apply the callback: stdlib_strided_kb_z_as_zz_z( arrays, shape, strides, (void *)fcn ); ``` The function accepts the following arguments: - **arrays**: `[inout] uint8_t**` array whose first two elements are pointers to strided input arrays and whose last element is a pointer to a strided output array. - **shape**: `[in] int64_t*` array whose only element is the number of elements over which to iterate. - **strides**: `[in] int64_t*` array containing strides (in bytes) for each strided array. - **fcn**: `[in] void*` a `stdlib_complex128_t (*f)(stdlib_complex128_t, stdlib_complex128_t)` function to apply provided as a `void` pointer. ```c void stdlib_strided_kb_z_as_zz_z( uint8_t *arrays[], const int64_t *shape, const int64_t *strides, void *fcn ); ``` #### stdlib_strided_kc_c_as_cc_c( \*arrays\[], \*shape, \*strides, \*fcn ) Applies a binary callback to strided input array elements and assigns results to elements in a strided output array. ```c #include "stdlib/complex/float32/ctor.h" #include // Create underlying byte arrays: uint8_t x[] = { 0, 0, 0, 0, 0, 0 }; uint8_t y[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; uint8_t out[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; // Define a pointer to an array containing pointers to strided arrays: uint8_t *arrays[] = { x, y, out }; // Define the strides: int64_t strides[] = { 2, 8, 8 }; // Define the number of elements over which to iterate: int64_t shape[] = { 3 }; // Define a callback: static stdlib_complex64_t fcn( stdlib_complex64_t x, stdlib_complex64_t y ) { // ... } // Apply the callback: stdlib_strided_kc_c_as_cc_c( arrays, shape, strides, (void *)fcn ); ``` The function accepts the following arguments: - **arrays**: `[inout] uint8_t**` array whose first two elements are pointers to strided input arrays and whose last element is a pointer to a strided output array. - **shape**: `[in] int64_t*` array whose only element is the number of elements over which to iterate. - **strides**: `[in] int64_t*` array containing strides (in bytes) for each strided array. - **fcn**: `[in] void*` a `stdlib_complex64_t (*f)(stdlib_complex64_t, stdlib_complex64_t)` function to apply provided as a `void` pointer. ```c void stdlib_strided_kc_c_as_cc_c( uint8_t *arrays[], const int64_t *shape, const int64_t *strides, void *fcn ); ``` #### stdlib_strided_kc_c_as_zz_z( \*arrays\[], \*shape, \*strides, \*fcn ) Applies a binary callback to strided input array elements and assigns results to elements in a strided output array. ```c #include "stdlib/complex/float64/ctor.h" #include // Create underlying byte arrays: uint8_t x[] = { 0, 0, 0, 0, 0, 0 }; uint8_t y[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; uint8_t out[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; // Define a pointer to an array containing pointers to strided arrays: uint8_t *arrays[] = { x, y, out }; // Define the strides: int64_t strides[] = { 2, 8, 8 }; // Define the number of elements over which to iterate: int64_t shape[] = { 3 }; // Define a callback: static stdlib_complex128_t fcn( stdlib_complex128_t x, stdlib_complex128_t y ) { // ... } // Apply the callback: stdlib_strided_kc_c_as_zz_z( arrays, shape, strides, (void *)fcn ); ``` The function accepts the following arguments: - **arrays**: `[inout] uint8_t**` array whose first two elements are pointers to strided input arrays and whose last element is a pointer to a strided output array. - **shape**: `[in] int64_t*` array whose only element is the number of elements over which to iterate. - **strides**: `[in] int64_t*` array containing strides (in bytes) for each strided array. - **fcn**: `[in] void*` a `stdlib_complex128_t (*f)(stdlib_complex128_t, stdlib_complex128_t)` function to apply provided as a `void` pointer. ```c void stdlib_strided_kc_c_as_zz_z( uint8_t *arrays[], const int64_t *shape, const int64_t *strides, void *fcn ); ``` #### stdlib_strided_kc_z_as_zz_z( \*arrays\[], \*shape, \*strides, \*fcn ) Applies a binary callback to strided input array elements and assigns results to elements in a strided output array. ```c #include "stdlib/complex/float64/ctor.h" #include // Create underlying byte arrays: uint8_t x[] = { 0, 0, 0, 0, 0, 0 }; uint8_t y[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; uint8_t out[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; // Define a pointer to an array containing pointers to strided arrays: uint8_t *arrays[] = { x, y, out }; // Define the strides: int64_t strides[] = { 2, 8, 16 }; // Define the number of elements over which to iterate: int64_t shape[] = { 3 }; // Define a callback: static stdlib_complex128_t fcn( stdlib_complex128_t x, stdlib_complex128_t y ) { // ... } // Apply the callback: stdlib_strided_kc_z_as_zz_z( arrays, shape, strides, (void *)fcn ); ``` The function accepts the following arguments: - **arrays**: `[inout] uint8_t**` array whose first two elements are pointers to strided input arrays and whose last element is a pointer to a strided output array. - **shape**: `[in] int64_t*` array whose only element is the number of elements over which to iterate. - **strides**: `[in] int64_t*` array containing strides (in bytes) for each strided array. - **fcn**: `[in] void*` a `stdlib_complex128_t (*f)(stdlib_complex128_t, stdlib_complex128_t)` function to apply provided as a `void` pointer. ```c void stdlib_strided_kc_z_as_zz_z( uint8_t *arrays[], const int64_t *shape, const int64_t *strides, void *fcn ); ``` #### stdlib_strided_kd_d_as_dd_d( \*arrays\[], \*shape, \*strides, \*fcn ) Applies a binary callback to strided input array elements and assigns results to elements in a strided output array. ```c #include // Create underlying byte arrays: uint8_t x[] = { 0, 0, 0, 0, 0, 0 }; uint8_t y[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; uint8_t out[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; // Define a pointer to an array containing pointers to strided arrays: uint8_t *arrays[] = { x, y, out }; // Define the strides: int64_t strides[] = { 2, 8, 8 }; // Define the number of elements over which to iterate: int64_t shape[] = { 3 }; // Define a callback: static double fcn( double x, double y ) { return x + y; } // Apply the callback: stdlib_strided_kd_d_as_dd_d( arrays, shape, strides, (void *)fcn ); ``` The function accepts the following arguments: - **arrays**: `[inout] uint8_t**` array whose first two elements are pointers to strided input arrays and whose last element is a pointer to a strided output array. - **shape**: `[in] int64_t*` array whose only element is the number of elements over which to iterate. - **strides**: `[in] int64_t*` array containing strides (in bytes) for each strided array. - **fcn**: `[in] void*` a `double (*f)(double, double)` function to apply provided as a `void` pointer. ```c void stdlib_strided_kd_d_as_dd_d( uint8_t *arrays[], const int64_t *shape, const int64_t *strides, void *fcn ); ``` #### stdlib_strided_kd_z_as_zz_z( \*arrays\[], \*shape, \*strides, \*fcn ) Applies a binary callback to strided input array elements and assigns results to elements in a strided output array. ```c #include "stdlib/complex/float64/ctor.h" #include // Create underlying byte arrays: uint8_t x[] = { 0, 0, 0, 0, 0, 0 }; uint8_t y[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; uint8_t out[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; // Define a pointer to an array containing pointers to strided arrays: uint8_t *arrays[] = { x, y, out }; // Define the strides: int64_t strides[] = { 2, 8, 16 }; // Define the number of elements over which to iterate: int64_t shape[] = { 3 }; // Define a callback: static stdlib_complex128_t fcn( stdlib_complex128_t x, stdlib_complex128_t y ) { // ... } // Apply the callback: stdlib_strided_kd_z_as_zz_z( arrays, shape, strides, (void *)fcn ); ``` The function accepts the following arguments: - **arrays**: `[inout] uint8_t**` array whose first two elements are pointers to strided input arrays and whose last element is a pointer to a strided output array. - **shape**: `[in] int64_t*` array whose only element is the number of elements over which to iterate. - **strides**: `[in] int64_t*` array containing strides (in bytes) for each strided array. - **fcn**: `[in] void*` a `stdlib_complex128_t (*f)(stdlib_complex128_t, stdlib_complex128_t)` function to apply provided as a `void` pointer. ```c void stdlib_strided_kd_z_as_zz_z( uint8_t *arrays[], const int64_t *shape, const int64_t *strides, void *fcn ); ``` #### stdlib_strided_kf_c_as_cc_c( \*arrays\[], \*shape, \*strides, \*fcn ) Applies a binary callback to strided input array elements and assigns results to elements in a strided output array. ```c #include "stdlib/complex/float32/ctor.h" #include // Create underlying byte arrays: uint8_t x[] = { 0, 0, 0, 0, 0, 0 }; uint8_t y[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; uint8_t out[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; // Define a pointer to an array containing pointers to strided arrays: uint8_t *arrays[] = { x, y, out }; // Define the strides: int64_t strides[] = { 2, 4, 8 }; // Define the number of elements over which to iterate: int64_t shape[] = { 3 }; // Define a callback: static stdlib_complex64_t fcn( stdlib_complex64_t x, stdlib_complex64_t y ) { // ... } // Apply the callback: stdlib_strided_kf_c_as_cc_c( arrays, shape, strides, (void *)fcn ); ``` The function accepts the following arguments: - **arrays**: `[inout] uint8_t**` array whose first two elements are pointers to strided input arrays and whose last element is a pointer to a strided output array. - **shape**: `[in] int64_t*` array whose only element is the number of elements over which to iterate. - **strides**: `[in] int64_t*` array containing strides (in bytes) for each strided array. - **fcn**: `[in] void*` a `stdlib_complex64_t (*f)(stdlib_complex64_t, stdlib_complex64_t)` function to apply provided as a `void` pointer. ```c void stdlib_strided_kf_c_as_cc_c( uint8_t *arrays[], const int64_t *shape, const int64_t *strides, void *fcn ); ``` #### stdlib_strided_kf_c_as_zz_z( \*arrays\[], \*shape, \*strides, \*fcn ) Applies a binary callback to strided input array elements and assigns results to elements in a strided output array. ```c #include "stdlib/complex/float64/ctor.h" #include // Create underlying byte arrays: uint8_t x[] = { 0, 0, 0, 0, 0, 0 }; uint8_t y[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; uint8_t out[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; // Define a pointer to an array containing pointers to strided arrays: uint8_t *arrays[] = { x, y, out }; // Define the strides: int64_t strides[] = { 2, 4, 8 }; // Define the number of elements over which to iterate: int64_t shape[] = { 3 }; // Define a callback: static stdlib_complex128_t fcn( stdlib_complex128_t x, stdlib_complex128_t y ) { // ... } // Apply the callback: stdlib_strided_kf_c_as_zz_z( arrays, shape, strides, (void *)fcn ); ``` The function accepts the following arguments: - **arrays**: `[inout] uint8_t**` array whose first two elements are pointers to strided input arrays and whose last element is a pointer to a strided output array. - **shape**: `[in] int64_t*` array whose only element is the number of elements over which to iterate. - **strides**: `[in] int64_t*` array containing strides (in bytes) for each strided array. - **fcn**: `[in] void*` a `stdlib_complex128_t (*f)(stdlib_complex128_t, stdlib_complex128_t)` function to apply provided as a `void` pointer. ```c void stdlib_strided_kf_c_as_zz_z( uint8_t *arrays[], const int64_t *shape, const int64_t *strides, void *fcn ); ``` #### stdlib_strided_kf_d_as_dd_d( \*arrays\[], \*shape, \*strides, \*fcn ) Applies a binary callback to strided input array elements and assigns results to elements in a strided output array. ```c #include // Create underlying byte arrays: uint8_t x[] = { 0, 0, 0, 0, 0, 0 }; uint8_t y[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; uint8_t out[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; // Define a pointer to an array containing pointers to strided arrays: uint8_t *arrays[] = { x, y, out }; // Define the strides: int64_t strides[] = { 2, 4, 8 }; // Define the number of elements over which to iterate: int64_t shape[] = { 3 }; // Define a callback: static double fcn( double x, double y ) { return x + y; } // Apply the callback: stdlib_strided_kf_d_as_dd_d( arrays, shape, strides, (void *)fcn ); ``` The function accepts the following arguments: - **arrays**: `[inout] uint8_t**` array whose first two elements are pointers to strided input arrays and whose last element is a pointer to a strided output array. - **shape**: `[in] int64_t*` array whose only element is the number of elements over which to iterate. - **strides**: `[in] int64_t*` array containing strides (in bytes) for each strided array. - **fcn**: `[in] void*` a `double (*f)(double, double)` function to apply provided as a `void` pointer. ```c void stdlib_strided_kf_d_as_dd_d( uint8_t *arrays[], const int64_t *shape, const int64_t *strides, void *fcn ); ``` #### stdlib_strided_kf_f_as_dd_d( \*arrays\[], \*shape, \*strides, \*fcn ) Applies a binary callback to strided input array elements and assigns results to elements in a strided output array. ```c #include // Create underlying byte arrays: uint8_t x[] = { 0, 0, 0, 0, 0, 0 }; uint8_t y[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; uint8_t out[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; // Define a pointer to an array containing pointers to strided arrays: uint8_t *arrays[] = { x, y, out }; // Define the strides: int64_t strides[] = { 2, 4, 4 }; // Define the number of elements over which to iterate: int64_t shape[] = { 3 }; // Define a callback: static double fcn( double x, double y ) { return x + y; } // Apply the callback: stdlib_strided_kf_f_as_dd_d( arrays, shape, strides, (void *)fcn ); ``` The function accepts the following arguments: - **arrays**: `[inout] uint8_t**` array whose first two elements are pointers to strided input arrays and whose last element is a pointer to a strided output array. - **shape**: `[in] int64_t*` array whose only element is the number of elements over which to iterate. - **strides**: `[in] int64_t*` array containing strides (in bytes) for each strided array. - **fcn**: `[in] void*` a `double (*f)(double, double)` function to apply provided as a `void` pointer. ```c void stdlib_strided_kf_f_as_dd_d( uint8_t *arrays[], const int64_t *shape, const int64_t *strides, void *fcn ); ``` #### stdlib_strided_kf_f_as_ff_f( \*arrays\[], \*shape, \*strides, \*fcn ) Applies a binary callback to strided input array elements and assigns results to elements in a strided output array. ```c #include // Create underlying byte arrays: uint8_t x[] = { 0, 0, 0, 0, 0, 0 }; uint8_t y[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; uint8_t out[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; // Define a pointer to an array containing pointers to strided arrays: uint8_t *arrays[] = { x, y, out }; // Define the strides: int64_t strides[] = { 2, 4, 4 }; // Define the number of elements over which to iterate: int64_t shape[] = { 3 }; // Define a callback: static float fcn( float x, float y ) { return x + y; } // Apply the callback: stdlib_strided_kf_f_as_ff_f( arrays, shape, strides, (void *)fcn ); ``` The function accepts the following arguments: - **arrays**: `[inout] uint8_t**` array whose first two elements are pointers to strided input arrays and whose last element is a pointer to a strided output array. - **shape**: `[in] int64_t*` array whose only element is the number of elements over which to iterate. - **strides**: `[in] int64_t*` array containing strides (in bytes) for each strided array. - **fcn**: `[in] void*` a `float (*f)(float, float)` function to apply provided as a `void` pointer. ```c void stdlib_strided_kf_f_as_ff_f( uint8_t *arrays[], const int64_t *shape, const int64_t *strides, void *fcn ); ``` #### stdlib_strided_kf_z_as_zz_z( \*arrays\[], \*shape, \*strides, \*fcn ) Applies a binary callback to strided input array elements and assigns results to elements in a strided output array. ```c #include "stdlib/complex/float64/ctor.h" #include // Create underlying byte arrays: uint8_t x[] = { 0, 0, 0, 0, 0, 0 }; uint8_t y[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; uint8_t out[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; // Define a pointer to an array containing pointers to strided arrays: uint8_t *arrays[] = { x, y, out }; // Define the strides: int64_t strides[] = { 2, 4, 16 }; // Define the number of elements over which to iterate: int64_t shape[] = { 3 }; // Define a callback: static stdlib_complex128_t fcn( stdlib_complex128_t x, stdlib_complex128_t y ) { // ... } // Apply the callback: stdlib_strided_kf_z_as_zz_z( arrays, shape, strides, (void *)fcn ); ``` The function accepts the following arguments: - **arrays**: `[inout] uint8_t**` array whose first two elements are pointers to strided input arrays and whose last element is a pointer to a strided output array. - **shape**: `[in] int64_t*` array whose only element is the number of elements over which to iterate. - **strides**: `[in] int64_t*` array containing strides (in bytes) for each strided array. - **fcn**: `[in] void*` a `stdlib_complex128_t (*f)(stdlib_complex128_t, stdlib_complex128_t)` function to apply provided as a `void` pointer. ```c void stdlib_strided_kf_z_as_zz_z( uint8_t *arrays[], const int64_t *shape, const int64_t *strides, void *fcn ); ``` #### stdlib_strided_ki_d_as_dd_d( \*arrays\[], \*shape, \*strides, \*fcn ) Applies a binary callback to strided input array elements and assigns results to elements in a strided output array. ```c #include // Create underlying byte arrays: uint8_t x[] = { 0, 0, 0, 0, 0, 0 }; uint8_t y[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; uint8_t out[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; // Define a pointer to an array containing pointers to strided arrays: uint8_t *arrays[] = { x, y, out }; // Define the strides: int64_t strides[] = { 2, 4, 8 }; // Define the number of elements over which to iterate: int64_t shape[] = { 3 }; // Define a callback: static double fcn( double x, double y ) { return x + y; } // Apply the callback: stdlib_strided_ki_d_as_dd_d( arrays, shape, strides, (void *)fcn ); ``` The function accepts the following arguments: - **arrays**: `[inout] uint8_t**` array whose first two elements are pointers to strided input arrays and whose last element is a pointer to a strided output array. - **shape**: `[in] int64_t*` array whose only element is the number of elements over which to iterate. - **strides**: `[in] int64_t*` array containing strides (in bytes) for each strided array. - **fcn**: `[in] void*` a `double (*f)(double, double)` function to apply provided as a `void` pointer. ```c void stdlib_strided_ki_d_as_dd_d( uint8_t *arrays[], const int64_t *shape, const int64_t *strides, void *fcn ); ``` #### stdlib_strided_ki_i_as_ii_i( \*arrays\[], \*shape, \*strides, \*fcn ) Applies a binary callback to strided input array elements and assigns results to elements in a strided output array. ```c #include // Create underlying byte arrays: uint8_t x[] = { 0, 0, 0, 0, 0, 0 }; uint8_t y[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; uint8_t out[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; // Define a pointer to an array containing pointers to strided arrays: uint8_t *arrays[] = { x, y, out }; // Define the strides: int64_t strides[] = { 2, 4, 4 }; // Define the number of elements over which to iterate: int64_t shape[] = { 3 }; // Define a callback: static int32_t fcn( int32_t x, int32_t y ) { return x + y; } // Apply the callback: stdlib_strided_ki_i_as_ii_i( arrays, shape, strides, (void *)fcn ); ``` The function accepts the following arguments: - **arrays**: `[inout] uint8_t**` array whose first two elements are pointers to strided input arrays and whose last element is a pointer to a strided output array. - **shape**: `[in] int64_t*` array whose only element is the number of elements over which to iterate. - **strides**: `[in] int64_t*` array containing strides (in bytes) for each strided array. - **fcn**: `[in] void*` a `int32_t (*f)(int32_t, int32_t)` function to apply provided as a `void` pointer. ```c void stdlib_strided_ki_i_as_ii_i( uint8_t *arrays[], const int64_t *shape, const int64_t *strides, void *fcn ); ``` #### stdlib_strided_ki_z_as_zz_z( \*arrays\[], \*shape, \*strides, \*fcn ) Applies a binary callback to strided input array elements and assigns results to elements in a strided output array. ```c #include "stdlib/complex/float64/ctor.h" #include // Create underlying byte arrays: uint8_t x[] = { 0, 0, 0, 0, 0, 0 }; uint8_t y[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; uint8_t out[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; // Define a pointer to an array containing pointers to strided arrays: uint8_t *arrays[] = { x, y, out }; // Define the strides: int64_t strides[] = { 2, 4, 16 }; // Define the number of elements over which to iterate: int64_t shape[] = { 3 }; // Define a callback: static stdlib_complex128_t fcn( stdlib_complex128_t x, stdlib_complex128_t y ) { // ... } // Apply the callback: stdlib_strided_ki_z_as_zz_z( arrays, shape, strides, (void *)fcn ); ``` The function accepts the following arguments: - **arrays**: `[inout] uint8_t**` array whose first two elements are pointers to strided input arrays and whose last element is a pointer to a strided output array. - **shape**: `[in] int64_t*` array whose only element is the number of elements over which to iterate. - **strides**: `[in] int64_t*` array containing strides (in bytes) for each strided array. - **fcn**: `[in] void*` a `stdlib_complex128_t (*f)(stdlib_complex128_t, stdlib_complex128_t)` function to apply provided as a `void` pointer. ```c void stdlib_strided_ki_z_as_zz_z( uint8_t *arrays[], const int64_t *shape, const int64_t *strides, void *fcn ); ``` #### stdlib_strided_kk_c( \*arrays\[], \*shape, \*strides, \*fcn ) Applies a binary callback to strided input array elements and assigns results to elements in a strided output array. ```c #include // Create underlying byte arrays: uint8_t x[] = { 0, 0, 0, 0, 0, 0 }; uint8_t y[] = { 0, 0, 0, 0, 0, 0 }; uint8_t out[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; // Define a pointer to an array containing pointers to strided arrays: uint8_t *arrays[] = { x, y, out }; // Define the strides: int64_t strides[] = { 2, 2, 8 }; // Define the number of elements over which to iterate: int64_t shape[] = { 3 }; // Define a callback: static int16_t fcn( int16_t x, int16_t y ) { return x + y; } // Apply the callback: stdlib_strided_kk_c( arrays, shape, strides, (void *)fcn ); ``` The function accepts the following arguments: - **arrays**: `[inout] uint8_t**` array whose first two elements are pointers to strided input arrays and whose last element is a pointer to a strided output array. - **shape**: `[in] int64_t*` array whose only element is the number of elements over which to iterate. - **strides**: `[in] int64_t*` array containing strides (in bytes) for each strided array. - **fcn**: `[in] void*` a `int16_t (*f)(int16_t, int16_t)` function to apply provided as a `void` pointer. ```c void stdlib_strided_kk_c( uint8_t *arrays[], const int64_t *shape, const int64_t *strides, void *fcn ); ``` #### stdlib_strided_kk_c_as_cc_c( \*arrays\[], \*shape, \*strides, \*fcn ) Applies a binary callback to strided input array elements and assigns results to elements in a strided output array. ```c #include "stdlib/complex/float32/ctor.h" #include // Create underlying byte arrays: uint8_t x[] = { 0, 0, 0, 0, 0, 0 }; uint8_t y[] = { 0, 0, 0, 0, 0, 0 }; uint8_t out[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; // Define a pointer to an array containing pointers to strided arrays: uint8_t *arrays[] = { x, y, out }; // Define the strides: int64_t strides[] = { 2, 2, 8 }; // Define the number of elements over which to iterate: int64_t shape[] = { 3 }; // Define a callback: static stdlib_complex64_t fcn( stdlib_complex64_t x, stdlib_complex64_t y ) { // ... } // Apply the callback: stdlib_strided_kk_c_as_cc_c( arrays, shape, strides, (void *)fcn ); ``` The function accepts the following arguments: - **arrays**: `[inout] uint8_t**` array whose first two elements are pointers to strided input arrays and whose last element is a pointer to a strided output array. - **shape**: `[in] int64_t*` array whose only element is the number of elements over which to iterate. - **strides**: `[in] int64_t*` array containing strides (in bytes) for each strided array. - **fcn**: `[in] void*` a `stdlib_complex64_t (*f)(stdlib_complex64_t, stdlib_complex64_t)` function to apply provided as a `void` pointer. ```c void stdlib_strided_kk_c_as_cc_c( uint8_t *arrays[], const int64_t *shape, const int64_t *strides, void *fcn ); ``` #### stdlib_strided_kk_c_as_zz_z( \*arrays\[], \*shape, \*strides, \*fcn ) Applies a binary callback to strided input array elements and assigns results to elements in a strided output array. ```c #include "stdlib/complex/float64/ctor.h" #include // Create underlying byte arrays: uint8_t x[] = { 0, 0, 0, 0, 0, 0 }; uint8_t y[] = { 0, 0, 0, 0, 0, 0 }; uint8_t out[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; // Define a pointer to an array containing pointers to strided arrays: uint8_t *arrays[] = { x, y, out }; // Define the strides: int64_t strides[] = { 2, 2, 8 }; // Define the number of elements over which to iterate: int64_t shape[] = { 3 }; // Define a callback: static stdlib_complex128_t fcn( stdlib_complex128_t x, stdlib_complex128_t y ) { // ... } // Apply the callback: stdlib_strided_kk_c_as_zz_z( arrays, shape, strides, (void *)fcn ); ``` The function accepts the following arguments: - **arrays**: `[inout] uint8_t**` array whose first two elements are pointers to strided input arrays and whose last element is a pointer to a strided output array. - **shape**: `[in] int64_t*` array whose only element is the number of elements over which to iterate. - **strides**: `[in] int64_t*` array containing strides (in bytes) for each strided array. - **fcn**: `[in] void*` a `stdlib_complex128_t (*f)(stdlib_complex128_t, stdlib_complex128_t)` function to apply provided as a `void` pointer. ```c void stdlib_strided_kk_c_as_zz_z( uint8_t *arrays[], const int64_t *shape, const int64_t *strides, void *fcn ); ``` #### stdlib_strided_kk_d( \*arrays\[], \*shape, \*strides, \*fcn ) Applies a binary callback to strided input array elements and assigns results to elements in a strided output array. ```c #include // Create underlying byte arrays: uint8_t x[] = { 0, 0, 0, 0, 0, 0 }; uint8_t y[] = { 0, 0, 0, 0, 0, 0 }; uint8_t out[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; // Define a pointer to an array containing pointers to strided arrays: uint8_t *arrays[] = { x, y, out }; // Define the strides: int64_t strides[] = { 2, 2, 8 }; // Define the number of elements over which to iterate: int64_t shape[] = { 3 }; // Define a callback: static int16_t fcn( int16_t x, int16_t y ) { return x + y; } // Apply the callback: stdlib_strided_kk_d( arrays, shape, strides, (void *)fcn ); ``` The function accepts the following arguments: - **arrays**: `[inout] uint8_t**` array whose first two elements are pointers to strided input arrays and whose last element is a pointer to a strided output array. - **shape**: `[in] int64_t*` array whose only element is the number of elements over which to iterate. - **strides**: `[in] int64_t*` array containing strides (in bytes) for each strided array. - **fcn**: `[in] void*` a `int16_t (*f)(int16_t, int16_t)` function to apply provided as a `void` pointer. ```c void stdlib_strided_kk_d( uint8_t *arrays[], const int64_t *shape, const int64_t *strides, void *fcn ); ``` #### stdlib_strided_kk_d_as_dd_d( \*arrays\[], \*shape, \*strides, \*fcn ) Applies a binary callback to strided input array elements and assigns results to elements in a strided output array. ```c #include // Create underlying byte arrays: uint8_t x[] = { 0, 0, 0, 0, 0, 0 }; uint8_t y[] = { 0, 0, 0, 0, 0, 0 }; uint8_t out[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; // Define a pointer to an array containing pointers to strided arrays: uint8_t *arrays[] = { x, y, out }; // Define the strides: int64_t strides[] = { 2, 2, 8 }; // Define the number of elements over which to iterate: int64_t shape[] = { 3 }; // Define a callback: static double fcn( double x, double y ) { return x + y; } // Apply the callback: stdlib_strided_kk_d_as_dd_d( arrays, shape, strides, (void *)fcn ); ``` The function accepts the following arguments: - **arrays**: `[inout] uint8_t**` array whose first two elements are pointers to strided input arrays and whose last element is a pointer to a strided output array. - **shape**: `[in] int64_t*` array whose only element is the number of elements over which to iterate. - **strides**: `[in] int64_t*` array containing strides (in bytes) for each strided array. - **fcn**: `[in] void*` a `double (*f)(double, double)` function to apply provided as a `void` pointer. ```c void stdlib_strided_kk_d_as_dd_d( uint8_t *arrays[], const int64_t *shape, const int64_t *strides, void *fcn ); ``` #### stdlib_strided_kk_f( \*arrays\[], \*shape, \*strides, \*fcn ) Applies a binary callback to strided input array elements and assigns results to elements in a strided output array. ```c #include // Create underlying byte arrays: uint8_t x[] = { 0, 0, 0, 0, 0, 0 }; uint8_t y[] = { 0, 0, 0, 0, 0, 0 }; uint8_t out[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; // Define a pointer to an array containing pointers to strided arrays: uint8_t *arrays[] = { x, y, out }; // Define the strides: int64_t strides[] = { 2, 2, 4 }; // Define the number of elements over which to iterate: int64_t shape[] = { 3 }; // Define a callback: static int16_t fcn( int16_t x, int16_t y ) { return x + y; } // Apply the callback: stdlib_strided_kk_f( arrays, shape, strides, (void *)fcn ); ``` The function accepts the following arguments: - **arrays**: `[inout] uint8_t**` array whose first two elements are pointers to strided input arrays and whose last element is a pointer to a strided output array. - **shape**: `[in] int64_t*` array whose only element is the number of elements over which to iterate. - **strides**: `[in] int64_t*` array containing strides (in bytes) for each strided array. - **fcn**: `[in] void*` a `int16_t (*f)(int16_t, int16_t)` function to apply provided as a `void` pointer. ```c void stdlib_strided_kk_f( uint8_t *arrays[], const int64_t *shape, const int64_t *strides, void *fcn ); ``` #### stdlib_strided_kk_f_as_dd_d( \*arrays\[], \*shape, \*strides, \*fcn ) Applies a binary callback to strided input array elements and assigns results to elements in a strided output array. ```c #include // Create underlying byte arrays: uint8_t x[] = { 0, 0, 0, 0, 0, 0 }; uint8_t y[] = { 0, 0, 0, 0, 0, 0 }; uint8_t out[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; // Define a pointer to an array containing pointers to strided arrays: uint8_t *arrays[] = { x, y, out }; // Define the strides: int64_t strides[] = { 2, 2, 4 }; // Define the number of elements over which to iterate: int64_t shape[] = { 3 }; // Define a callback: static double fcn( double x, double y ) { return x + y; } // Apply the callback: stdlib_strided_kk_f_as_dd_d( arrays, shape, strides, (void *)fcn ); ``` The function accepts the following arguments: - **arrays**: `[inout] uint8_t**` array whose first two elements are pointers to strided input arrays and whose last element is a pointer to a strided output array. - **shape**: `[in] int64_t*` array whose only element is the number of elements over which to iterate. - **strides**: `[in] int64_t*` array containing strides (in bytes) for each strided array. - **fcn**: `[in] void*` a `double (*f)(double, double)` function to apply provided as a `void` pointer. ```c void stdlib_strided_kk_f_as_dd_d( uint8_t *arrays[], const int64_t *shape, const int64_t *strides, void *fcn ); ``` #### stdlib_strided_kk_f_as_ff_f( \*arrays\[], \*shape, \*strides, \*fcn ) Applies a binary callback to strided input array elements and assigns results to elements in a strided output array. ```c #include // Create underlying byte arrays: uint8_t x[] = { 0, 0, 0, 0, 0, 0 }; uint8_t y[] = { 0, 0, 0, 0, 0, 0 }; uint8_t out[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; // Define a pointer to an array containing pointers to strided arrays: uint8_t *arrays[] = { x, y, out }; // Define the strides: int64_t strides[] = { 2, 2, 4 }; // Define the number of elements over which to iterate: int64_t shape[] = { 3 }; // Define a callback: static float fcn( float x, float y ) { return x + y; } // Apply the callback: stdlib_strided_kk_f_as_ff_f( arrays, shape, strides, (void *)fcn ); ``` The function accepts the following arguments: - **arrays**: `[inout] uint8_t**` array whose first two elements are pointers to strided input arrays and whose last element is a pointer to a strided output array. - **shape**: `[in] int64_t*` array whose only element is the number of elements over which to iterate. - **strides**: `[in] int64_t*` array containing strides (in bytes) for each strided array. - **fcn**: `[in] void*` a `float (*f)(float, float)` function to apply provided as a `void` pointer. ```c void stdlib_strided_kk_f_as_ff_f( uint8_t *arrays[], const int64_t *shape, const int64_t *strides, void *fcn ); ``` #### stdlib_strided_kk_i( \*arrays\[], \*shape, \*strides, \*fcn ) Applies a binary callback to strided input array elements and assigns results to elements in a strided output array. ```c #include // Create underlying byte arrays: uint8_t x[] = { 0, 0, 0, 0, 0, 0 }; uint8_t y[] = { 0, 0, 0, 0, 0, 0 }; uint8_t out[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; // Define a pointer to an array containing pointers to strided arrays: uint8_t *arrays[] = { x, y, out }; // Define the strides: int64_t strides[] = { 2, 2, 4 }; // Define the number of elements over which to iterate: int64_t shape[] = { 3 }; // Define a callback: static int16_t fcn( int16_t x, int16_t y ) { return x + y; } // Apply the callback: stdlib_strided_kk_i( arrays, shape, strides, (void *)fcn ); ``` The function accepts the following arguments: - **arrays**: `[inout] uint8_t**` array whose first two elements are pointers to strided input arrays and whose last element is a pointer to a strided output array. - **shape**: `[in] int64_t*` array whose only element is the number of elements over which to iterate. - **strides**: `[in] int64_t*` array containing strides (in bytes) for each strided array. - **fcn**: `[in] void*` a `int16_t (*f)(int16_t, int16_t)` function to apply provided as a `void` pointer. ```c void stdlib_strided_kk_i( uint8_t *arrays[], const int64_t *shape, const int64_t *strides, void *fcn ); ``` #### stdlib_strided_kk_i_as_ii_i( \*arrays\[], \*shape, \*strides, \*fcn ) Applies a binary callback to strided input array elements and assigns results to elements in a strided output array. ```c #include // Create underlying byte arrays: uint8_t x[] = { 0, 0, 0, 0, 0, 0 }; uint8_t y[] = { 0, 0, 0, 0, 0, 0 }; uint8_t out[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; // Define a pointer to an array containing pointers to strided arrays: uint8_t *arrays[] = { x, y, out }; // Define the strides: int64_t strides[] = { 2, 2, 4 }; // Define the number of elements over which to iterate: int64_t shape[] = { 3 }; // Define a callback: static int32_t fcn( int32_t x, int32_t y ) { return x + y; } // Apply the callback: stdlib_strided_kk_i_as_ii_i( arrays, shape, strides, (void *)fcn ); ``` The function accepts the following arguments: - **arrays**: `[inout] uint8_t**` array whose first two elements are pointers to strided input arrays and whose last element is a pointer to a strided output array. - **shape**: `[in] int64_t*` array whose only element is the number of elements over which to iterate. - **strides**: `[in] int64_t*` array containing strides (in bytes) for each strided array. - **fcn**: `[in] void*` a `int32_t (*f)(int32_t, int32_t)` function to apply provided as a `void` pointer. ```c void stdlib_strided_kk_i_as_ii_i( uint8_t *arrays[], const int64_t *shape, const int64_t *strides, void *fcn ); ``` #### stdlib_strided_kk_k( \*arrays\[], \*shape, \*strides, \*fcn ) Applies a binary callback to strided input array elements and assigns results to elements in a strided output array. ```c #include // Create underlying byte arrays: uint8_t x[] = { 0, 0, 0, 0, 0, 0 }; uint8_t y[] = { 0, 0, 0, 0, 0, 0 }; uint8_t out[] = { 0, 0, 0, 0, 0, 0 }; // Define a pointer to an array containing pointers to strided arrays: uint8_t *arrays[] = { x, y, out }; // Define the strides: int64_t strides[] = { 2, 2, 2 }; // Define the number of elements over which to iterate: int64_t shape[] = { 3 }; // Define a callback: static int16_t fcn( int16_t x, int16_t y ) { return x + y; } // Apply the callback: stdlib_strided_kk_k( arrays, shape, strides, (void *)fcn ); ``` The function accepts the following arguments: - **arrays**: `[inout] uint8_t**` array whose first two elements are pointers to strided input arrays and whose last element is a pointer to a strided output array. - **shape**: `[in] int64_t*` array whose only element is the number of elements over which to iterate. - **strides**: `[in] int64_t*` array containing strides (in bytes) for each strided array. - **fcn**: `[in] void*` a `int16_t (*f)(int16_t, int16_t)` function to apply provided as a `void` pointer. ```c void stdlib_strided_kk_k( uint8_t *arrays[], const int64_t *shape, const int64_t *strides, void *fcn ); ``` #### stdlib_strided_kk_z( \*arrays\[], \*shape, \*strides, \*fcn ) Applies a binary callback to strided input array elements and assigns results to elements in a strided output array. ```c #include // Create underlying byte arrays: uint8_t x[] = { 0, 0, 0, 0, 0, 0 }; uint8_t y[] = { 0, 0, 0, 0, 0, 0 }; uint8_t out[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; // Define a pointer to an array containing pointers to strided arrays: uint8_t *arrays[] = { x, y, out }; // Define the strides: int64_t strides[] = { 2, 2, 16 }; // Define the number of elements over which to iterate: int64_t shape[] = { 3 }; // Define a callback: static int16_t fcn( int16_t x, int16_t y ) { return x + y; } // Apply the callback: stdlib_strided_kk_z( arrays, shape, strides, (void *)fcn ); ``` The function accepts the following arguments: - **arrays**: `[inout] uint8_t**` array whose first two elements are pointers to strided input arrays and whose last element is a pointer to a strided output array. - **shape**: `[in] int64_t*` array whose only element is the number of elements over which to iterate. - **strides**: `[in] int64_t*` array containing strides (in bytes) for each strided array. - **fcn**: `[in] void*` a `int16_t (*f)(int16_t, int16_t)` function to apply provided as a `void` pointer. ```c void stdlib_strided_kk_z( uint8_t *arrays[], const int64_t *shape, const int64_t *strides, void *fcn ); ``` #### stdlib_strided_kk_z_as_zz_z( \*arrays\[], \*shape, \*strides, \*fcn ) Applies a binary callback to strided input array elements and assigns results to elements in a strided output array. ```c #include "stdlib/complex/float64/ctor.h" #include // Create underlying byte arrays: uint8_t x[] = { 0, 0, 0, 0, 0, 0 }; uint8_t y[] = { 0, 0, 0, 0, 0, 0 }; uint8_t out[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; // Define a pointer to an array containing pointers to strided arrays: uint8_t *arrays[] = { x, y, out }; // Define the strides: int64_t strides[] = { 2, 2, 16 }; // Define the number of elements over which to iterate: int64_t shape[] = { 3 }; // Define a callback: static stdlib_complex128_t fcn( stdlib_complex128_t x, stdlib_complex128_t y ) { // ... } // Apply the callback: stdlib_strided_kk_z_as_zz_z( arrays, shape, strides, (void *)fcn ); ``` The function accepts the following arguments: - **arrays**: `[inout] uint8_t**` array whose first two elements are pointers to strided input arrays and whose last element is a pointer to a strided output array. - **shape**: `[in] int64_t*` array whose only element is the number of elements over which to iterate. - **strides**: `[in] int64_t*` array containing strides (in bytes) for each strided array. - **fcn**: `[in] void*` a `stdlib_complex128_t (*f)(stdlib_complex128_t, stdlib_complex128_t)` function to apply provided as a `void` pointer. ```c void stdlib_strided_kk_z_as_zz_z( uint8_t *arrays[], const int64_t *shape, const int64_t *strides, void *fcn ); ``` #### stdlib_strided_ks_c_as_cc_c( \*arrays\[], \*shape, \*strides, \*fcn ) Applies a binary callback to strided input array elements and assigns results to elements in a strided output array. ```c #include "stdlib/complex/float32/ctor.h" #include // Create underlying byte arrays: uint8_t x[] = { 0, 0, 0, 0, 0, 0 }; uint8_t y[] = { 0, 0, 0 }; uint8_t out[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; // Define a pointer to an array containing pointers to strided arrays: uint8_t *arrays[] = { x, y, out }; // Define the strides: int64_t strides[] = { 2, 1, 8 }; // Define the number of elements over which to iterate: int64_t shape[] = { 3 }; // Define a callback: static stdlib_complex64_t fcn( stdlib_complex64_t x, stdlib_complex64_t y ) { // ... } // Apply the callback: stdlib_strided_ks_c_as_cc_c( arrays, shape, strides, (void *)fcn ); ``` The function accepts the following arguments: - **arrays**: `[inout] uint8_t**` array whose first two elements are pointers to strided input arrays and whose last element is a pointer to a strided output array. - **shape**: `[in] int64_t*` array whose only element is the number of elements over which to iterate. - **strides**: `[in] int64_t*` array containing strides (in bytes) for each strided array. - **fcn**: `[in] void*` a `stdlib_complex64_t (*f)(stdlib_complex64_t, stdlib_complex64_t)` function to apply provided as a `void` pointer. ```c void stdlib_strided_ks_c_as_cc_c( uint8_t *arrays[], const int64_t *shape, const int64_t *strides, void *fcn ); ``` #### stdlib_strided_ks_c_as_zz_z( \*arrays\[], \*shape, \*strides, \*fcn ) Applies a binary callback to strided input array elements and assigns results to elements in a strided output array. ```c #include "stdlib/complex/float64/ctor.h" #include // Create underlying byte arrays: uint8_t x[] = { 0, 0, 0, 0, 0, 0 }; uint8_t y[] = { 0, 0, 0 }; uint8_t out[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; // Define a pointer to an array containing pointers to strided arrays: uint8_t *arrays[] = { x, y, out }; // Define the strides: int64_t strides[] = { 2, 1, 8 }; // Define the number of elements over which to iterate: int64_t shape[] = { 3 }; // Define a callback: static stdlib_complex128_t fcn( stdlib_complex128_t x, stdlib_complex128_t y ) { // ... } // Apply the callback: stdlib_strided_ks_c_as_zz_z( arrays, shape, strides, (void *)fcn ); ``` The function accepts the following arguments: - **arrays**: `[inout] uint8_t**` array whose first two elements are pointers to strided input arrays and whose last element is a pointer to a strided output array. - **shape**: `[in] int64_t*` array whose only element is the number of elements over which to iterate. - **strides**: `[in] int64_t*` array containing strides (in bytes) for each strided array. - **fcn**: `[in] void*` a `stdlib_complex128_t (*f)(stdlib_complex128_t, stdlib_complex128_t)` function to apply provided as a `void` pointer. ```c void stdlib_strided_ks_c_as_zz_z( uint8_t *arrays[], const int64_t *shape, const int64_t *strides, void *fcn ); ``` #### stdlib_strided_ks_d_as_dd_d( \*arrays\[], \*shape, \*strides, \*fcn ) Applies a binary callback to strided input array elements and assigns results to elements in a strided output array. ```c #include // Create underlying byte arrays: uint8_t x[] = { 0, 0, 0, 0, 0, 0 }; uint8_t y[] = { 0, 0, 0 }; uint8_t out[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; // Define a pointer to an array containing pointers to strided arrays: uint8_t *arrays[] = { x, y, out }; // Define the strides: int64_t strides[] = { 2, 1, 8 }; // Define the number of elements over which to iterate: int64_t shape[] = { 3 }; // Define a callback: static double fcn( double x, double y ) { return x + y; } // Apply the callback: stdlib_strided_ks_d_as_dd_d( arrays, shape, strides, (void *)fcn ); ``` The function accepts the following arguments: - **arrays**: `[inout] uint8_t**` array whose first two elements are pointers to strided input arrays and whose last element is a pointer to a strided output array. - **shape**: `[in] int64_t*` array whose only element is the number of elements over which to iterate. - **strides**: `[in] int64_t*` array containing strides (in bytes) for each strided array. - **fcn**: `[in] void*` a `double (*f)(double, double)` function to apply provided as a `void` pointer. ```c void stdlib_strided_ks_d_as_dd_d( uint8_t *arrays[], const int64_t *shape, const int64_t *strides, void *fcn ); ``` #### stdlib_strided_ks_f_as_dd_d( \*arrays\[], \*shape, \*strides, \*fcn ) Applies a binary callback to strided input array elements and assigns results to elements in a strided output array. ```c #include // Create underlying byte arrays: uint8_t x[] = { 0, 0, 0, 0, 0, 0 }; uint8_t y[] = { 0, 0, 0 }; uint8_t out[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; // Define a pointer to an array containing pointers to strided arrays: uint8_t *arrays[] = { x, y, out }; // Define the strides: int64_t strides[] = { 2, 1, 4 }; // Define the number of elements over which to iterate: int64_t shape[] = { 3 }; // Define a callback: static double fcn( double x, double y ) { return x + y; } // Apply the callback: stdlib_strided_ks_f_as_dd_d( arrays, shape, strides, (void *)fcn ); ``` The function accepts the following arguments: - **arrays**: `[inout] uint8_t**` array whose first two elements are pointers to strided input arrays and whose last element is a pointer to a strided output array. - **shape**: `[in] int64_t*` array whose only element is the number of elements over which to iterate. - **strides**: `[in] int64_t*` array containing strides (in bytes) for each strided array. - **fcn**: `[in] void*` a `double (*f)(double, double)` function to apply provided as a `void` pointer. ```c void stdlib_strided_ks_f_as_dd_d( uint8_t *arrays[], const int64_t *shape, const int64_t *strides, void *fcn ); ``` #### stdlib_strided_ks_f_as_ff_f( \*arrays\[], \*shape, \*strides, \*fcn ) Applies a binary callback to strided input array elements and assigns results to elements in a strided output array. ```c #include // Create underlying byte arrays: uint8_t x[] = { 0, 0, 0, 0, 0, 0 }; uint8_t y[] = { 0, 0, 0 }; uint8_t out[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; // Define a pointer to an array containing pointers to strided arrays: uint8_t *arrays[] = { x, y, out }; // Define the strides: int64_t strides[] = { 2, 1, 4 }; // Define the number of elements over which to iterate: int64_t shape[] = { 3 }; // Define a callback: static float fcn( float x, float y ) { return x + y; } // Apply the callback: stdlib_strided_ks_f_as_ff_f( arrays, shape, strides, (void *)fcn ); ``` The function accepts the following arguments: - **arrays**: `[inout] uint8_t**` array whose first two elements are pointers to strided input arrays and whose last element is a pointer to a strided output array. - **shape**: `[in] int64_t*` array whose only element is the number of elements over which to iterate. - **strides**: `[in] int64_t*` array containing strides (in bytes) for each strided array. - **fcn**: `[in] void*` a `float (*f)(float, float)` function to apply provided as a `void` pointer. ```c void stdlib_strided_ks_f_as_ff_f( uint8_t *arrays[], const int64_t *shape, const int64_t *strides, void *fcn ); ``` #### stdlib_strided_ks_i_as_ii_i( \*arrays\[], \*shape, \*strides, \*fcn ) Applies a binary callback to strided input array elements and assigns results to elements in a strided output array. ```c #include // Create underlying byte arrays: uint8_t x[] = { 0, 0, 0, 0, 0, 0 }; uint8_t y[] = { 0, 0, 0 }; uint8_t out[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; // Define a pointer to an array containing pointers to strided arrays: uint8_t *arrays[] = { x, y, out }; // Define the strides: int64_t strides[] = { 2, 1, 4 }; // Define the number of elements over which to iterate: int64_t shape[] = { 3 }; // Define a callback: static int32_t fcn( int32_t x, int32_t y ) { return x + y; } // Apply the callback: stdlib_strided_ks_i_as_ii_i( arrays, shape, strides, (void *)fcn ); ``` The function accepts the following arguments: - **arrays**: `[inout] uint8_t**` array whose first two elements are pointers to strided input arrays and whose last element is a pointer to a strided output array. - **shape**: `[in] int64_t*` array whose only element is the number of elements over which to iterate. - **strides**: `[in] int64_t*` array containing strides (in bytes) for each strided array. - **fcn**: `[in] void*` a `int32_t (*f)(int32_t, int32_t)` function to apply provided as a `void` pointer. ```c void stdlib_strided_ks_i_as_ii_i( uint8_t *arrays[], const int64_t *shape, const int64_t *strides, void *fcn ); ``` #### stdlib_strided_ks_k_as_kk_k( \*arrays\[], \*shape, \*strides, \*fcn ) Applies a binary callback to strided input array elements and assigns results to elements in a strided output array. ```c #include // Create underlying byte arrays: uint8_t x[] = { 0, 0, 0, 0, 0, 0 }; uint8_t y[] = { 0, 0, 0 }; uint8_t out[] = { 0, 0, 0, 0, 0, 0 }; // Define a pointer to an array containing pointers to strided arrays: uint8_t *arrays[] = { x, y, out }; // Define the strides: int64_t strides[] = { 2, 1, 2 }; // Define the number of elements over which to iterate: int64_t shape[] = { 3 }; // Define a callback: static int16_t fcn( int16_t x, int16_t y ) { return x + y; } // Apply the callback: stdlib_strided_ks_k_as_kk_k( arrays, shape, strides, (void *)fcn ); ``` The function accepts the following arguments: - **arrays**: `[inout] uint8_t**` array whose first two elements are pointers to strided input arrays and whose last element is a pointer to a strided output array. - **shape**: `[in] int64_t*` array whose only element is the number of elements over which to iterate. - **strides**: `[in] int64_t*` array containing strides (in bytes) for each strided array. - **fcn**: `[in] void*` a `int16_t (*f)(int16_t, int16_t)` function to apply provided as a `void` pointer. ```c void stdlib_strided_ks_k_as_kk_k( uint8_t *arrays[], const int64_t *shape, const int64_t *strides, void *fcn ); ``` #### stdlib_strided_ks_z_as_zz_z( \*arrays\[], \*shape, \*strides, \*fcn ) Applies a binary callback to strided input array elements and assigns results to elements in a strided output array. ```c #include "stdlib/complex/float64/ctor.h" #include // Create underlying byte arrays: uint8_t x[] = { 0, 0, 0, 0, 0, 0 }; uint8_t y[] = { 0, 0, 0 }; uint8_t out[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; // Define a pointer to an array containing pointers to strided arrays: uint8_t *arrays[] = { x, y, out }; // Define the strides: int64_t strides[] = { 2, 1, 16 }; // Define the number of elements over which to iterate: int64_t shape[] = { 3 }; // Define a callback: static stdlib_complex128_t fcn( stdlib_complex128_t x, stdlib_complex128_t y ) { // ... } // Apply the callback: stdlib_strided_ks_z_as_zz_z( arrays, shape, strides, (void *)fcn ); ``` The function accepts the following arguments: - **arrays**: `[inout] uint8_t**` array whose first two elements are pointers to strided input arrays and whose last element is a pointer to a strided output array. - **shape**: `[in] int64_t*` array whose only element is the number of elements over which to iterate. - **strides**: `[in] int64_t*` array containing strides (in bytes) for each strided array. - **fcn**: `[in] void*` a `stdlib_complex128_t (*f)(stdlib_complex128_t, stdlib_complex128_t)` function to apply provided as a `void` pointer. ```c void stdlib_strided_ks_z_as_zz_z( uint8_t *arrays[], const int64_t *shape, const int64_t *strides, void *fcn ); ``` #### stdlib_strided_kt_d_as_dd_d( \*arrays\[], \*shape, \*strides, \*fcn ) Applies a binary callback to strided input array elements and assigns results to elements in a strided output array. ```c #include // Create underlying byte arrays: uint8_t x[] = { 0, 0, 0, 0, 0, 0 }; uint8_t y[] = { 0, 0, 0, 0, 0, 0 }; uint8_t out[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; // Define a pointer to an array containing pointers to strided arrays: uint8_t *arrays[] = { x, y, out }; // Define the strides: int64_t strides[] = { 2, 2, 8 }; // Define the number of elements over which to iterate: int64_t shape[] = { 3 }; // Define a callback: static double fcn( double x, double y ) { return x + y; } // Apply the callback: stdlib_strided_kt_d_as_dd_d( arrays, shape, strides, (void *)fcn ); ``` The function accepts the following arguments: - **arrays**: `[inout] uint8_t**` array whose first two elements are pointers to strided input arrays and whose last element is a pointer to a strided output array. - **shape**: `[in] int64_t*` array whose only element is the number of elements over which to iterate. - **strides**: `[in] int64_t*` array containing strides (in bytes) for each strided array. - **fcn**: `[in] void*` a `double (*f)(double, double)` function to apply provided as a `void` pointer. ```c void stdlib_strided_kt_d_as_dd_d( uint8_t *arrays[], const int64_t *shape, const int64_t *strides, void *fcn ); ``` #### stdlib_strided_kt_i_as_ii_i( \*arrays\[], \*shape, \*strides, \*fcn ) Applies a binary callback to strided input array elements and assigns results to elements in a strided output array. ```c #include // Create underlying byte arrays: uint8_t x[] = { 0, 0, 0, 0, 0, 0 }; uint8_t y[] = { 0, 0, 0, 0, 0, 0 }; uint8_t out[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; // Define a pointer to an array containing pointers to strided arrays: uint8_t *arrays[] = { x, y, out }; // Define the strides: int64_t strides[] = { 2, 2, 4 }; // Define the number of elements over which to iterate: int64_t shape[] = { 3 }; // Define a callback: static int32_t fcn( int32_t x, int32_t y ) { return x + y; } // Apply the callback: stdlib_strided_kt_i_as_ii_i( arrays, shape, strides, (void *)fcn ); ``` The function accepts the following arguments: - **arrays**: `[inout] uint8_t**` array whose first two elements are pointers to strided input arrays and whose last element is a pointer to a strided output array. - **shape**: `[in] int64_t*` array whose only element is the number of elements over which to iterate. - **strides**: `[in] int64_t*` array containing strides (in bytes) for each strided array. - **fcn**: `[in] void*` a `int32_t (*f)(int32_t, int32_t)` function to apply provided as a `void` pointer. ```c void stdlib_strided_kt_i_as_ii_i( uint8_t *arrays[], const int64_t *shape, const int64_t *strides, void *fcn ); ``` #### stdlib_strided_kt_z_as_zz_z( \*arrays\[], \*shape, \*strides, \*fcn ) Applies a binary callback to strided input array elements and assigns results to elements in a strided output array. ```c #include "stdlib/complex/float64/ctor.h" #include // Create underlying byte arrays: uint8_t x[] = { 0, 0, 0, 0, 0, 0 }; uint8_t y[] = { 0, 0, 0, 0, 0, 0 }; uint8_t out[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; // Define a pointer to an array containing pointers to strided arrays: uint8_t *arrays[] = { x, y, out }; // Define the strides: int64_t strides[] = { 2, 2, 16 }; // Define the number of elements over which to iterate: int64_t shape[] = { 3 }; // Define a callback: static stdlib_complex128_t fcn( stdlib_complex128_t x, stdlib_complex128_t y ) { // ... } // Apply the callback: stdlib_strided_kt_z_as_zz_z( arrays, shape, strides, (void *)fcn ); ``` The function accepts the following arguments: - **arrays**: `[inout] uint8_t**` array whose first two elements are pointers to strided input arrays and whose last element is a pointer to a strided output array. - **shape**: `[in] int64_t*` array whose only element is the number of elements over which to iterate. - **strides**: `[in] int64_t*` array containing strides (in bytes) for each strided array. - **fcn**: `[in] void*` a `stdlib_complex128_t (*f)(stdlib_complex128_t, stdlib_complex128_t)` function to apply provided as a `void` pointer. ```c void stdlib_strided_kt_z_as_zz_z( uint8_t *arrays[], const int64_t *shape, const int64_t *strides, void *fcn ); ``` #### stdlib_strided_ku_d_as_dd_d( \*arrays\[], \*shape, \*strides, \*fcn ) Applies a binary callback to strided input array elements and assigns results to elements in a strided output array. ```c #include // Create underlying byte arrays: uint8_t x[] = { 0, 0, 0, 0, 0, 0 }; uint8_t y[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; uint8_t out[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; // Define a pointer to an array containing pointers to strided arrays: uint8_t *arrays[] = { x, y, out }; // Define the strides: int64_t strides[] = { 2, 4, 8 }; // Define the number of elements over which to iterate: int64_t shape[] = { 3 }; // Define a callback: static double fcn( double x, double y ) { return x + y; } // Apply the callback: stdlib_strided_ku_d_as_dd_d( arrays, shape, strides, (void *)fcn ); ``` The function accepts the following arguments: - **arrays**: `[inout] uint8_t**` array whose first two elements are pointers to strided input arrays and whose last element is a pointer to a strided output array. - **shape**: `[in] int64_t*` array whose only element is the number of elements over which to iterate. - **strides**: `[in] int64_t*` array containing strides (in bytes) for each strided array. - **fcn**: `[in] void*` a `double (*f)(double, double)` function to apply provided as a `void` pointer. ```c void stdlib_strided_ku_d_as_dd_d( uint8_t *arrays[], const int64_t *shape, const int64_t *strides, void *fcn ); ``` #### stdlib_strided_ku_z_as_zz_z( \*arrays\[], \*shape, \*strides, \*fcn ) Applies a binary callback to strided input array elements and assigns results to elements in a strided output array. ```c #include "stdlib/complex/float64/ctor.h" #include // Create underlying byte arrays: uint8_t x[] = { 0, 0, 0, 0, 0, 0 }; uint8_t y[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; uint8_t out[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; // Define a pointer to an array containing pointers to strided arrays: uint8_t *arrays[] = { x, y, out }; // Define the strides: int64_t strides[] = { 2, 4, 16 }; // Define the number of elements over which to iterate: int64_t shape[] = { 3 }; // Define a callback: static stdlib_complex128_t fcn( stdlib_complex128_t x, stdlib_complex128_t y ) { // ... } // Apply the callback: stdlib_strided_ku_z_as_zz_z( arrays, shape, strides, (void *)fcn ); ``` The function accepts the following arguments: - **arrays**: `[inout] uint8_t**` array whose first two elements are pointers to strided input arrays and whose last element is a pointer to a strided output array. - **shape**: `[in] int64_t*` array whose only element is the number of elements over which to iterate. - **strides**: `[in] int64_t*` array containing strides (in bytes) for each strided array. - **fcn**: `[in] void*` a `stdlib_complex128_t (*f)(stdlib_complex128_t, stdlib_complex128_t)` function to apply provided as a `void` pointer. ```c void stdlib_strided_ku_z_as_zz_z( uint8_t *arrays[], const int64_t *shape, const int64_t *strides, void *fcn ); ``` #### stdlib_strided_kz_z_as_zz_z( \*arrays\[], \*shape, \*strides, \*fcn ) Applies a binary callback to strided input array elements and assigns results to elements in a strided output array. ```c #include "stdlib/complex/float64/ctor.h" #include // Create underlying byte arrays: uint8_t x[] = { 0, 0, 0, 0, 0, 0 }; uint8_t y[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; uint8_t out[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; // Define a pointer to an array containing pointers to strided arrays: uint8_t *arrays[] = { x, y, out }; // Define the strides: int64_t strides[] = { 2, 16, 16 }; // Define the number of elements over which to iterate: int64_t shape[] = { 3 }; // Define a callback: static stdlib_complex128_t fcn( stdlib_complex128_t x, stdlib_complex128_t y ) { // ... } // Apply the callback: stdlib_strided_kz_z_as_zz_z( arrays, shape, strides, (void *)fcn ); ``` The function accepts the following arguments: - **arrays**: `[inout] uint8_t**` array whose first two elements are pointers to strided input arrays and whose last element is a pointer to a strided output array. - **shape**: `[in] int64_t*` array whose only element is the number of elements over which to iterate. - **strides**: `[in] int64_t*` array containing strides (in bytes) for each strided array. - **fcn**: `[in] void*` a `stdlib_complex128_t (*f)(stdlib_complex128_t, stdlib_complex128_t)` function to apply provided as a `void` pointer. ```c void stdlib_strided_kz_z_as_zz_z( uint8_t *arrays[], const int64_t *shape, const int64_t *strides, void *fcn ); ``` #### stdlib_strided_sb_c_as_cc_c( \*arrays\[], \*shape, \*strides, \*fcn ) Applies a binary callback to strided input array elements and assigns results to elements in a strided output array. ```c #include "stdlib/complex/float32/ctor.h" #include // Create underlying byte arrays: uint8_t x[] = { 0, 0, 0 }; uint8_t y[] = { 0, 0, 0 }; uint8_t out[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; // Define a pointer to an array containing pointers to strided arrays: uint8_t *arrays[] = { x, y, out }; // Define the strides: int64_t strides[] = { 1, 1, 8 }; // Define the number of elements over which to iterate: int64_t shape[] = { 3 }; // Define a callback: static stdlib_complex64_t fcn( stdlib_complex64_t x, stdlib_complex64_t y ) { // ... } // Apply the callback: stdlib_strided_sb_c_as_cc_c( arrays, shape, strides, (void *)fcn ); ``` The function accepts the following arguments: - **arrays**: `[inout] uint8_t**` array whose first two elements are pointers to strided input arrays and whose last element is a pointer to a strided output array. - **shape**: `[in] int64_t*` array whose only element is the number of elements over which to iterate. - **strides**: `[in] int64_t*` array containing strides (in bytes) for each strided array. - **fcn**: `[in] void*` a `stdlib_complex64_t (*f)(stdlib_complex64_t, stdlib_complex64_t)` function to apply provided as a `void` pointer. ```c void stdlib_strided_sb_c_as_cc_c( uint8_t *arrays[], const int64_t *shape, const int64_t *strides, void *fcn ); ``` #### stdlib_strided_sb_c_as_zz_z( \*arrays\[], \*shape, \*strides, \*fcn ) Applies a binary callback to strided input array elements and assigns results to elements in a strided output array. ```c #include "stdlib/complex/float64/ctor.h" #include // Create underlying byte arrays: uint8_t x[] = { 0, 0, 0 }; uint8_t y[] = { 0, 0, 0 }; uint8_t out[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; // Define a pointer to an array containing pointers to strided arrays: uint8_t *arrays[] = { x, y, out }; // Define the strides: int64_t strides[] = { 1, 1, 8 }; // Define the number of elements over which to iterate: int64_t shape[] = { 3 }; // Define a callback: static stdlib_complex128_t fcn( stdlib_complex128_t x, stdlib_complex128_t y ) { // ... } // Apply the callback: stdlib_strided_sb_c_as_zz_z( arrays, shape, strides, (void *)fcn ); ``` The function accepts the following arguments: - **arrays**: `[inout] uint8_t**` array whose first two elements are pointers to strided input arrays and whose last element is a pointer to a strided output array. - **shape**: `[in] int64_t*` array whose only element is the number of elements over which to iterate. - **strides**: `[in] int64_t*` array containing strides (in bytes) for each strided array. - **fcn**: `[in] void*` a `stdlib_complex128_t (*f)(stdlib_complex128_t, stdlib_complex128_t)` function to apply provided as a `void` pointer. ```c void stdlib_strided_sb_c_as_zz_z( uint8_t *arrays[], const int64_t *shape, const int64_t *strides, void *fcn ); ``` #### stdlib_strided_sb_d_as_dd_d( \*arrays\[], \*shape, \*strides, \*fcn ) Applies a binary callback to strided input array elements and assigns results to elements in a strided output array. ```c #include // Create underlying byte arrays: uint8_t x[] = { 0, 0, 0 }; uint8_t y[] = { 0, 0, 0 }; uint8_t out[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; // Define a pointer to an array containing pointers to strided arrays: uint8_t *arrays[] = { x, y, out }; // Define the strides: int64_t strides[] = { 1, 1, 8 }; // Define the number of elements over which to iterate: int64_t shape[] = { 3 }; // Define a callback: static double fcn( double x, double y ) { return x + y; } // Apply the callback: stdlib_strided_sb_d_as_dd_d( arrays, shape, strides, (void *)fcn ); ``` The function accepts the following arguments: - **arrays**: `[inout] uint8_t**` array whose first two elements are pointers to strided input arrays and whose last element is a pointer to a strided output array. - **shape**: `[in] int64_t*` array whose only element is the number of elements over which to iterate. - **strides**: `[in] int64_t*` array containing strides (in bytes) for each strided array. - **fcn**: `[in] void*` a `double (*f)(double, double)` function to apply provided as a `void` pointer. ```c void stdlib_strided_sb_d_as_dd_d( uint8_t *arrays[], const int64_t *shape, const int64_t *strides, void *fcn ); ``` #### stdlib_strided_sb_f_as_dd_d( \*arrays\[], \*shape, \*strides, \*fcn ) Applies a binary callback to strided input array elements and assigns results to elements in a strided output array. ```c #include // Create underlying byte arrays: uint8_t x[] = { 0, 0, 0 }; uint8_t y[] = { 0, 0, 0 }; uint8_t out[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; // Define a pointer to an array containing pointers to strided arrays: uint8_t *arrays[] = { x, y, out }; // Define the strides: int64_t strides[] = { 1, 1, 4 }; // Define the number of elements over which to iterate: int64_t shape[] = { 3 }; // Define a callback: static double fcn( double x, double y ) { return x + y; } // Apply the callback: stdlib_strided_sb_f_as_dd_d( arrays, shape, strides, (void *)fcn ); ``` The function accepts the following arguments: - **arrays**: `[inout] uint8_t**` array whose first two elements are pointers to strided input arrays and whose last element is a pointer to a strided output array. - **shape**: `[in] int64_t*` array whose only element is the number of elements over which to iterate. - **strides**: `[in] int64_t*` array containing strides (in bytes) for each strided array. - **fcn**: `[in] void*` a `double (*f)(double, double)` function to apply provided as a `void` pointer. ```c void stdlib_strided_sb_f_as_dd_d( uint8_t *arrays[], const int64_t *shape, const int64_t *strides, void *fcn ); ``` #### stdlib_strided_sb_f_as_ff_f( \*arrays\[], \*shape, \*strides, \*fcn ) Applies a binary callback to strided input array elements and assigns results to elements in a strided output array. ```c #include // Create underlying byte arrays: uint8_t x[] = { 0, 0, 0 }; uint8_t y[] = { 0, 0, 0 }; uint8_t out[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; // Define a pointer to an array containing pointers to strided arrays: uint8_t *arrays[] = { x, y, out }; // Define the strides: int64_t strides[] = { 1, 1, 4 }; // Define the number of elements over which to iterate: int64_t shape[] = { 3 }; // Define a callback: static float fcn( float x, float y ) { return x + y; } // Apply the callback: stdlib_strided_sb_f_as_ff_f( arrays, shape, strides, (void *)fcn ); ``` The function accepts the following arguments: - **arrays**: `[inout] uint8_t**` array whose first two elements are pointers to strided input arrays and whose last element is a pointer to a strided output array. - **shape**: `[in] int64_t*` array whose only element is the number of elements over which to iterate. - **strides**: `[in] int64_t*` array containing strides (in bytes) for each strided array. - **fcn**: `[in] void*` a `float (*f)(float, float)` function to apply provided as a `void` pointer. ```c void stdlib_strided_sb_f_as_ff_f( uint8_t *arrays[], const int64_t *shape, const int64_t *strides, void *fcn ); ``` #### stdlib_strided_sb_i_as_ii_i( \*arrays\[], \*shape, \*strides, \*fcn ) Applies a binary callback to strided input array elements and assigns results to elements in a strided output array. ```c #include // Create underlying byte arrays: uint8_t x[] = { 0, 0, 0 }; uint8_t y[] = { 0, 0, 0 }; uint8_t out[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; // Define a pointer to an array containing pointers to strided arrays: uint8_t *arrays[] = { x, y, out }; // Define the strides: int64_t strides[] = { 1, 1, 4 }; // Define the number of elements over which to iterate: int64_t shape[] = { 3 }; // Define a callback: static int32_t fcn( int32_t x, int32_t y ) { return x + y; } // Apply the callback: stdlib_strided_sb_i_as_ii_i( arrays, shape, strides, (void *)fcn ); ``` The function accepts the following arguments: - **arrays**: `[inout] uint8_t**` array whose first two elements are pointers to strided input arrays and whose last element is a pointer to a strided output array. - **shape**: `[in] int64_t*` array whose only element is the number of elements over which to iterate. - **strides**: `[in] int64_t*` array containing strides (in bytes) for each strided array. - **fcn**: `[in] void*` a `int32_t (*f)(int32_t, int32_t)` function to apply provided as a `void` pointer. ```c void stdlib_strided_sb_i_as_ii_i( uint8_t *arrays[], const int64_t *shape, const int64_t *strides, void *fcn ); ``` #### stdlib_strided_sb_k_as_kk_k( \*arrays\[], \*shape, \*strides, \*fcn ) Applies a binary callback to strided input array elements and assigns results to elements in a strided output array. ```c #include // Create underlying byte arrays: uint8_t x[] = { 0, 0, 0 }; uint8_t y[] = { 0, 0, 0 }; uint8_t out[] = { 0, 0, 0, 0, 0, 0 }; // Define a pointer to an array containing pointers to strided arrays: uint8_t *arrays[] = { x, y, out }; // Define the strides: int64_t strides[] = { 1, 1, 2 }; // Define the number of elements over which to iterate: int64_t shape[] = { 3 }; // Define a callback: static int16_t fcn( int16_t x, int16_t y ) { return x + y; } // Apply the callback: stdlib_strided_sb_k_as_kk_k( arrays, shape, strides, (void *)fcn ); ``` The function accepts the following arguments: - **arrays**: `[inout] uint8_t**` array whose first two elements are pointers to strided input arrays and whose last element is a pointer to a strided output array. - **shape**: `[in] int64_t*` array whose only element is the number of elements over which to iterate. - **strides**: `[in] int64_t*` array containing strides (in bytes) for each strided array. - **fcn**: `[in] void*` a `int16_t (*f)(int16_t, int16_t)` function to apply provided as a `void` pointer. ```c void stdlib_strided_sb_k_as_kk_k( uint8_t *arrays[], const int64_t *shape, const int64_t *strides, void *fcn ); ``` #### stdlib_strided_sb_z_as_zz_z( \*arrays\[], \*shape, \*strides, \*fcn ) Applies a binary callback to strided input array elements and assigns results to elements in a strided output array. ```c #include "stdlib/complex/float64/ctor.h" #include // Create underlying byte arrays: uint8_t x[] = { 0, 0, 0 }; uint8_t y[] = { 0, 0, 0 }; uint8_t out[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; // Define a pointer to an array containing pointers to strided arrays: uint8_t *arrays[] = { x, y, out }; // Define the strides: int64_t strides[] = { 1, 1, 16 }; // Define the number of elements over which to iterate: int64_t shape[] = { 3 }; // Define a callback: static stdlib_complex128_t fcn( stdlib_complex128_t x, stdlib_complex128_t y ) { // ... } // Apply the callback: stdlib_strided_sb_z_as_zz_z( arrays, shape, strides, (void *)fcn ); ``` The function accepts the following arguments: - **arrays**: `[inout] uint8_t**` array whose first two elements are pointers to strided input arrays and whose last element is a pointer to a strided output array. - **shape**: `[in] int64_t*` array whose only element is the number of elements over which to iterate. - **strides**: `[in] int64_t*` array containing strides (in bytes) for each strided array. - **fcn**: `[in] void*` a `stdlib_complex128_t (*f)(stdlib_complex128_t, stdlib_complex128_t)` function to apply provided as a `void` pointer. ```c void stdlib_strided_sb_z_as_zz_z( uint8_t *arrays[], const int64_t *shape, const int64_t *strides, void *fcn ); ``` #### stdlib_strided_sc_c_as_cc_c( \*arrays\[], \*shape, \*strides, \*fcn ) Applies a binary callback to strided input array elements and assigns results to elements in a strided output array. ```c #include "stdlib/complex/float32/ctor.h" #include // Create underlying byte arrays: uint8_t x[] = { 0, 0, 0 }; uint8_t y[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; uint8_t out[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; // Define a pointer to an array containing pointers to strided arrays: uint8_t *arrays[] = { x, y, out }; // Define the strides: int64_t strides[] = { 1, 8, 8 }; // Define the number of elements over which to iterate: int64_t shape[] = { 3 }; // Define a callback: static stdlib_complex64_t fcn( stdlib_complex64_t x, stdlib_complex64_t y ) { // ... } // Apply the callback: stdlib_strided_sc_c_as_cc_c( arrays, shape, strides, (void *)fcn ); ``` The function accepts the following arguments: - **arrays**: `[inout] uint8_t**` array whose first two elements are pointers to strided input arrays and whose last element is a pointer to a strided output array. - **shape**: `[in] int64_t*` array whose only element is the number of elements over which to iterate. - **strides**: `[in] int64_t*` array containing strides (in bytes) for each strided array. - **fcn**: `[in] void*` a `stdlib_complex64_t (*f)(stdlib_complex64_t, stdlib_complex64_t)` function to apply provided as a `void` pointer. ```c void stdlib_strided_sc_c_as_cc_c( uint8_t *arrays[], const int64_t *shape, const int64_t *strides, void *fcn ); ``` #### stdlib_strided_sc_c_as_zz_z( \*arrays\[], \*shape, \*strides, \*fcn ) Applies a binary callback to strided input array elements and assigns results to elements in a strided output array. ```c #include "stdlib/complex/float64/ctor.h" #include // Create underlying byte arrays: uint8_t x[] = { 0, 0, 0 }; uint8_t y[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; uint8_t out[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; // Define a pointer to an array containing pointers to strided arrays: uint8_t *arrays[] = { x, y, out }; // Define the strides: int64_t strides[] = { 1, 8, 8 }; // Define the number of elements over which to iterate: int64_t shape[] = { 3 }; // Define a callback: static stdlib_complex128_t fcn( stdlib_complex128_t x, stdlib_complex128_t y ) { // ... } // Apply the callback: stdlib_strided_sc_c_as_zz_z( arrays, shape, strides, (void *)fcn ); ``` The function accepts the following arguments: - **arrays**: `[inout] uint8_t**` array whose first two elements are pointers to strided input arrays and whose last element is a pointer to a strided output array. - **shape**: `[in] int64_t*` array whose only element is the number of elements over which to iterate. - **strides**: `[in] int64_t*` array containing strides (in bytes) for each strided array. - **fcn**: `[in] void*` a `stdlib_complex128_t (*f)(stdlib_complex128_t, stdlib_complex128_t)` function to apply provided as a `void` pointer. ```c void stdlib_strided_sc_c_as_zz_z( uint8_t *arrays[], const int64_t *shape, const int64_t *strides, void *fcn ); ``` #### stdlib_strided_sc_z_as_zz_z( \*arrays\[], \*shape, \*strides, \*fcn ) Applies a binary callback to strided input array elements and assigns results to elements in a strided output array. ```c #include "stdlib/complex/float64/ctor.h" #include // Create underlying byte arrays: uint8_t x[] = { 0, 0, 0 }; uint8_t y[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; uint8_t out[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; // Define a pointer to an array containing pointers to strided arrays: uint8_t *arrays[] = { x, y, out }; // Define the strides: int64_t strides[] = { 1, 8, 16 }; // Define the number of elements over which to iterate: int64_t shape[] = { 3 }; // Define a callback: static stdlib_complex128_t fcn( stdlib_complex128_t x, stdlib_complex128_t y ) { // ... } // Apply the callback: stdlib_strided_sc_z_as_zz_z( arrays, shape, strides, (void *)fcn ); ``` The function accepts the following arguments: - **arrays**: `[inout] uint8_t**` array whose first two elements are pointers to strided input arrays and whose last element is a pointer to a strided output array. - **shape**: `[in] int64_t*` array whose only element is the number of elements over which to iterate. - **strides**: `[in] int64_t*` array containing strides (in bytes) for each strided array. - **fcn**: `[in] void*` a `stdlib_complex128_t (*f)(stdlib_complex128_t, stdlib_complex128_t)` function to apply provided as a `void` pointer. ```c void stdlib_strided_sc_z_as_zz_z( uint8_t *arrays[], const int64_t *shape, const int64_t *strides, void *fcn ); ``` #### stdlib_strided_sd_d_as_dd_d( \*arrays\[], \*shape, \*strides, \*fcn ) Applies a binary callback to strided input array elements and assigns results to elements in a strided output array. ```c #include // Create underlying byte arrays: uint8_t x[] = { 0, 0, 0 }; uint8_t y[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; uint8_t out[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; // Define a pointer to an array containing pointers to strided arrays: uint8_t *arrays[] = { x, y, out }; // Define the strides: int64_t strides[] = { 1, 8, 8 }; // Define the number of elements over which to iterate: int64_t shape[] = { 3 }; // Define a callback: static double fcn( double x, double y ) { return x + y; } // Apply the callback: stdlib_strided_sd_d_as_dd_d( arrays, shape, strides, (void *)fcn ); ``` The function accepts the following arguments: - **arrays**: `[inout] uint8_t**` array whose first two elements are pointers to strided input arrays and whose last element is a pointer to a strided output array. - **shape**: `[in] int64_t*` array whose only element is the number of elements over which to iterate. - **strides**: `[in] int64_t*` array containing strides (in bytes) for each strided array. - **fcn**: `[in] void*` a `double (*f)(double, double)` function to apply provided as a `void` pointer. ```c void stdlib_strided_sd_d_as_dd_d( uint8_t *arrays[], const int64_t *shape, const int64_t *strides, void *fcn ); ``` #### stdlib_strided_sd_z_as_zz_z( \*arrays\[], \*shape, \*strides, \*fcn ) Applies a binary callback to strided input array elements and assigns results to elements in a strided output array. ```c #include "stdlib/complex/float64/ctor.h" #include // Create underlying byte arrays: uint8_t x[] = { 0, 0, 0 }; uint8_t y[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; uint8_t out[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; // Define a pointer to an array containing pointers to strided arrays: uint8_t *arrays[] = { x, y, out }; // Define the strides: int64_t strides[] = { 1, 8, 16 }; // Define the number of elements over which to iterate: int64_t shape[] = { 3 }; // Define a callback: static stdlib_complex128_t fcn( stdlib_complex128_t x, stdlib_complex128_t y ) { // ... } // Apply the callback: stdlib_strided_sd_z_as_zz_z( arrays, shape, strides, (void *)fcn ); ``` The function accepts the following arguments: - **arrays**: `[inout] uint8_t**` array whose first two elements are pointers to strided input arrays and whose last element is a pointer to a strided output array. - **shape**: `[in] int64_t*` array whose only element is the number of elements over which to iterate. - **strides**: `[in] int64_t*` array containing strides (in bytes) for each strided array. - **fcn**: `[in] void*` a `stdlib_complex128_t (*f)(stdlib_complex128_t, stdlib_complex128_t)` function to apply provided as a `void` pointer. ```c void stdlib_strided_sd_z_as_zz_z( uint8_t *arrays[], const int64_t *shape, const int64_t *strides, void *fcn ); ``` #### stdlib_strided_sf_c_as_cc_c( \*arrays\[], \*shape, \*strides, \*fcn ) Applies a binary callback to strided input array elements and assigns results to elements in a strided output array. ```c #include "stdlib/complex/float32/ctor.h" #include // Create underlying byte arrays: uint8_t x[] = { 0, 0, 0 }; uint8_t y[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; uint8_t out[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; // Define a pointer to an array containing pointers to strided arrays: uint8_t *arrays[] = { x, y, out }; // Define the strides: int64_t strides[] = { 1, 4, 8 }; // Define the number of elements over which to iterate: int64_t shape[] = { 3 }; // Define a callback: static stdlib_complex64_t fcn( stdlib_complex64_t x, stdlib_complex64_t y ) { // ... } // Apply the callback: stdlib_strided_sf_c_as_cc_c( arrays, shape, strides, (void *)fcn ); ``` The function accepts the following arguments: - **arrays**: `[inout] uint8_t**` array whose first two elements are pointers to strided input arrays and whose last element is a pointer to a strided output array. - **shape**: `[in] int64_t*` array whose only element is the number of elements over which to iterate. - **strides**: `[in] int64_t*` array containing strides (in bytes) for each strided array. - **fcn**: `[in] void*` a `stdlib_complex64_t (*f)(stdlib_complex64_t, stdlib_complex64_t)` function to apply provided as a `void` pointer. ```c void stdlib_strided_sf_c_as_cc_c( uint8_t *arrays[], const int64_t *shape, const int64_t *strides, void *fcn ); ``` #### stdlib_strided_sf_c_as_zz_z( \*arrays\[], \*shape, \*strides, \*fcn ) Applies a binary callback to strided input array elements and assigns results to elements in a strided output array. ```c #include "stdlib/complex/float64/ctor.h" #include // Create underlying byte arrays: uint8_t x[] = { 0, 0, 0 }; uint8_t y[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; uint8_t out[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; // Define a pointer to an array containing pointers to strided arrays: uint8_t *arrays[] = { x, y, out }; // Define the strides: int64_t strides[] = { 1, 4, 8 }; // Define the number of elements over which to iterate: int64_t shape[] = { 3 }; // Define a callback: static stdlib_complex128_t fcn( stdlib_complex128_t x, stdlib_complex128_t y ) { // ... } // Apply the callback: stdlib_strided_sf_c_as_zz_z( arrays, shape, strides, (void *)fcn ); ``` The function accepts the following arguments: - **arrays**: `[inout] uint8_t**` array whose first two elements are pointers to strided input arrays and whose last element is a pointer to a strided output array. - **shape**: `[in] int64_t*` array whose only element is the number of elements over which to iterate. - **strides**: `[in] int64_t*` array containing strides (in bytes) for each strided array. - **fcn**: `[in] void*` a `stdlib_complex128_t (*f)(stdlib_complex128_t, stdlib_complex128_t)` function to apply provided as a `void` pointer. ```c void stdlib_strided_sf_c_as_zz_z( uint8_t *arrays[], const int64_t *shape, const int64_t *strides, void *fcn ); ``` #### stdlib_strided_sf_d_as_dd_d( \*arrays\[], \*shape, \*strides, \*fcn ) Applies a binary callback to strided input array elements and assigns results to elements in a strided output array. ```c #include // Create underlying byte arrays: uint8_t x[] = { 0, 0, 0 }; uint8_t y[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; uint8_t out[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; // Define a pointer to an array containing pointers to strided arrays: uint8_t *arrays[] = { x, y, out }; // Define the strides: int64_t strides[] = { 1, 4, 8 }; // Define the number of elements over which to iterate: int64_t shape[] = { 3 }; // Define a callback: static double fcn( double x, double y ) { return x + y; } // Apply the callback: stdlib_strided_sf_d_as_dd_d( arrays, shape, strides, (void *)fcn ); ``` The function accepts the following arguments: - **arrays**: `[inout] uint8_t**` array whose first two elements are pointers to strided input arrays and whose last element is a pointer to a strided output array. - **shape**: `[in] int64_t*` array whose only element is the number of elements over which to iterate. - **strides**: `[in] int64_t*` array containing strides (in bytes) for each strided array. - **fcn**: `[in] void*` a `double (*f)(double, double)` function to apply provided as a `void` pointer. ```c void stdlib_strided_sf_d_as_dd_d( uint8_t *arrays[], const int64_t *shape, const int64_t *strides, void *fcn ); ``` #### stdlib_strided_sf_f_as_dd_d( \*arrays\[], \*shape, \*strides, \*fcn ) Applies a binary callback to strided input array elements and assigns results to elements in a strided output array. ```c #include // Create underlying byte arrays: uint8_t x[] = { 0, 0, 0 }; uint8_t y[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; uint8_t out[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; // Define a pointer to an array containing pointers to strided arrays: uint8_t *arrays[] = { x, y, out }; // Define the strides: int64_t strides[] = { 1, 4, 4 }; // Define the number of elements over which to iterate: int64_t shape[] = { 3 }; // Define a callback: static double fcn( double x, double y ) { return x + y; } // Apply the callback: stdlib_strided_sf_f_as_dd_d( arrays, shape, strides, (void *)fcn ); ``` The function accepts the following arguments: - **arrays**: `[inout] uint8_t**` array whose first two elements are pointers to strided input arrays and whose last element is a pointer to a strided output array. - **shape**: `[in] int64_t*` array whose only element is the number of elements over which to iterate. - **strides**: `[in] int64_t*` array containing strides (in bytes) for each strided array. - **fcn**: `[in] void*` a `double (*f)(double, double)` function to apply provided as a `void` pointer. ```c void stdlib_strided_sf_f_as_dd_d( uint8_t *arrays[], const int64_t *shape, const int64_t *strides, void *fcn ); ``` #### stdlib_strided_sf_f_as_ff_f( \*arrays\[], \*shape, \*strides, \*fcn ) Applies a binary callback to strided input array elements and assigns results to elements in a strided output array. ```c #include // Create underlying byte arrays: uint8_t x[] = { 0, 0, 0 }; uint8_t y[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; uint8_t out[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; // Define a pointer to an array containing pointers to strided arrays: uint8_t *arrays[] = { x, y, out }; // Define the strides: int64_t strides[] = { 1, 4, 4 }; // Define the number of elements over which to iterate: int64_t shape[] = { 3 }; // Define a callback: static float fcn( float x, float y ) { return x + y; } // Apply the callback: stdlib_strided_sf_f_as_ff_f( arrays, shape, strides, (void *)fcn ); ``` The function accepts the following arguments: - **arrays**: `[inout] uint8_t**` array whose first two elements are pointers to strided input arrays and whose last element is a pointer to a strided output array. - **shape**: `[in] int64_t*` array whose only element is the number of elements over which to iterate. - **strides**: `[in] int64_t*` array containing strides (in bytes) for each strided array. - **fcn**: `[in] void*` a `float (*f)(float, float)` function to apply provided as a `void` pointer. ```c void stdlib_strided_sf_f_as_ff_f( uint8_t *arrays[], const int64_t *shape, const int64_t *strides, void *fcn ); ``` #### stdlib_strided_sf_z_as_zz_z( \*arrays\[], \*shape, \*strides, \*fcn ) Applies a binary callback to strided input array elements and assigns results to elements in a strided output array. ```c #include "stdlib/complex/float64/ctor.h" #include // Create underlying byte arrays: uint8_t x[] = { 0, 0, 0 }; uint8_t y[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; uint8_t out[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; // Define a pointer to an array containing pointers to strided arrays: uint8_t *arrays[] = { x, y, out }; // Define the strides: int64_t strides[] = { 1, 4, 16 }; // Define the number of elements over which to iterate: int64_t shape[] = { 3 }; // Define a callback: static stdlib_complex128_t fcn( stdlib_complex128_t x, stdlib_complex128_t y ) { // ... } // Apply the callback: stdlib_strided_sf_z_as_zz_z( arrays, shape, strides, (void *)fcn ); ``` The function accepts the following arguments: - **arrays**: `[inout] uint8_t**` array whose first two elements are pointers to strided input arrays and whose last element is a pointer to a strided output array. - **shape**: `[in] int64_t*` array whose only element is the number of elements over which to iterate. - **strides**: `[in] int64_t*` array containing strides (in bytes) for each strided array. - **fcn**: `[in] void*` a `stdlib_complex128_t (*f)(stdlib_complex128_t, stdlib_complex128_t)` function to apply provided as a `void` pointer. ```c void stdlib_strided_sf_z_as_zz_z( uint8_t *arrays[], const int64_t *shape, const int64_t *strides, void *fcn ); ``` #### stdlib_strided_si_d_as_dd_d( \*arrays\[], \*shape, \*strides, \*fcn ) Applies a binary callback to strided input array elements and assigns results to elements in a strided output array. ```c #include // Create underlying byte arrays: uint8_t x[] = { 0, 0, 0 }; uint8_t y[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; uint8_t out[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; // Define a pointer to an array containing pointers to strided arrays: uint8_t *arrays[] = { x, y, out }; // Define the strides: int64_t strides[] = { 1, 4, 8 }; // Define the number of elements over which to iterate: int64_t shape[] = { 3 }; // Define a callback: static double fcn( double x, double y ) { return x + y; } // Apply the callback: stdlib_strided_si_d_as_dd_d( arrays, shape, strides, (void *)fcn ); ``` The function accepts the following arguments: - **arrays**: `[inout] uint8_t**` array whose first two elements are pointers to strided input arrays and whose last element is a pointer to a strided output array. - **shape**: `[in] int64_t*` array whose only element is the number of elements over which to iterate. - **strides**: `[in] int64_t*` array containing strides (in bytes) for each strided array. - **fcn**: `[in] void*` a `double (*f)(double, double)` function to apply provided as a `void` pointer. ```c void stdlib_strided_si_d_as_dd_d( uint8_t *arrays[], const int64_t *shape, const int64_t *strides, void *fcn ); ``` #### stdlib_strided_si_i_as_ii_i( \*arrays\[], \*shape, \*strides, \*fcn ) Applies a binary callback to strided input array elements and assigns results to elements in a strided output array. ```c #include // Create underlying byte arrays: uint8_t x[] = { 0, 0, 0 }; uint8_t y[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; uint8_t out[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; // Define a pointer to an array containing pointers to strided arrays: uint8_t *arrays[] = { x, y, out }; // Define the strides: int64_t strides[] = { 1, 4, 4 }; // Define the number of elements over which to iterate: int64_t shape[] = { 3 }; // Define a callback: static int32_t fcn( int32_t x, int32_t y ) { return x + y; } // Apply the callback: stdlib_strided_si_i_as_ii_i( arrays, shape, strides, (void *)fcn ); ``` The function accepts the following arguments: - **arrays**: `[inout] uint8_t**` array whose first two elements are pointers to strided input arrays and whose last element is a pointer to a strided output array. - **shape**: `[in] int64_t*` array whose only element is the number of elements over which to iterate. - **strides**: `[in] int64_t*` array containing strides (in bytes) for each strided array. - **fcn**: `[in] void*` a `int32_t (*f)(int32_t, int32_t)` function to apply provided as a `void` pointer. ```c void stdlib_strided_si_i_as_ii_i( uint8_t *arrays[], const int64_t *shape, const int64_t *strides, void *fcn ); ``` #### stdlib_strided_si_z_as_zz_z( \*arrays\[], \*shape, \*strides, \*fcn ) Applies a binary callback to strided input array elements and assigns results to elements in a strided output array. ```c #include "stdlib/complex/float64/ctor.h" #include // Create underlying byte arrays: uint8_t x[] = { 0, 0, 0 }; uint8_t y[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; uint8_t out[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; // Define a pointer to an array containing pointers to strided arrays: uint8_t *arrays[] = { x, y, out }; // Define the strides: int64_t strides[] = { 1, 4, 16 }; // Define the number of elements over which to iterate: int64_t shape[] = { 3 }; // Define a callback: static stdlib_complex128_t fcn( stdlib_complex128_t x, stdlib_complex128_t y ) { // ... } // Apply the callback: stdlib_strided_si_z_as_zz_z( arrays, shape, strides, (void *)fcn ); ``` The function accepts the following arguments: - **arrays**: `[inout] uint8_t**` array whose first two elements are pointers to strided input arrays and whose last element is a pointer to a strided output array. - **shape**: `[in] int64_t*` array whose only element is the number of elements over which to iterate. - **strides**: `[in] int64_t*` array containing strides (in bytes) for each strided array. - **fcn**: `[in] void*` a `stdlib_complex128_t (*f)(stdlib_complex128_t, stdlib_complex128_t)` function to apply provided as a `void` pointer. ```c void stdlib_strided_si_z_as_zz_z( uint8_t *arrays[], const int64_t *shape, const int64_t *strides, void *fcn ); ``` #### stdlib_strided_sk_c_as_cc_c( \*arrays\[], \*shape, \*strides, \*fcn ) Applies a binary callback to strided input array elements and assigns results to elements in a strided output array. ```c #include "stdlib/complex/float32/ctor.h" #include // Create underlying byte arrays: uint8_t x[] = { 0, 0, 0 }; uint8_t y[] = { 0, 0, 0, 0, 0, 0 }; uint8_t out[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; // Define a pointer to an array containing pointers to strided arrays: uint8_t *arrays[] = { x, y, out }; // Define the strides: int64_t strides[] = { 1, 2, 8 }; // Define the number of elements over which to iterate: int64_t shape[] = { 3 }; // Define a callback: static stdlib_complex64_t fcn( stdlib_complex64_t x, stdlib_complex64_t y ) { // ... } // Apply the callback: stdlib_strided_sk_c_as_cc_c( arrays, shape, strides, (void *)fcn ); ``` The function accepts the following arguments: - **arrays**: `[inout] uint8_t**` array whose first two elements are pointers to strided input arrays and whose last element is a pointer to a strided output array. - **shape**: `[in] int64_t*` array whose only element is the number of elements over which to iterate. - **strides**: `[in] int64_t*` array containing strides (in bytes) for each strided array. - **fcn**: `[in] void*` a `stdlib_complex64_t (*f)(stdlib_complex64_t, stdlib_complex64_t)` function to apply provided as a `void` pointer. ```c void stdlib_strided_sk_c_as_cc_c( uint8_t *arrays[], const int64_t *shape, const int64_t *strides, void *fcn ); ``` #### stdlib_strided_sk_c_as_zz_z( \*arrays\[], \*shape, \*strides, \*fcn ) Applies a binary callback to strided input array elements and assigns results to elements in a strided output array. ```c #include "stdlib/complex/float64/ctor.h" #include // Create underlying byte arrays: uint8_t x[] = { 0, 0, 0 }; uint8_t y[] = { 0, 0, 0, 0, 0, 0 }; uint8_t out[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; // Define a pointer to an array containing pointers to strided arrays: uint8_t *arrays[] = { x, y, out }; // Define the strides: int64_t strides[] = { 1, 2, 8 }; // Define the number of elements over which to iterate: int64_t shape[] = { 3 }; // Define a callback: static stdlib_complex128_t fcn( stdlib_complex128_t x, stdlib_complex128_t y ) { // ... } // Apply the callback: stdlib_strided_sk_c_as_zz_z( arrays, shape, strides, (void *)fcn ); ``` The function accepts the following arguments: - **arrays**: `[inout] uint8_t**` array whose first two elements are pointers to strided input arrays and whose last element is a pointer to a strided output array. - **shape**: `[in] int64_t*` array whose only element is the number of elements over which to iterate. - **strides**: `[in] int64_t*` array containing strides (in bytes) for each strided array. - **fcn**: `[in] void*` a `stdlib_complex128_t (*f)(stdlib_complex128_t, stdlib_complex128_t)` function to apply provided as a `void` pointer. ```c void stdlib_strided_sk_c_as_zz_z( uint8_t *arrays[], const int64_t *shape, const int64_t *strides, void *fcn ); ``` #### stdlib_strided_sk_d_as_dd_d( \*arrays\[], \*shape, \*strides, \*fcn ) Applies a binary callback to strided input array elements and assigns results to elements in a strided output array. ```c #include // Create underlying byte arrays: uint8_t x[] = { 0, 0, 0 }; uint8_t y[] = { 0, 0, 0, 0, 0, 0 }; uint8_t out[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; // Define a pointer to an array containing pointers to strided arrays: uint8_t *arrays[] = { x, y, out }; // Define the strides: int64_t strides[] = { 1, 2, 8 }; // Define the number of elements over which to iterate: int64_t shape[] = { 3 }; // Define a callback: static double fcn( double x, double y ) { return x + y; } // Apply the callback: stdlib_strided_sk_d_as_dd_d( arrays, shape, strides, (void *)fcn ); ``` The function accepts the following arguments: - **arrays**: `[inout] uint8_t**` array whose first two elements are pointers to strided input arrays and whose last element is a pointer to a strided output array. - **shape**: `[in] int64_t*` array whose only element is the number of elements over which to iterate. - **strides**: `[in] int64_t*` array containing strides (in bytes) for each strided array. - **fcn**: `[in] void*` a `double (*f)(double, double)` function to apply provided as a `void` pointer. ```c void stdlib_strided_sk_d_as_dd_d( uint8_t *arrays[], const int64_t *shape, const int64_t *strides, void *fcn ); ``` #### stdlib_strided_sk_f_as_dd_d( \*arrays\[], \*shape, \*strides, \*fcn ) Applies a binary callback to strided input array elements and assigns results to elements in a strided output array. ```c #include // Create underlying byte arrays: uint8_t x[] = { 0, 0, 0 }; uint8_t y[] = { 0, 0, 0, 0, 0, 0 }; uint8_t out[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; // Define a pointer to an array containing pointers to strided arrays: uint8_t *arrays[] = { x, y, out }; // Define the strides: int64_t strides[] = { 1, 2, 4 }; // Define the number of elements over which to iterate: int64_t shape[] = { 3 }; // Define a callback: static double fcn( double x, double y ) { return x + y; } // Apply the callback: stdlib_strided_sk_f_as_dd_d( arrays, shape, strides, (void *)fcn ); ``` The function accepts the following arguments: - **arrays**: `[inout] uint8_t**` array whose first two elements are pointers to strided input arrays and whose last element is a pointer to a strided output array. - **shape**: `[in] int64_t*` array whose only element is the number of elements over which to iterate. - **strides**: `[in] int64_t*` array containing strides (in bytes) for each strided array. - **fcn**: `[in] void*` a `double (*f)(double, double)` function to apply provided as a `void` pointer. ```c void stdlib_strided_sk_f_as_dd_d( uint8_t *arrays[], const int64_t *shape, const int64_t *strides, void *fcn ); ``` #### stdlib_strided_sk_f_as_ff_f( \*arrays\[], \*shape, \*strides, \*fcn ) Applies a binary callback to strided input array elements and assigns results to elements in a strided output array. ```c #include // Create underlying byte arrays: uint8_t x[] = { 0, 0, 0 }; uint8_t y[] = { 0, 0, 0, 0, 0, 0 }; uint8_t out[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; // Define a pointer to an array containing pointers to strided arrays: uint8_t *arrays[] = { x, y, out }; // Define the strides: int64_t strides[] = { 1, 2, 4 }; // Define the number of elements over which to iterate: int64_t shape[] = { 3 }; // Define a callback: static float fcn( float x, float y ) { return x + y; } // Apply the callback: stdlib_strided_sk_f_as_ff_f( arrays, shape, strides, (void *)fcn ); ``` The function accepts the following arguments: - **arrays**: `[inout] uint8_t**` array whose first two elements are pointers to strided input arrays and whose last element is a pointer to a strided output array. - **shape**: `[in] int64_t*` array whose only element is the number of elements over which to iterate. - **strides**: `[in] int64_t*` array containing strides (in bytes) for each strided array. - **fcn**: `[in] void*` a `float (*f)(float, float)` function to apply provided as a `void` pointer. ```c void stdlib_strided_sk_f_as_ff_f( uint8_t *arrays[], const int64_t *shape, const int64_t *strides, void *fcn ); ``` #### stdlib_strided_sk_i_as_ii_i( \*arrays\[], \*shape, \*strides, \*fcn ) Applies a binary callback to strided input array elements and assigns results to elements in a strided output array. ```c #include // Create underlying byte arrays: uint8_t x[] = { 0, 0, 0 }; uint8_t y[] = { 0, 0, 0, 0, 0, 0 }; uint8_t out[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; // Define a pointer to an array containing pointers to strided arrays: uint8_t *arrays[] = { x, y, out }; // Define the strides: int64_t strides[] = { 1, 2, 4 }; // Define the number of elements over which to iterate: int64_t shape[] = { 3 }; // Define a callback: static int32_t fcn( int32_t x, int32_t y ) { return x + y; } // Apply the callback: stdlib_strided_sk_i_as_ii_i( arrays, shape, strides, (void *)fcn ); ``` The function accepts the following arguments: - **arrays**: `[inout] uint8_t**` array whose first two elements are pointers to strided input arrays and whose last element is a pointer to a strided output array. - **shape**: `[in] int64_t*` array whose only element is the number of elements over which to iterate. - **strides**: `[in] int64_t*` array containing strides (in bytes) for each strided array. - **fcn**: `[in] void*` a `int32_t (*f)(int32_t, int32_t)` function to apply provided as a `void` pointer. ```c void stdlib_strided_sk_i_as_ii_i( uint8_t *arrays[], const int64_t *shape, const int64_t *strides, void *fcn ); ``` #### stdlib_strided_sk_k_as_kk_k( \*arrays\[], \*shape, \*strides, \*fcn ) Applies a binary callback to strided input array elements and assigns results to elements in a strided output array. ```c #include // Create underlying byte arrays: uint8_t x[] = { 0, 0, 0 }; uint8_t y[] = { 0, 0, 0, 0, 0, 0 }; uint8_t out[] = { 0, 0, 0, 0, 0, 0 }; // Define a pointer to an array containing pointers to strided arrays: uint8_t *arrays[] = { x, y, out }; // Define the strides: int64_t strides[] = { 1, 2, 2 }; // Define the number of elements over which to iterate: int64_t shape[] = { 3 }; // Define a callback: static int16_t fcn( int16_t x, int16_t y ) { return x + y; } // Apply the callback: stdlib_strided_sk_k_as_kk_k( arrays, shape, strides, (void *)fcn ); ``` The function accepts the following arguments: - **arrays**: `[inout] uint8_t**` array whose first two elements are pointers to strided input arrays and whose last element is a pointer to a strided output array. - **shape**: `[in] int64_t*` array whose only element is the number of elements over which to iterate. - **strides**: `[in] int64_t*` array containing strides (in bytes) for each strided array. - **fcn**: `[in] void*` a `int16_t (*f)(int16_t, int16_t)` function to apply provided as a `void` pointer. ```c void stdlib_strided_sk_k_as_kk_k( uint8_t *arrays[], const int64_t *shape, const int64_t *strides, void *fcn ); ``` #### stdlib_strided_sk_z_as_zz_z( \*arrays\[], \*shape, \*strides, \*fcn ) Applies a binary callback to strided input array elements and assigns results to elements in a strided output array. ```c #include "stdlib/complex/float64/ctor.h" #include // Create underlying byte arrays: uint8_t x[] = { 0, 0, 0 }; uint8_t y[] = { 0, 0, 0, 0, 0, 0 }; uint8_t out[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; // Define a pointer to an array containing pointers to strided arrays: uint8_t *arrays[] = { x, y, out }; // Define the strides: int64_t strides[] = { 1, 2, 16 }; // Define the number of elements over which to iterate: int64_t shape[] = { 3 }; // Define a callback: static stdlib_complex128_t fcn( stdlib_complex128_t x, stdlib_complex128_t y ) { // ... } // Apply the callback: stdlib_strided_sk_z_as_zz_z( arrays, shape, strides, (void *)fcn ); ``` The function accepts the following arguments: - **arrays**: `[inout] uint8_t**` array whose first two elements are pointers to strided input arrays and whose last element is a pointer to a strided output array. - **shape**: `[in] int64_t*` array whose only element is the number of elements over which to iterate. - **strides**: `[in] int64_t*` array containing strides (in bytes) for each strided array. - **fcn**: `[in] void*` a `stdlib_complex128_t (*f)(stdlib_complex128_t, stdlib_complex128_t)` function to apply provided as a `void` pointer. ```c void stdlib_strided_sk_z_as_zz_z( uint8_t *arrays[], const int64_t *shape, const int64_t *strides, void *fcn ); ``` #### stdlib_strided_ss_c( \*arrays\[], \*shape, \*strides, \*fcn ) Applies a binary callback to strided input array elements and assigns results to elements in a strided output array. ```c #include // Create underlying byte arrays: uint8_t x[] = { 0, 0, 0 }; uint8_t y[] = { 0, 0, 0 }; uint8_t out[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; // Define a pointer to an array containing pointers to strided arrays: uint8_t *arrays[] = { x, y, out }; // Define the strides: int64_t strides[] = { 1, 1, 8 }; // Define the number of elements over which to iterate: int64_t shape[] = { 3 }; // Define a callback: static int8_t fcn( int8_t x, int8_t y ) { return x + y; } // Apply the callback: stdlib_strided_ss_c( arrays, shape, strides, (void *)fcn ); ``` The function accepts the following arguments: - **arrays**: `[inout] uint8_t**` array whose first two elements are pointers to strided input arrays and whose last element is a pointer to a strided output array. - **shape**: `[in] int64_t*` array whose only element is the number of elements over which to iterate. - **strides**: `[in] int64_t*` array containing strides (in bytes) for each strided array. - **fcn**: `[in] void*` a `int8_t (*f)(int8_t, int8_t)` function to apply provided as a `void` pointer. ```c void stdlib_strided_ss_c( uint8_t *arrays[], const int64_t *shape, const int64_t *strides, void *fcn ); ``` #### stdlib_strided_ss_c_as_cc_c( \*arrays\[], \*shape, \*strides, \*fcn ) Applies a binary callback to strided input array elements and assigns results to elements in a strided output array. ```c #include "stdlib/complex/float32/ctor.h" #include // Create underlying byte arrays: uint8_t x[] = { 0, 0, 0 }; uint8_t y[] = { 0, 0, 0 }; uint8_t out[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; // Define a pointer to an array containing pointers to strided arrays: uint8_t *arrays[] = { x, y, out }; // Define the strides: int64_t strides[] = { 1, 1, 8 }; // Define the number of elements over which to iterate: int64_t shape[] = { 3 }; // Define a callback: static stdlib_complex64_t fcn( stdlib_complex64_t x, stdlib_complex64_t y ) { // ... } // Apply the callback: stdlib_strided_ss_c_as_cc_c( arrays, shape, strides, (void *)fcn ); ``` The function accepts the following arguments: - **arrays**: `[inout] uint8_t**` array whose first two elements are pointers to strided input arrays and whose last element is a pointer to a strided output array. - **shape**: `[in] int64_t*` array whose only element is the number of elements over which to iterate. - **strides**: `[in] int64_t*` array containing strides (in bytes) for each strided array. - **fcn**: `[in] void*` a `stdlib_complex64_t (*f)(stdlib_complex64_t, stdlib_complex64_t)` function to apply provided as a `void` pointer. ```c void stdlib_strided_ss_c_as_cc_c( uint8_t *arrays[], const int64_t *shape, const int64_t *strides, void *fcn ); ``` #### stdlib_strided_ss_c_as_zz_z( \*arrays\[], \*shape, \*strides, \*fcn ) Applies a binary callback to strided input array elements and assigns results to elements in a strided output array. ```c #include "stdlib/complex/float64/ctor.h" #include // Create underlying byte arrays: uint8_t x[] = { 0, 0, 0 }; uint8_t y[] = { 0, 0, 0 }; uint8_t out[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; // Define a pointer to an array containing pointers to strided arrays: uint8_t *arrays[] = { x, y, out }; // Define the strides: int64_t strides[] = { 1, 1, 8 }; // Define the number of elements over which to iterate: int64_t shape[] = { 3 }; // Define a callback: static stdlib_complex128_t fcn( stdlib_complex128_t x, stdlib_complex128_t y ) { // ... } // Apply the callback: stdlib_strided_ss_c_as_zz_z( arrays, shape, strides, (void *)fcn ); ``` The function accepts the following arguments: - **arrays**: `[inout] uint8_t**` array whose first two elements are pointers to strided input arrays and whose last element is a pointer to a strided output array. - **shape**: `[in] int64_t*` array whose only element is the number of elements over which to iterate. - **strides**: `[in] int64_t*` array containing strides (in bytes) for each strided array. - **fcn**: `[in] void*` a `stdlib_complex128_t (*f)(stdlib_complex128_t, stdlib_complex128_t)` function to apply provided as a `void` pointer. ```c void stdlib_strided_ss_c_as_zz_z( uint8_t *arrays[], const int64_t *shape, const int64_t *strides, void *fcn ); ``` #### stdlib_strided_ss_d( \*arrays\[], \*shape, \*strides, \*fcn ) Applies a binary callback to strided input array elements and assigns results to elements in a strided output array. ```c #include // Create underlying byte arrays: uint8_t x[] = { 0, 0, 0 }; uint8_t y[] = { 0, 0, 0 }; uint8_t out[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; // Define a pointer to an array containing pointers to strided arrays: uint8_t *arrays[] = { x, y, out }; // Define the strides: int64_t strides[] = { 1, 1, 8 }; // Define the number of elements over which to iterate: int64_t shape[] = { 3 }; // Define a callback: static int8_t fcn( int8_t x, int8_t y ) { return x + y; } // Apply the callback: stdlib_strided_ss_d( arrays, shape, strides, (void *)fcn ); ``` The function accepts the following arguments: - **arrays**: `[inout] uint8_t**` array whose first two elements are pointers to strided input arrays and whose last element is a pointer to a strided output array. - **shape**: `[in] int64_t*` array whose only element is the number of elements over which to iterate. - **strides**: `[in] int64_t*` array containing strides (in bytes) for each strided array. - **fcn**: `[in] void*` a `int8_t (*f)(int8_t, int8_t)` function to apply provided as a `void` pointer. ```c void stdlib_strided_ss_d( uint8_t *arrays[], const int64_t *shape, const int64_t *strides, void *fcn ); ``` #### stdlib_strided_ss_d_as_dd_d( \*arrays\[], \*shape, \*strides, \*fcn ) Applies a binary callback to strided input array elements and assigns results to elements in a strided output array. ```c #include // Create underlying byte arrays: uint8_t x[] = { 0, 0, 0 }; uint8_t y[] = { 0, 0, 0 }; uint8_t out[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; // Define a pointer to an array containing pointers to strided arrays: uint8_t *arrays[] = { x, y, out }; // Define the strides: int64_t strides[] = { 1, 1, 8 }; // Define the number of elements over which to iterate: int64_t shape[] = { 3 }; // Define a callback: static double fcn( double x, double y ) { return x + y; } // Apply the callback: stdlib_strided_ss_d_as_dd_d( arrays, shape, strides, (void *)fcn ); ``` The function accepts the following arguments: - **arrays**: `[inout] uint8_t**` array whose first two elements are pointers to strided input arrays and whose last element is a pointer to a strided output array. - **shape**: `[in] int64_t*` array whose only element is the number of elements over which to iterate. - **strides**: `[in] int64_t*` array containing strides (in bytes) for each strided array. - **fcn**: `[in] void*` a `double (*f)(double, double)` function to apply provided as a `void` pointer. ```c void stdlib_strided_ss_d_as_dd_d( uint8_t *arrays[], const int64_t *shape, const int64_t *strides, void *fcn ); ``` #### stdlib_strided_ss_f( \*arrays\[], \*shape, \*strides, \*fcn ) Applies a binary callback to strided input array elements and assigns results to elements in a strided output array. ```c #include // Create underlying byte arrays: uint8_t x[] = { 0, 0, 0 }; uint8_t y[] = { 0, 0, 0 }; uint8_t out[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; // Define a pointer to an array containing pointers to strided arrays: uint8_t *arrays[] = { x, y, out }; // Define the strides: int64_t strides[] = { 1, 1, 4 }; // Define the number of elements over which to iterate: int64_t shape[] = { 3 }; // Define a callback: static int8_t fcn( int8_t x, int8_t y ) { return x + y; } // Apply the callback: stdlib_strided_ss_f( arrays, shape, strides, (void *)fcn ); ``` The function accepts the following arguments: - **arrays**: `[inout] uint8_t**` array whose first two elements are pointers to strided input arrays and whose last element is a pointer to a strided output array. - **shape**: `[in] int64_t*` array whose only element is the number of elements over which to iterate. - **strides**: `[in] int64_t*` array containing strides (in bytes) for each strided array. - **fcn**: `[in] void*` a `int8_t (*f)(int8_t, int8_t)` function to apply provided as a `void` pointer. ```c void stdlib_strided_ss_f( uint8_t *arrays[], const int64_t *shape, const int64_t *strides, void *fcn ); ``` #### stdlib_strided_ss_f_as_dd_d( \*arrays\[], \*shape, \*strides, \*fcn ) Applies a binary callback to strided input array elements and assigns results to elements in a strided output array. ```c #include // Create underlying byte arrays: uint8_t x[] = { 0, 0, 0 }; uint8_t y[] = { 0, 0, 0 }; uint8_t out[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; // Define a pointer to an array containing pointers to strided arrays: uint8_t *arrays[] = { x, y, out }; // Define the strides: int64_t strides[] = { 1, 1, 4 }; // Define the number of elements over which to iterate: int64_t shape[] = { 3 }; // Define a callback: static double fcn( double x, double y ) { return x + y; } // Apply the callback: stdlib_strided_ss_f_as_dd_d( arrays, shape, strides, (void *)fcn ); ``` The function accepts the following arguments: - **arrays**: `[inout] uint8_t**` array whose first two elements are pointers to strided input arrays and whose last element is a pointer to a strided output array. - **shape**: `[in] int64_t*` array whose only element is the number of elements over which to iterate. - **strides**: `[in] int64_t*` array containing strides (in bytes) for each strided array. - **fcn**: `[in] void*` a `double (*f)(double, double)` function to apply provided as a `void` pointer. ```c void stdlib_strided_ss_f_as_dd_d( uint8_t *arrays[], const int64_t *shape, const int64_t *strides, void *fcn ); ``` #### stdlib_strided_ss_f_as_ff_f( \*arrays\[], \*shape, \*strides, \*fcn ) Applies a binary callback to strided input array elements and assigns results to elements in a strided output array. ```c #include // Create underlying byte arrays: uint8_t x[] = { 0, 0, 0 }; uint8_t y[] = { 0, 0, 0 }; uint8_t out[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; // Define a pointer to an array containing pointers to strided arrays: uint8_t *arrays[] = { x, y, out }; // Define the strides: int64_t strides[] = { 1, 1, 4 }; // Define the number of elements over which to iterate: int64_t shape[] = { 3 }; // Define a callback: static float fcn( float x, float y ) { return x + y; } // Apply the callback: stdlib_strided_ss_f_as_ff_f( arrays, shape, strides, (void *)fcn ); ``` The function accepts the following arguments: - **arrays**: `[inout] uint8_t**` array whose first two elements are pointers to strided input arrays and whose last element is a pointer to a strided output array. - **shape**: `[in] int64_t*` array whose only element is the number of elements over which to iterate. - **strides**: `[in] int64_t*` array containing strides (in bytes) for each strided array. - **fcn**: `[in] void*` a `float (*f)(float, float)` function to apply provided as a `void` pointer. ```c void stdlib_strided_ss_f_as_ff_f( uint8_t *arrays[], const int64_t *shape, const int64_t *strides, void *fcn ); ``` #### stdlib_strided_ss_i( \*arrays\[], \*shape, \*strides, \*fcn ) Applies a binary callback to strided input array elements and assigns results to elements in a strided output array. ```c #include // Create underlying byte arrays: uint8_t x[] = { 0, 0, 0 }; uint8_t y[] = { 0, 0, 0 }; uint8_t out[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; // Define a pointer to an array containing pointers to strided arrays: uint8_t *arrays[] = { x, y, out }; // Define the strides: int64_t strides[] = { 1, 1, 4 }; // Define the number of elements over which to iterate: int64_t shape[] = { 3 }; // Define a callback: static int8_t fcn( int8_t x, int8_t y ) { return x + y; } // Apply the callback: stdlib_strided_ss_i( arrays, shape, strides, (void *)fcn ); ``` The function accepts the following arguments: - **arrays**: `[inout] uint8_t**` array whose first two elements are pointers to strided input arrays and whose last element is a pointer to a strided output array. - **shape**: `[in] int64_t*` array whose only element is the number of elements over which to iterate. - **strides**: `[in] int64_t*` array containing strides (in bytes) for each strided array. - **fcn**: `[in] void*` a `int8_t (*f)(int8_t, int8_t)` function to apply provided as a `void` pointer. ```c void stdlib_strided_ss_i( uint8_t *arrays[], const int64_t *shape, const int64_t *strides, void *fcn ); ``` #### stdlib_strided_ss_i_as_ii_i( \*arrays\[], \*shape, \*strides, \*fcn ) Applies a binary callback to strided input array elements and assigns results to elements in a strided output array. ```c #include // Create underlying byte arrays: uint8_t x[] = { 0, 0, 0 }; uint8_t y[] = { 0, 0, 0 }; uint8_t out[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; // Define a pointer to an array containing pointers to strided arrays: uint8_t *arrays[] = { x, y, out }; // Define the strides: int64_t strides[] = { 1, 1, 4 }; // Define the number of elements over which to iterate: int64_t shape[] = { 3 }; // Define a callback: static int32_t fcn( int32_t x, int32_t y ) { return x + y; } // Apply the callback: stdlib_strided_ss_i_as_ii_i( arrays, shape, strides, (void *)fcn ); ``` The function accepts the following arguments: - **arrays**: `[inout] uint8_t**` array whose first two elements are pointers to strided input arrays and whose last element is a pointer to a strided output array. - **shape**: `[in] int64_t*` array whose only element is the number of elements over which to iterate. - **strides**: `[in] int64_t*` array containing strides (in bytes) for each strided array. - **fcn**: `[in] void*` a `int32_t (*f)(int32_t, int32_t)` function to apply provided as a `void` pointer. ```c void stdlib_strided_ss_i_as_ii_i( uint8_t *arrays[], const int64_t *shape, const int64_t *strides, void *fcn ); ``` #### stdlib_strided_ss_k( \*arrays\[], \*shape, \*strides, \*fcn ) Applies a binary callback to strided input array elements and assigns results to elements in a strided output array. ```c #include // Create underlying byte arrays: uint8_t x[] = { 0, 0, 0 }; uint8_t y[] = { 0, 0, 0 }; uint8_t out[] = { 0, 0, 0, 0, 0, 0 }; // Define a pointer to an array containing pointers to strided arrays: uint8_t *arrays[] = { x, y, out }; // Define the strides: int64_t strides[] = { 1, 1, 2 }; // Define the number of elements over which to iterate: int64_t shape[] = { 3 }; // Define a callback: static int8_t fcn( int8_t x, int8_t y ) { return x + y; } // Apply the callback: stdlib_strided_ss_k( arrays, shape, strides, (void *)fcn ); ``` The function accepts the following arguments: - **arrays**: `[inout] uint8_t**` array whose first two elements are pointers to strided input arrays and whose last element is a pointer to a strided output array. - **shape**: `[in] int64_t*` array whose only element is the number of elements over which to iterate. - **strides**: `[in] int64_t*` array containing strides (in bytes) for each strided array. - **fcn**: `[in] void*` a `int8_t (*f)(int8_t, int8_t)` function to apply provided as a `void` pointer. ```c void stdlib_strided_ss_k( uint8_t *arrays[], const int64_t *shape, const int64_t *strides, void *fcn ); ``` #### stdlib_strided_ss_k_as_kk_k( \*arrays\[], \*shape, \*strides, \*fcn ) Applies a binary callback to strided input array elements and assigns results to elements in a strided output array. ```c #include // Create underlying byte arrays: uint8_t x[] = { 0, 0, 0 }; uint8_t y[] = { 0, 0, 0 }; uint8_t out[] = { 0, 0, 0, 0, 0, 0 }; // Define a pointer to an array containing pointers to strided arrays: uint8_t *arrays[] = { x, y, out }; // Define the strides: int64_t strides[] = { 1, 1, 2 }; // Define the number of elements over which to iterate: int64_t shape[] = { 3 }; // Define a callback: static int16_t fcn( int16_t x, int16_t y ) { return x + y; } // Apply the callback: stdlib_strided_ss_k_as_kk_k( arrays, shape, strides, (void *)fcn ); ``` The function accepts the following arguments: - **arrays**: `[inout] uint8_t**` array whose first two elements are pointers to strided input arrays and whose last element is a pointer to a strided output array. - **shape**: `[in] int64_t*` array whose only element is the number of elements over which to iterate. - **strides**: `[in] int64_t*` array containing strides (in bytes) for each strided array. - **fcn**: `[in] void*` a `int16_t (*f)(int16_t, int16_t)` function to apply provided as a `void` pointer. ```c void stdlib_strided_ss_k_as_kk_k( uint8_t *arrays[], const int64_t *shape, const int64_t *strides, void *fcn ); ``` #### stdlib_strided_ss_s( \*arrays\[], \*shape, \*strides, \*fcn ) Applies a binary callback to strided input array elements and assigns results to elements in a strided output array. ```c #include // Create underlying byte arrays: uint8_t x[] = { 0, 0, 0 }; uint8_t y[] = { 0, 0, 0 }; uint8_t out[] = { 0, 0, 0 }; // Define a pointer to an array containing pointers to strided arrays: uint8_t *arrays[] = { x, y, out }; // Define the strides: int64_t strides[] = { 1, 1, 1 }; // Define the number of elements over which to iterate: int64_t shape[] = { 3 }; // Define a callback: static int8_t fcn( int8_t x, int8_t y ) { return x + y; } // Apply the callback: stdlib_strided_ss_s( arrays, shape, strides, (void *)fcn ); ``` The function accepts the following arguments: - **arrays**: `[inout] uint8_t**` array whose first two elements are pointers to strided input arrays and whose last element is a pointer to a strided output array. - **shape**: `[in] int64_t*` array whose only element is the number of elements over which to iterate. - **strides**: `[in] int64_t*` array containing strides (in bytes) for each strided array. - **fcn**: `[in] void*` a `int8_t (*f)(int8_t, int8_t)` function to apply provided as a `void` pointer. ```c void stdlib_strided_ss_s( uint8_t *arrays[], const int64_t *shape, const int64_t *strides, void *fcn ); ``` #### stdlib_strided_ss_z( \*arrays\[], \*shape, \*strides, \*fcn ) Applies a binary callback to strided input array elements and assigns results to elements in a strided output array. ```c #include // Create underlying byte arrays: uint8_t x[] = { 0, 0, 0 }; uint8_t y[] = { 0, 0, 0 }; uint8_t out[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; // Define a pointer to an array containing pointers to strided arrays: uint8_t *arrays[] = { x, y, out }; // Define the strides: int64_t strides[] = { 1, 1, 16 }; // Define the number of elements over which to iterate: int64_t shape[] = { 3 }; // Define a callback: static int8_t fcn( int8_t x, int8_t y ) { return x + y; } // Apply the callback: stdlib_strided_ss_z( arrays, shape, strides, (void *)fcn ); ``` The function accepts the following arguments: - **arrays**: `[inout] uint8_t**` array whose first two elements are pointers to strided input arrays and whose last element is a pointer to a strided output array. - **shape**: `[in] int64_t*` array whose only element is the number of elements over which to iterate. - **strides**: `[in] int64_t*` array containing strides (in bytes) for each strided array. - **fcn**: `[in] void*` a `int8_t (*f)(int8_t, int8_t)` function to apply provided as a `void` pointer. ```c void stdlib_strided_ss_z( uint8_t *arrays[], const int64_t *shape, const int64_t *strides, void *fcn ); ``` #### stdlib_strided_ss_z_as_zz_z( \*arrays\[], \*shape, \*strides, \*fcn ) Applies a binary callback to strided input array elements and assigns results to elements in a strided output array. ```c #include "stdlib/complex/float64/ctor.h" #include // Create underlying byte arrays: uint8_t x[] = { 0, 0, 0 }; uint8_t y[] = { 0, 0, 0 }; uint8_t out[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; // Define a pointer to an array containing pointers to strided arrays: uint8_t *arrays[] = { x, y, out }; // Define the strides: int64_t strides[] = { 1, 1, 16 }; // Define the number of elements over which to iterate: int64_t shape[] = { 3 }; // Define a callback: static stdlib_complex128_t fcn( stdlib_complex128_t x, stdlib_complex128_t y ) { // ... } // Apply the callback: stdlib_strided_ss_z_as_zz_z( arrays, shape, strides, (void *)fcn ); ``` The function accepts the following arguments: - **arrays**: `[inout] uint8_t**` array whose first two elements are pointers to strided input arrays and whose last element is a pointer to a strided output array. - **shape**: `[in] int64_t*` array whose only element is the number of elements over which to iterate. - **strides**: `[in] int64_t*` array containing strides (in bytes) for each strided array. - **fcn**: `[in] void*` a `stdlib_complex128_t (*f)(stdlib_complex128_t, stdlib_complex128_t)` function to apply provided as a `void` pointer. ```c void stdlib_strided_ss_z_as_zz_z( uint8_t *arrays[], const int64_t *shape, const int64_t *strides, void *fcn ); ``` #### stdlib_strided_st_d_as_dd_d( \*arrays\[], \*shape, \*strides, \*fcn ) Applies a binary callback to strided input array elements and assigns results to elements in a strided output array. ```c #include // Create underlying byte arrays: uint8_t x[] = { 0, 0, 0 }; uint8_t y[] = { 0, 0, 0, 0, 0, 0 }; uint8_t out[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; // Define a pointer to an array containing pointers to strided arrays: uint8_t *arrays[] = { x, y, out }; // Define the strides: int64_t strides[] = { 1, 2, 8 }; // Define the number of elements over which to iterate: int64_t shape[] = { 3 }; // Define a callback: static double fcn( double x, double y ) { return x + y; } // Apply the callback: stdlib_strided_st_d_as_dd_d( arrays, shape, strides, (void *)fcn ); ``` The function accepts the following arguments: - **arrays**: `[inout] uint8_t**` array whose first two elements are pointers to strided input arrays and whose last element is a pointer to a strided output array. - **shape**: `[in] int64_t*` array whose only element is the number of elements over which to iterate. - **strides**: `[in] int64_t*` array containing strides (in bytes) for each strided array. - **fcn**: `[in] void*` a `double (*f)(double, double)` function to apply provided as a `void` pointer. ```c void stdlib_strided_st_d_as_dd_d( uint8_t *arrays[], const int64_t *shape, const int64_t *strides, void *fcn ); ``` #### stdlib_strided_st_i_as_ii_i( \*arrays\[], \*shape, \*strides, \*fcn ) Applies a binary callback to strided input array elements and assigns results to elements in a strided output array. ```c #include // Create underlying byte arrays: uint8_t x[] = { 0, 0, 0 }; uint8_t y[] = { 0, 0, 0, 0, 0, 0 }; uint8_t out[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; // Define a pointer to an array containing pointers to strided arrays: uint8_t *arrays[] = { x, y, out }; // Define the strides: int64_t strides[] = { 1, 2, 4 }; // Define the number of elements over which to iterate: int64_t shape[] = { 3 }; // Define a callback: static int32_t fcn( int32_t x, int32_t y ) { return x + y; } // Apply the callback: stdlib_strided_st_i_as_ii_i( arrays, shape, strides, (void *)fcn ); ``` The function accepts the following arguments: - **arrays**: `[inout] uint8_t**` array whose first two elements are pointers to strided input arrays and whose last element is a pointer to a strided output array. - **shape**: `[in] int64_t*` array whose only element is the number of elements over which to iterate. - **strides**: `[in] int64_t*` array containing strides (in bytes) for each strided array. - **fcn**: `[in] void*` a `int32_t (*f)(int32_t, int32_t)` function to apply provided as a `void` pointer. ```c void stdlib_strided_st_i_as_ii_i( uint8_t *arrays[], const int64_t *shape, const int64_t *strides, void *fcn ); ``` #### stdlib_strided_st_z_as_zz_z( \*arrays\[], \*shape, \*strides, \*fcn ) Applies a binary callback to strided input array elements and assigns results to elements in a strided output array. ```c #include "stdlib/complex/float64/ctor.h" #include // Create underlying byte arrays: uint8_t x[] = { 0, 0, 0 }; uint8_t y[] = { 0, 0, 0, 0, 0, 0 }; uint8_t out[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; // Define a pointer to an array containing pointers to strided arrays: uint8_t *arrays[] = { x, y, out }; // Define the strides: int64_t strides[] = { 1, 2, 16 }; // Define the number of elements over which to iterate: int64_t shape[] = { 3 }; // Define a callback: static stdlib_complex128_t fcn( stdlib_complex128_t x, stdlib_complex128_t y ) { // ... } // Apply the callback: stdlib_strided_st_z_as_zz_z( arrays, shape, strides, (void *)fcn ); ``` The function accepts the following arguments: - **arrays**: `[inout] uint8_t**` array whose first two elements are pointers to strided input arrays and whose last element is a pointer to a strided output array. - **shape**: `[in] int64_t*` array whose only element is the number of elements over which to iterate. - **strides**: `[in] int64_t*` array containing strides (in bytes) for each strided array. - **fcn**: `[in] void*` a `stdlib_complex128_t (*f)(stdlib_complex128_t, stdlib_complex128_t)` function to apply provided as a `void` pointer. ```c void stdlib_strided_st_z_as_zz_z( uint8_t *arrays[], const int64_t *shape, const int64_t *strides, void *fcn ); ``` #### stdlib_strided_su_d_as_dd_d( \*arrays\[], \*shape, \*strides, \*fcn ) Applies a binary callback to strided input array elements and assigns results to elements in a strided output array. ```c #include // Create underlying byte arrays: uint8_t x[] = { 0, 0, 0 }; uint8_t y[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; uint8_t out[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; // Define a pointer to an array containing pointers to strided arrays: uint8_t *arrays[] = { x, y, out }; // Define the strides: int64_t strides[] = { 1, 4, 8 }; // Define the number of elements over which to iterate: int64_t shape[] = { 3 }; // Define a callback: static double fcn( double x, double y ) { return x + y; } // Apply the callback: stdlib_strided_su_d_as_dd_d( arrays, shape, strides, (void *)fcn ); ``` The function accepts the following arguments: - **arrays**: `[inout] uint8_t**` array whose first two elements are pointers to strided input arrays and whose last element is a pointer to a strided output array. - **shape**: `[in] int64_t*` array whose only element is the number of elements over which to iterate. - **strides**: `[in] int64_t*` array containing strides (in bytes) for each strided array. - **fcn**: `[in] void*` a `double (*f)(double, double)` function to apply provided as a `void` pointer. ```c void stdlib_strided_su_d_as_dd_d( uint8_t *arrays[], const int64_t *shape, const int64_t *strides, void *fcn ); ``` #### stdlib_strided_su_z_as_zz_z( \*arrays\[], \*shape, \*strides, \*fcn ) Applies a binary callback to strided input array elements and assigns results to elements in a strided output array. ```c #include "stdlib/complex/float64/ctor.h" #include // Create underlying byte arrays: uint8_t x[] = { 0, 0, 0 }; uint8_t y[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; uint8_t out[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; // Define a pointer to an array containing pointers to strided arrays: uint8_t *arrays[] = { x, y, out }; // Define the strides: int64_t strides[] = { 1, 4, 16 }; // Define the number of elements over which to iterate: int64_t shape[] = { 3 }; // Define a callback: static stdlib_complex128_t fcn( stdlib_complex128_t x, stdlib_complex128_t y ) { // ... } // Apply the callback: stdlib_strided_su_z_as_zz_z( arrays, shape, strides, (void *)fcn ); ``` The function accepts the following arguments: - **arrays**: `[inout] uint8_t**` array whose first two elements are pointers to strided input arrays and whose last element is a pointer to a strided output array. - **shape**: `[in] int64_t*` array whose only element is the number of elements over which to iterate. - **strides**: `[in] int64_t*` array containing strides (in bytes) for each strided array. - **fcn**: `[in] void*` a `stdlib_complex128_t (*f)(stdlib_complex128_t, stdlib_complex128_t)` function to apply provided as a `void` pointer. ```c void stdlib_strided_su_z_as_zz_z( uint8_t *arrays[], const int64_t *shape, const int64_t *strides, void *fcn ); ``` #### stdlib_strided_sz_z_as_zz_z( \*arrays\[], \*shape, \*strides, \*fcn ) Applies a binary callback to strided input array elements and assigns results to elements in a strided output array. ```c #include "stdlib/complex/float64/ctor.h" #include // Create underlying byte arrays: uint8_t x[] = { 0, 0, 0 }; uint8_t y[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; uint8_t out[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; // Define a pointer to an array containing pointers to strided arrays: uint8_t *arrays[] = { x, y, out }; // Define the strides: int64_t strides[] = { 1, 16, 16 }; // Define the number of elements over which to iterate: int64_t shape[] = { 3 }; // Define a callback: static stdlib_complex128_t fcn( stdlib_complex128_t x, stdlib_complex128_t y ) { // ... } // Apply the callback: stdlib_strided_sz_z_as_zz_z( arrays, shape, strides, (void *)fcn ); ``` The function accepts the following arguments: - **arrays**: `[inout] uint8_t**` array whose first two elements are pointers to strided input arrays and whose last element is a pointer to a strided output array. - **shape**: `[in] int64_t*` array whose only element is the number of elements over which to iterate. - **strides**: `[in] int64_t*` array containing strides (in bytes) for each strided array. - **fcn**: `[in] void*` a `stdlib_complex128_t (*f)(stdlib_complex128_t, stdlib_complex128_t)` function to apply provided as a `void` pointer. ```c void stdlib_strided_sz_z_as_zz_z( uint8_t *arrays[], const int64_t *shape, const int64_t *strides, void *fcn ); ``` #### stdlib_strided_tb_c_as_cc_c( \*arrays\[], \*shape, \*strides, \*fcn ) Applies a binary callback to strided input array elements and assigns results to elements in a strided output array. ```c #include "stdlib/complex/float32/ctor.h" #include // Create underlying byte arrays: uint8_t x[] = { 0, 0, 0, 0, 0, 0 }; uint8_t y[] = { 0, 0, 0 }; uint8_t out[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; // Define a pointer to an array containing pointers to strided arrays: uint8_t *arrays[] = { x, y, out }; // Define the strides: int64_t strides[] = { 2, 1, 8 }; // Define the number of elements over which to iterate: int64_t shape[] = { 3 }; // Define a callback: static stdlib_complex64_t fcn( stdlib_complex64_t x, stdlib_complex64_t y ) { // ... } // Apply the callback: stdlib_strided_tb_c_as_cc_c( arrays, shape, strides, (void *)fcn ); ``` The function accepts the following arguments: - **arrays**: `[inout] uint8_t**` array whose first two elements are pointers to strided input arrays and whose last element is a pointer to a strided output array. - **shape**: `[in] int64_t*` array whose only element is the number of elements over which to iterate. - **strides**: `[in] int64_t*` array containing strides (in bytes) for each strided array. - **fcn**: `[in] void*` a `stdlib_complex64_t (*f)(stdlib_complex64_t, stdlib_complex64_t)` function to apply provided as a `void` pointer. ```c void stdlib_strided_tb_c_as_cc_c( uint8_t *arrays[], const int64_t *shape, const int64_t *strides, void *fcn ); ``` #### stdlib_strided_tb_c_as_zz_z( \*arrays\[], \*shape, \*strides, \*fcn ) Applies a binary callback to strided input array elements and assigns results to elements in a strided output array. ```c #include "stdlib/complex/float64/ctor.h" #include // Create underlying byte arrays: uint8_t x[] = { 0, 0, 0, 0, 0, 0 }; uint8_t y[] = { 0, 0, 0 }; uint8_t out[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; // Define a pointer to an array containing pointers to strided arrays: uint8_t *arrays[] = { x, y, out }; // Define the strides: int64_t strides[] = { 2, 1, 8 }; // Define the number of elements over which to iterate: int64_t shape[] = { 3 }; // Define a callback: static stdlib_complex128_t fcn( stdlib_complex128_t x, stdlib_complex128_t y ) { // ... } // Apply the callback: stdlib_strided_tb_c_as_zz_z( arrays, shape, strides, (void *)fcn ); ``` The function accepts the following arguments: - **arrays**: `[inout] uint8_t**` array whose first two elements are pointers to strided input arrays and whose last element is a pointer to a strided output array. - **shape**: `[in] int64_t*` array whose only element is the number of elements over which to iterate. - **strides**: `[in] int64_t*` array containing strides (in bytes) for each strided array. - **fcn**: `[in] void*` a `stdlib_complex128_t (*f)(stdlib_complex128_t, stdlib_complex128_t)` function to apply provided as a `void` pointer. ```c void stdlib_strided_tb_c_as_zz_z( uint8_t *arrays[], const int64_t *shape, const int64_t *strides, void *fcn ); ``` #### stdlib_strided_tb_d_as_dd_d( \*arrays\[], \*shape, \*strides, \*fcn ) Applies a binary callback to strided input array elements and assigns results to elements in a strided output array. ```c #include // Create underlying byte arrays: uint8_t x[] = { 0, 0, 0, 0, 0, 0 }; uint8_t y[] = { 0, 0, 0 }; uint8_t out[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; // Define a pointer to an array containing pointers to strided arrays: uint8_t *arrays[] = { x, y, out }; // Define the strides: int64_t strides[] = { 2, 1, 8 }; // Define the number of elements over which to iterate: int64_t shape[] = { 3 }; // Define a callback: static double fcn( double x, double y ) { return x + y; } // Apply the callback: stdlib_strided_tb_d_as_dd_d( arrays, shape, strides, (void *)fcn ); ``` The function accepts the following arguments: - **arrays**: `[inout] uint8_t**` array whose first two elements are pointers to strided input arrays and whose last element is a pointer to a strided output array. - **shape**: `[in] int64_t*` array whose only element is the number of elements over which to iterate. - **strides**: `[in] int64_t*` array containing strides (in bytes) for each strided array. - **fcn**: `[in] void*` a `double (*f)(double, double)` function to apply provided as a `void` pointer. ```c void stdlib_strided_tb_d_as_dd_d( uint8_t *arrays[], const int64_t *shape, const int64_t *strides, void *fcn ); ``` #### stdlib_strided_tb_f_as_dd_d( \*arrays\[], \*shape, \*strides, \*fcn ) Applies a binary callback to strided input array elements and assigns results to elements in a strided output array. ```c #include // Create underlying byte arrays: uint8_t x[] = { 0, 0, 0, 0, 0, 0 }; uint8_t y[] = { 0, 0, 0 }; uint8_t out[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; // Define a pointer to an array containing pointers to strided arrays: uint8_t *arrays[] = { x, y, out }; // Define the strides: int64_t strides[] = { 2, 1, 4 }; // Define the number of elements over which to iterate: int64_t shape[] = { 3 }; // Define a callback: static double fcn( double x, double y ) { return x + y; } // Apply the callback: stdlib_strided_tb_f_as_dd_d( arrays, shape, strides, (void *)fcn ); ``` The function accepts the following arguments: - **arrays**: `[inout] uint8_t**` array whose first two elements are pointers to strided input arrays and whose last element is a pointer to a strided output array. - **shape**: `[in] int64_t*` array whose only element is the number of elements over which to iterate. - **strides**: `[in] int64_t*` array containing strides (in bytes) for each strided array. - **fcn**: `[in] void*` a `double (*f)(double, double)` function to apply provided as a `void` pointer. ```c void stdlib_strided_tb_f_as_dd_d( uint8_t *arrays[], const int64_t *shape, const int64_t *strides, void *fcn ); ``` #### stdlib_strided_tb_f_as_ff_f( \*arrays\[], \*shape, \*strides, \*fcn ) Applies a binary callback to strided input array elements and assigns results to elements in a strided output array. ```c #include // Create underlying byte arrays: uint8_t x[] = { 0, 0, 0, 0, 0, 0 }; uint8_t y[] = { 0, 0, 0 }; uint8_t out[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; // Define a pointer to an array containing pointers to strided arrays: uint8_t *arrays[] = { x, y, out }; // Define the strides: int64_t strides[] = { 2, 1, 4 }; // Define the number of elements over which to iterate: int64_t shape[] = { 3 }; // Define a callback: static float fcn( float x, float y ) { return x + y; } // Apply the callback: stdlib_strided_tb_f_as_ff_f( arrays, shape, strides, (void *)fcn ); ``` The function accepts the following arguments: - **arrays**: `[inout] uint8_t**` array whose first two elements are pointers to strided input arrays and whose last element is a pointer to a strided output array. - **shape**: `[in] int64_t*` array whose only element is the number of elements over which to iterate. - **strides**: `[in] int64_t*` array containing strides (in bytes) for each strided array. - **fcn**: `[in] void*` a `float (*f)(float, float)` function to apply provided as a `void` pointer. ```c void stdlib_strided_tb_f_as_ff_f( uint8_t *arrays[], const int64_t *shape, const int64_t *strides, void *fcn ); ``` #### stdlib_strided_tb_i_as_ii_i( \*arrays\[], \*shape, \*strides, \*fcn ) Applies a binary callback to strided input array elements and assigns results to elements in a strided output array. ```c #include // Create underlying byte arrays: uint8_t x[] = { 0, 0, 0, 0, 0, 0 }; uint8_t y[] = { 0, 0, 0 }; uint8_t out[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; // Define a pointer to an array containing pointers to strided arrays: uint8_t *arrays[] = { x, y, out }; // Define the strides: int64_t strides[] = { 2, 1, 4 }; // Define the number of elements over which to iterate: int64_t shape[] = { 3 }; // Define a callback: static int32_t fcn( int32_t x, int32_t y ) { return x + y; } // Apply the callback: stdlib_strided_tb_i_as_ii_i( arrays, shape, strides, (void *)fcn ); ``` The function accepts the following arguments: - **arrays**: `[inout] uint8_t**` array whose first two elements are pointers to strided input arrays and whose last element is a pointer to a strided output array. - **shape**: `[in] int64_t*` array whose only element is the number of elements over which to iterate. - **strides**: `[in] int64_t*` array containing strides (in bytes) for each strided array. - **fcn**: `[in] void*` a `int32_t (*f)(int32_t, int32_t)` function to apply provided as a `void` pointer. ```c void stdlib_strided_tb_i_as_ii_i( uint8_t *arrays[], const int64_t *shape, const int64_t *strides, void *fcn ); ``` #### stdlib_strided_tb_t_as_tt_t( \*arrays\[], \*shape, \*strides, \*fcn ) Applies a binary callback to strided input array elements and assigns results to elements in a strided output array. ```c #include // Create underlying byte arrays: uint8_t x[] = { 0, 0, 0, 0, 0, 0 }; uint8_t y[] = { 0, 0, 0 }; uint8_t out[] = { 0, 0, 0, 0, 0, 0 }; // Define a pointer to an array containing pointers to strided arrays: uint8_t *arrays[] = { x, y, out }; // Define the strides: int64_t strides[] = { 2, 1, 2 }; // Define the number of elements over which to iterate: int64_t shape[] = { 3 }; // Define a callback: static uint16_t fcn( uint16_t x, uint16_t y ) { return x + y; } // Apply the callback: stdlib_strided_tb_t_as_tt_t( arrays, shape, strides, (void *)fcn ); ``` The function accepts the following arguments: - **arrays**: `[inout] uint8_t**` array whose first two elements are pointers to strided input arrays and whose last element is a pointer to a strided output array. - **shape**: `[in] int64_t*` array whose only element is the number of elements over which to iterate. - **strides**: `[in] int64_t*` array containing strides (in bytes) for each strided array. - **fcn**: `[in] void*` a `uint16_t (*f)(uint16_t, uint16_t)` function to apply provided as a `void` pointer. ```c void stdlib_strided_tb_t_as_tt_t( uint8_t *arrays[], const int64_t *shape, const int64_t *strides, void *fcn ); ``` #### stdlib_strided_tb_u_as_uu_u( \*arrays\[], \*shape, \*strides, \*fcn ) Applies a binary callback to strided input array elements and assigns results to elements in a strided output array. ```c #include // Create underlying byte arrays: uint8_t x[] = { 0, 0, 0, 0, 0, 0 }; uint8_t y[] = { 0, 0, 0 }; uint8_t out[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; // Define a pointer to an array containing pointers to strided arrays: uint8_t *arrays[] = { x, y, out }; // Define the strides: int64_t strides[] = { 2, 1, 4 }; // Define the number of elements over which to iterate: int64_t shape[] = { 3 }; // Define a callback: static uint32_t fcn( uint32_t x, uint32_t y ) { return x + y; } // Apply the callback: stdlib_strided_tb_u_as_uu_u( arrays, shape, strides, (void *)fcn ); ``` The function accepts the following arguments: - **arrays**: `[inout] uint8_t**` array whose first two elements are pointers to strided input arrays and whose last element is a pointer to a strided output array. - **shape**: `[in] int64_t*` array whose only element is the number of elements over which to iterate. - **strides**: `[in] int64_t*` array containing strides (in bytes) for each strided array. - **fcn**: `[in] void*` a `uint32_t (*f)(uint32_t, uint32_t)` function to apply provided as a `void` pointer. ```c void stdlib_strided_tb_u_as_uu_u( uint8_t *arrays[], const int64_t *shape, const int64_t *strides, void *fcn ); ``` #### stdlib_strided_tb_z_as_zz_z( \*arrays\[], \*shape, \*strides, \*fcn ) Applies a binary callback to strided input array elements and assigns results to elements in a strided output array. ```c #include "stdlib/complex/float64/ctor.h" #include // Create underlying byte arrays: uint8_t x[] = { 0, 0, 0, 0, 0, 0 }; uint8_t y[] = { 0, 0, 0 }; uint8_t out[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; // Define a pointer to an array containing pointers to strided arrays: uint8_t *arrays[] = { x, y, out }; // Define the strides: int64_t strides[] = { 2, 1, 16 }; // Define the number of elements over which to iterate: int64_t shape[] = { 3 }; // Define a callback: static stdlib_complex128_t fcn( stdlib_complex128_t x, stdlib_complex128_t y ) { // ... } // Apply the callback: stdlib_strided_tb_z_as_zz_z( arrays, shape, strides, (void *)fcn ); ``` The function accepts the following arguments: - **arrays**: `[inout] uint8_t**` array whose first two elements are pointers to strided input arrays and whose last element is a pointer to a strided output array. - **shape**: `[in] int64_t*` array whose only element is the number of elements over which to iterate. - **strides**: `[in] int64_t*` array containing strides (in bytes) for each strided array. - **fcn**: `[in] void*` a `stdlib_complex128_t (*f)(stdlib_complex128_t, stdlib_complex128_t)` function to apply provided as a `void` pointer. ```c void stdlib_strided_tb_z_as_zz_z( uint8_t *arrays[], const int64_t *shape, const int64_t *strides, void *fcn ); ``` #### stdlib_strided_tc_c_as_cc_c( \*arrays\[], \*shape, \*strides, \*fcn ) Applies a binary callback to strided input array elements and assigns results to elements in a strided output array. ```c #include "stdlib/complex/float32/ctor.h" #include // Create underlying byte arrays: uint8_t x[] = { 0, 0, 0, 0, 0, 0 }; uint8_t y[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; uint8_t out[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; // Define a pointer to an array containing pointers to strided arrays: uint8_t *arrays[] = { x, y, out }; // Define the strides: int64_t strides[] = { 2, 8, 8 }; // Define the number of elements over which to iterate: int64_t shape[] = { 3 }; // Define a callback: static stdlib_complex64_t fcn( stdlib_complex64_t x, stdlib_complex64_t y ) { // ... } // Apply the callback: stdlib_strided_tc_c_as_cc_c( arrays, shape, strides, (void *)fcn ); ``` The function accepts the following arguments: - **arrays**: `[inout] uint8_t**` array whose first two elements are pointers to strided input arrays and whose last element is a pointer to a strided output array. - **shape**: `[in] int64_t*` array whose only element is the number of elements over which to iterate. - **strides**: `[in] int64_t*` array containing strides (in bytes) for each strided array. - **fcn**: `[in] void*` a `stdlib_complex64_t (*f)(stdlib_complex64_t, stdlib_complex64_t)` function to apply provided as a `void` pointer. ```c void stdlib_strided_tc_c_as_cc_c( uint8_t *arrays[], const int64_t *shape, const int64_t *strides, void *fcn ); ``` #### stdlib_strided_tc_c_as_zz_z( \*arrays\[], \*shape, \*strides, \*fcn ) Applies a binary callback to strided input array elements and assigns results to elements in a strided output array. ```c #include "stdlib/complex/float64/ctor.h" #include // Create underlying byte arrays: uint8_t x[] = { 0, 0, 0, 0, 0, 0 }; uint8_t y[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; uint8_t out[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; // Define a pointer to an array containing pointers to strided arrays: uint8_t *arrays[] = { x, y, out }; // Define the strides: int64_t strides[] = { 2, 8, 8 }; // Define the number of elements over which to iterate: int64_t shape[] = { 3 }; // Define a callback: static stdlib_complex128_t fcn( stdlib_complex128_t x, stdlib_complex128_t y ) { // ... } // Apply the callback: stdlib_strided_tc_c_as_zz_z( arrays, shape, strides, (void *)fcn ); ``` The function accepts the following arguments: - **arrays**: `[inout] uint8_t**` array whose first two elements are pointers to strided input arrays and whose last element is a pointer to a strided output array. - **shape**: `[in] int64_t*` array whose only element is the number of elements over which to iterate. - **strides**: `[in] int64_t*` array containing strides (in bytes) for each strided array. - **fcn**: `[in] void*` a `stdlib_complex128_t (*f)(stdlib_complex128_t, stdlib_complex128_t)` function to apply provided as a `void` pointer. ```c void stdlib_strided_tc_c_as_zz_z( uint8_t *arrays[], const int64_t *shape, const int64_t *strides, void *fcn ); ``` #### stdlib_strided_tc_z_as_zz_z( \*arrays\[], \*shape, \*strides, \*fcn ) Applies a binary callback to strided input array elements and assigns results to elements in a strided output array. ```c #include "stdlib/complex/float64/ctor.h" #include // Create underlying byte arrays: uint8_t x[] = { 0, 0, 0, 0, 0, 0 }; uint8_t y[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; uint8_t out[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; // Define a pointer to an array containing pointers to strided arrays: uint8_t *arrays[] = { x, y, out }; // Define the strides: int64_t strides[] = { 2, 8, 16 }; // Define the number of elements over which to iterate: int64_t shape[] = { 3 }; // Define a callback: static stdlib_complex128_t fcn( stdlib_complex128_t x, stdlib_complex128_t y ) { // ... } // Apply the callback: stdlib_strided_tc_z_as_zz_z( arrays, shape, strides, (void *)fcn ); ``` The function accepts the following arguments: - **arrays**: `[inout] uint8_t**` array whose first two elements are pointers to strided input arrays and whose last element is a pointer to a strided output array. - **shape**: `[in] int64_t*` array whose only element is the number of elements over which to iterate. - **strides**: `[in] int64_t*` array containing strides (in bytes) for each strided array. - **fcn**: `[in] void*` a `stdlib_complex128_t (*f)(stdlib_complex128_t, stdlib_complex128_t)` function to apply provided as a `void` pointer. ```c void stdlib_strided_tc_z_as_zz_z( uint8_t *arrays[], const int64_t *shape, const int64_t *strides, void *fcn ); ``` #### stdlib_strided_td_d_as_dd_d( \*arrays\[], \*shape, \*strides, \*fcn ) Applies a binary callback to strided input array elements and assigns results to elements in a strided output array. ```c #include // Create underlying byte arrays: uint8_t x[] = { 0, 0, 0, 0, 0, 0 }; uint8_t y[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; uint8_t out[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; // Define a pointer to an array containing pointers to strided arrays: uint8_t *arrays[] = { x, y, out }; // Define the strides: int64_t strides[] = { 2, 8, 8 }; // Define the number of elements over which to iterate: int64_t shape[] = { 3 }; // Define a callback: static double fcn( double x, double y ) { return x + y; } // Apply the callback: stdlib_strided_td_d_as_dd_d( arrays, shape, strides, (void *)fcn ); ``` The function accepts the following arguments: - **arrays**: `[inout] uint8_t**` array whose first two elements are pointers to strided input arrays and whose last element is a pointer to a strided output array. - **shape**: `[in] int64_t*` array whose only element is the number of elements over which to iterate. - **strides**: `[in] int64_t*` array containing strides (in bytes) for each strided array. - **fcn**: `[in] void*` a `double (*f)(double, double)` function to apply provided as a `void` pointer. ```c void stdlib_strided_td_d_as_dd_d( uint8_t *arrays[], const int64_t *shape, const int64_t *strides, void *fcn ); ``` #### stdlib_strided_td_z_as_zz_z( \*arrays\[], \*shape, \*strides, \*fcn ) Applies a binary callback to strided input array elements and assigns results to elements in a strided output array. ```c #include "stdlib/complex/float64/ctor.h" #include // Create underlying byte arrays: uint8_t x[] = { 0, 0, 0, 0, 0, 0 }; uint8_t y[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; uint8_t out[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; // Define a pointer to an array containing pointers to strided arrays: uint8_t *arrays[] = { x, y, out }; // Define the strides: int64_t strides[] = { 2, 8, 16 }; // Define the number of elements over which to iterate: int64_t shape[] = { 3 }; // Define a callback: static stdlib_complex128_t fcn( stdlib_complex128_t x, stdlib_complex128_t y ) { // ... } // Apply the callback: stdlib_strided_td_z_as_zz_z( arrays, shape, strides, (void *)fcn ); ``` The function accepts the following arguments: - **arrays**: `[inout] uint8_t**` array whose first two elements are pointers to strided input arrays and whose last element is a pointer to a strided output array. - **shape**: `[in] int64_t*` array whose only element is the number of elements over which to iterate. - **strides**: `[in] int64_t*` array containing strides (in bytes) for each strided array. - **fcn**: `[in] void*` a `stdlib_complex128_t (*f)(stdlib_complex128_t, stdlib_complex128_t)` function to apply provided as a `void` pointer. ```c void stdlib_strided_td_z_as_zz_z( uint8_t *arrays[], const int64_t *shape, const int64_t *strides, void *fcn ); ``` #### stdlib_strided_tf_c_as_cc_c( \*arrays\[], \*shape, \*strides, \*fcn ) Applies a binary callback to strided input array elements and assigns results to elements in a strided output array. ```c #include "stdlib/complex/float32/ctor.h" #include // Create underlying byte arrays: uint8_t x[] = { 0, 0, 0, 0, 0, 0 }; uint8_t y[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; uint8_t out[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; // Define a pointer to an array containing pointers to strided arrays: uint8_t *arrays[] = { x, y, out }; // Define the strides: int64_t strides[] = { 2, 4, 8 }; // Define the number of elements over which to iterate: int64_t shape[] = { 3 }; // Define a callback: static stdlib_complex64_t fcn( stdlib_complex64_t x, stdlib_complex64_t y ) { // ... } // Apply the callback: stdlib_strided_tf_c_as_cc_c( arrays, shape, strides, (void *)fcn ); ``` The function accepts the following arguments: - **arrays**: `[inout] uint8_t**` array whose first two elements are pointers to strided input arrays and whose last element is a pointer to a strided output array. - **shape**: `[in] int64_t*` array whose only element is the number of elements over which to iterate. - **strides**: `[in] int64_t*` array containing strides (in bytes) for each strided array. - **fcn**: `[in] void*` a `stdlib_complex64_t (*f)(stdlib_complex64_t, stdlib_complex64_t)` function to apply provided as a `void` pointer. ```c void stdlib_strided_tf_c_as_cc_c( uint8_t *arrays[], const int64_t *shape, const int64_t *strides, void *fcn ); ``` #### stdlib_strided_tf_c_as_zz_z( \*arrays\[], \*shape, \*strides, \*fcn ) Applies a binary callback to strided input array elements and assigns results to elements in a strided output array. ```c #include "stdlib/complex/float64/ctor.h" #include // Create underlying byte arrays: uint8_t x[] = { 0, 0, 0, 0, 0, 0 }; uint8_t y[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; uint8_t out[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; // Define a pointer to an array containing pointers to strided arrays: uint8_t *arrays[] = { x, y, out }; // Define the strides: int64_t strides[] = { 2, 4, 8 }; // Define the number of elements over which to iterate: int64_t shape[] = { 3 }; // Define a callback: static stdlib_complex128_t fcn( stdlib_complex128_t x, stdlib_complex128_t y ) { // ... } // Apply the callback: stdlib_strided_tf_c_as_zz_z( arrays, shape, strides, (void *)fcn ); ``` The function accepts the following arguments: - **arrays**: `[inout] uint8_t**` array whose first two elements are pointers to strided input arrays and whose last element is a pointer to a strided output array. - **shape**: `[in] int64_t*` array whose only element is the number of elements over which to iterate. - **strides**: `[in] int64_t*` array containing strides (in bytes) for each strided array. - **fcn**: `[in] void*` a `stdlib_complex128_t (*f)(stdlib_complex128_t, stdlib_complex128_t)` function to apply provided as a `void` pointer. ```c void stdlib_strided_tf_c_as_zz_z( uint8_t *arrays[], const int64_t *shape, const int64_t *strides, void *fcn ); ``` #### stdlib_strided_tf_d_as_dd_d( \*arrays\[], \*shape, \*strides, \*fcn ) Applies a binary callback to strided input array elements and assigns results to elements in a strided output array. ```c #include // Create underlying byte arrays: uint8_t x[] = { 0, 0, 0, 0, 0, 0 }; uint8_t y[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; uint8_t out[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; // Define a pointer to an array containing pointers to strided arrays: uint8_t *arrays[] = { x, y, out }; // Define the strides: int64_t strides[] = { 2, 4, 8 }; // Define the number of elements over which to iterate: int64_t shape[] = { 3 }; // Define a callback: static double fcn( double x, double y ) { return x + y; } // Apply the callback: stdlib_strided_tf_d_as_dd_d( arrays, shape, strides, (void *)fcn ); ``` The function accepts the following arguments: - **arrays**: `[inout] uint8_t**` array whose first two elements are pointers to strided input arrays and whose last element is a pointer to a strided output array. - **shape**: `[in] int64_t*` array whose only element is the number of elements over which to iterate. - **strides**: `[in] int64_t*` array containing strides (in bytes) for each strided array. - **fcn**: `[in] void*` a `double (*f)(double, double)` function to apply provided as a `void` pointer. ```c void stdlib_strided_tf_d_as_dd_d( uint8_t *arrays[], const int64_t *shape, const int64_t *strides, void *fcn ); ``` #### stdlib_strided_tf_f_as_dd_d( \*arrays\[], \*shape, \*strides, \*fcn ) Applies a binary callback to strided input array elements and assigns results to elements in a strided output array. ```c #include // Create underlying byte arrays: uint8_t x[] = { 0, 0, 0, 0, 0, 0 }; uint8_t y[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; uint8_t out[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; // Define a pointer to an array containing pointers to strided arrays: uint8_t *arrays[] = { x, y, out }; // Define the strides: int64_t strides[] = { 2, 4, 4 }; // Define the number of elements over which to iterate: int64_t shape[] = { 3 }; // Define a callback: static double fcn( double x, double y ) { return x + y; } // Apply the callback: stdlib_strided_tf_f_as_dd_d( arrays, shape, strides, (void *)fcn ); ``` The function accepts the following arguments: - **arrays**: `[inout] uint8_t**` array whose first two elements are pointers to strided input arrays and whose last element is a pointer to a strided output array. - **shape**: `[in] int64_t*` array whose only element is the number of elements over which to iterate. - **strides**: `[in] int64_t*` array containing strides (in bytes) for each strided array. - **fcn**: `[in] void*` a `double (*f)(double, double)` function to apply provided as a `void` pointer. ```c void stdlib_strided_tf_f_as_dd_d( uint8_t *arrays[], const int64_t *shape, const int64_t *strides, void *fcn ); ``` #### stdlib_strided_tf_f_as_ff_f( \*arrays\[], \*shape, \*strides, \*fcn ) Applies a binary callback to strided input array elements and assigns results to elements in a strided output array. ```c #include // Create underlying byte arrays: uint8_t x[] = { 0, 0, 0, 0, 0, 0 }; uint8_t y[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; uint8_t out[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; // Define a pointer to an array containing pointers to strided arrays: uint8_t *arrays[] = { x, y, out }; // Define the strides: int64_t strides[] = { 2, 4, 4 }; // Define the number of elements over which to iterate: int64_t shape[] = { 3 }; // Define a callback: static float fcn( float x, float y ) { return x + y; } // Apply the callback: stdlib_strided_tf_f_as_ff_f( arrays, shape, strides, (void *)fcn ); ``` The function accepts the following arguments: - **arrays**: `[inout] uint8_t**` array whose first two elements are pointers to strided input arrays and whose last element is a pointer to a strided output array. - **shape**: `[in] int64_t*` array whose only element is the number of elements over which to iterate. - **strides**: `[in] int64_t*` array containing strides (in bytes) for each strided array. - **fcn**: `[in] void*` a `float (*f)(float, float)` function to apply provided as a `void` pointer. ```c void stdlib_strided_tf_f_as_ff_f( uint8_t *arrays[], const int64_t *shape, const int64_t *strides, void *fcn ); ``` #### stdlib_strided_tf_z_as_zz_z( \*arrays\[], \*shape, \*strides, \*fcn ) Applies a binary callback to strided input array elements and assigns results to elements in a strided output array. ```c #include "stdlib/complex/float64/ctor.h" #include // Create underlying byte arrays: uint8_t x[] = { 0, 0, 0, 0, 0, 0 }; uint8_t y[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; uint8_t out[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; // Define a pointer to an array containing pointers to strided arrays: uint8_t *arrays[] = { x, y, out }; // Define the strides: int64_t strides[] = { 2, 4, 16 }; // Define the number of elements over which to iterate: int64_t shape[] = { 3 }; // Define a callback: static stdlib_complex128_t fcn( stdlib_complex128_t x, stdlib_complex128_t y ) { // ... } // Apply the callback: stdlib_strided_tf_z_as_zz_z( arrays, shape, strides, (void *)fcn ); ``` The function accepts the following arguments: - **arrays**: `[inout] uint8_t**` array whose first two elements are pointers to strided input arrays and whose last element is a pointer to a strided output array. - **shape**: `[in] int64_t*` array whose only element is the number of elements over which to iterate. - **strides**: `[in] int64_t*` array containing strides (in bytes) for each strided array. - **fcn**: `[in] void*` a `stdlib_complex128_t (*f)(stdlib_complex128_t, stdlib_complex128_t)` function to apply provided as a `void` pointer. ```c void stdlib_strided_tf_z_as_zz_z( uint8_t *arrays[], const int64_t *shape, const int64_t *strides, void *fcn ); ``` #### stdlib_strided_ti_d_as_dd_d( \*arrays\[], \*shape, \*strides, \*fcn ) Applies a binary callback to strided input array elements and assigns results to elements in a strided output array. ```c #include // Create underlying byte arrays: uint8_t x[] = { 0, 0, 0, 0, 0, 0 }; uint8_t y[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; uint8_t out[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; // Define a pointer to an array containing pointers to strided arrays: uint8_t *arrays[] = { x, y, out }; // Define the strides: int64_t strides[] = { 2, 4, 8 }; // Define the number of elements over which to iterate: int64_t shape[] = { 3 }; // Define a callback: static double fcn( double x, double y ) { return x + y; } // Apply the callback: stdlib_strided_ti_d_as_dd_d( arrays, shape, strides, (void *)fcn ); ``` The function accepts the following arguments: - **arrays**: `[inout] uint8_t**` array whose first two elements are pointers to strided input arrays and whose last element is a pointer to a strided output array. - **shape**: `[in] int64_t*` array whose only element is the number of elements over which to iterate. - **strides**: `[in] int64_t*` array containing strides (in bytes) for each strided array. - **fcn**: `[in] void*` a `double (*f)(double, double)` function to apply provided as a `void` pointer. ```c void stdlib_strided_ti_d_as_dd_d( uint8_t *arrays[], const int64_t *shape, const int64_t *strides, void *fcn ); ``` #### stdlib_strided_ti_i_as_ii_i( \*arrays\[], \*shape, \*strides, \*fcn ) Applies a binary callback to strided input array elements and assigns results to elements in a strided output array. ```c #include // Create underlying byte arrays: uint8_t x[] = { 0, 0, 0, 0, 0, 0 }; uint8_t y[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; uint8_t out[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; // Define a pointer to an array containing pointers to strided arrays: uint8_t *arrays[] = { x, y, out }; // Define the strides: int64_t strides[] = { 2, 4, 4 }; // Define the number of elements over which to iterate: int64_t shape[] = { 3 }; // Define a callback: static int32_t fcn( int32_t x, int32_t y ) { return x + y; } // Apply the callback: stdlib_strided_ti_i_as_ii_i( arrays, shape, strides, (void *)fcn ); ``` The function accepts the following arguments: - **arrays**: `[inout] uint8_t**` array whose first two elements are pointers to strided input arrays and whose last element is a pointer to a strided output array. - **shape**: `[in] int64_t*` array whose only element is the number of elements over which to iterate. - **strides**: `[in] int64_t*` array containing strides (in bytes) for each strided array. - **fcn**: `[in] void*` a `int32_t (*f)(int32_t, int32_t)` function to apply provided as a `void` pointer. ```c void stdlib_strided_ti_i_as_ii_i( uint8_t *arrays[], const int64_t *shape, const int64_t *strides, void *fcn ); ``` #### stdlib_strided_ti_z_as_zz_z( \*arrays\[], \*shape, \*strides, \*fcn ) Applies a binary callback to strided input array elements and assigns results to elements in a strided output array. ```c #include "stdlib/complex/float64/ctor.h" #include // Create underlying byte arrays: uint8_t x[] = { 0, 0, 0, 0, 0, 0 }; uint8_t y[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; uint8_t out[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; // Define a pointer to an array containing pointers to strided arrays: uint8_t *arrays[] = { x, y, out }; // Define the strides: int64_t strides[] = { 2, 4, 16 }; // Define the number of elements over which to iterate: int64_t shape[] = { 3 }; // Define a callback: static stdlib_complex128_t fcn( stdlib_complex128_t x, stdlib_complex128_t y ) { // ... } // Apply the callback: stdlib_strided_ti_z_as_zz_z( arrays, shape, strides, (void *)fcn ); ``` The function accepts the following arguments: - **arrays**: `[inout] uint8_t**` array whose first two elements are pointers to strided input arrays and whose last element is a pointer to a strided output array. - **shape**: `[in] int64_t*` array whose only element is the number of elements over which to iterate. - **strides**: `[in] int64_t*` array containing strides (in bytes) for each strided array. - **fcn**: `[in] void*` a `stdlib_complex128_t (*f)(stdlib_complex128_t, stdlib_complex128_t)` function to apply provided as a `void` pointer. ```c void stdlib_strided_ti_z_as_zz_z( uint8_t *arrays[], const int64_t *shape, const int64_t *strides, void *fcn ); ``` #### stdlib_strided_tk_d_as_dd_d( \*arrays\[], \*shape, \*strides, \*fcn ) Applies a binary callback to strided input array elements and assigns results to elements in a strided output array. ```c #include // Create underlying byte arrays: uint8_t x[] = { 0, 0, 0, 0, 0, 0 }; uint8_t y[] = { 0, 0, 0, 0, 0, 0 }; uint8_t out[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; // Define a pointer to an array containing pointers to strided arrays: uint8_t *arrays[] = { x, y, out }; // Define the strides: int64_t strides[] = { 2, 2, 8 }; // Define the number of elements over which to iterate: int64_t shape[] = { 3 }; // Define a callback: static double fcn( double x, double y ) { return x + y; } // Apply the callback: stdlib_strided_tk_d_as_dd_d( arrays, shape, strides, (void *)fcn ); ``` The function accepts the following arguments: - **arrays**: `[inout] uint8_t**` array whose first two elements are pointers to strided input arrays and whose last element is a pointer to a strided output array. - **shape**: `[in] int64_t*` array whose only element is the number of elements over which to iterate. - **strides**: `[in] int64_t*` array containing strides (in bytes) for each strided array. - **fcn**: `[in] void*` a `double (*f)(double, double)` function to apply provided as a `void` pointer. ```c void stdlib_strided_tk_d_as_dd_d( uint8_t *arrays[], const int64_t *shape, const int64_t *strides, void *fcn ); ``` #### stdlib_strided_tk_i_as_ii_i( \*arrays\[], \*shape, \*strides, \*fcn ) Applies a binary callback to strided input array elements and assigns results to elements in a strided output array. ```c #include // Create underlying byte arrays: uint8_t x[] = { 0, 0, 0, 0, 0, 0 }; uint8_t y[] = { 0, 0, 0, 0, 0, 0 }; uint8_t out[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; // Define a pointer to an array containing pointers to strided arrays: uint8_t *arrays[] = { x, y, out }; // Define the strides: int64_t strides[] = { 2, 2, 4 }; // Define the number of elements over which to iterate: int64_t shape[] = { 3 }; // Define a callback: static int32_t fcn( int32_t x, int32_t y ) { return x + y; } // Apply the callback: stdlib_strided_tk_i_as_ii_i( arrays, shape, strides, (void *)fcn ); ``` The function accepts the following arguments: - **arrays**: `[inout] uint8_t**` array whose first two elements are pointers to strided input arrays and whose last element is a pointer to a strided output array. - **shape**: `[in] int64_t*` array whose only element is the number of elements over which to iterate. - **strides**: `[in] int64_t*` array containing strides (in bytes) for each strided array. - **fcn**: `[in] void*` a `int32_t (*f)(int32_t, int32_t)` function to apply provided as a `void` pointer. ```c void stdlib_strided_tk_i_as_ii_i( uint8_t *arrays[], const int64_t *shape, const int64_t *strides, void *fcn ); ``` #### stdlib_strided_tk_z_as_zz_z( \*arrays\[], \*shape, \*strides, \*fcn ) Applies a binary callback to strided input array elements and assigns results to elements in a strided output array. ```c #include "stdlib/complex/float64/ctor.h" #include // Create underlying byte arrays: uint8_t x[] = { 0, 0, 0, 0, 0, 0 }; uint8_t y[] = { 0, 0, 0, 0, 0, 0 }; uint8_t out[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; // Define a pointer to an array containing pointers to strided arrays: uint8_t *arrays[] = { x, y, out }; // Define the strides: int64_t strides[] = { 2, 2, 16 }; // Define the number of elements over which to iterate: int64_t shape[] = { 3 }; // Define a callback: static stdlib_complex128_t fcn( stdlib_complex128_t x, stdlib_complex128_t y ) { // ... } // Apply the callback: stdlib_strided_tk_z_as_zz_z( arrays, shape, strides, (void *)fcn ); ``` The function accepts the following arguments: - **arrays**: `[inout] uint8_t**` array whose first two elements are pointers to strided input arrays and whose last element is a pointer to a strided output array. - **shape**: `[in] int64_t*` array whose only element is the number of elements over which to iterate. - **strides**: `[in] int64_t*` array containing strides (in bytes) for each strided array. - **fcn**: `[in] void*` a `stdlib_complex128_t (*f)(stdlib_complex128_t, stdlib_complex128_t)` function to apply provided as a `void` pointer. ```c void stdlib_strided_tk_z_as_zz_z( uint8_t *arrays[], const int64_t *shape, const int64_t *strides, void *fcn ); ``` #### stdlib_strided_ts_d_as_dd_d( \*arrays\[], \*shape, \*strides, \*fcn ) Applies a binary callback to strided input array elements and assigns results to elements in a strided output array. ```c #include // Create underlying byte arrays: uint8_t x[] = { 0, 0, 0, 0, 0, 0 }; uint8_t y[] = { 0, 0, 0 }; uint8_t out[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; // Define a pointer to an array containing pointers to strided arrays: uint8_t *arrays[] = { x, y, out }; // Define the strides: int64_t strides[] = { 2, 1, 8 }; // Define the number of elements over which to iterate: int64_t shape[] = { 3 }; // Define a callback: static double fcn( double x, double y ) { return x + y; } // Apply the callback: stdlib_strided_ts_d_as_dd_d( arrays, shape, strides, (void *)fcn ); ``` The function accepts the following arguments: - **arrays**: `[inout] uint8_t**` array whose first two elements are pointers to strided input arrays and whose last element is a pointer to a strided output array. - **shape**: `[in] int64_t*` array whose only element is the number of elements over which to iterate. - **strides**: `[in] int64_t*` array containing strides (in bytes) for each strided array. - **fcn**: `[in] void*` a `double (*f)(double, double)` function to apply provided as a `void` pointer. ```c void stdlib_strided_ts_d_as_dd_d( uint8_t *arrays[], const int64_t *shape, const int64_t *strides, void *fcn ); ``` #### stdlib_strided_ts_i_as_ii_i( \*arrays\[], \*shape, \*strides, \*fcn ) Applies a binary callback to strided input array elements and assigns results to elements in a strided output array. ```c #include // Create underlying byte arrays: uint8_t x[] = { 0, 0, 0, 0, 0, 0 }; uint8_t y[] = { 0, 0, 0 }; uint8_t out[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; // Define a pointer to an array containing pointers to strided arrays: uint8_t *arrays[] = { x, y, out }; // Define the strides: int64_t strides[] = { 2, 1, 4 }; // Define the number of elements over which to iterate: int64_t shape[] = { 3 }; // Define a callback: static int32_t fcn( int32_t x, int32_t y ) { return x + y; } // Apply the callback: stdlib_strided_ts_i_as_ii_i( arrays, shape, strides, (void *)fcn ); ``` The function accepts the following arguments: - **arrays**: `[inout] uint8_t**` array whose first two elements are pointers to strided input arrays and whose last element is a pointer to a strided output array. - **shape**: `[in] int64_t*` array whose only element is the number of elements over which to iterate. - **strides**: `[in] int64_t*` array containing strides (in bytes) for each strided array. - **fcn**: `[in] void*` a `int32_t (*f)(int32_t, int32_t)` function to apply provided as a `void` pointer. ```c void stdlib_strided_ts_i_as_ii_i( uint8_t *arrays[], const int64_t *shape, const int64_t *strides, void *fcn ); ``` #### stdlib_strided_ts_z_as_zz_z( \*arrays\[], \*shape, \*strides, \*fcn ) Applies a binary callback to strided input array elements and assigns results to elements in a strided output array. ```c #include "stdlib/complex/float64/ctor.h" #include // Create underlying byte arrays: uint8_t x[] = { 0, 0, 0, 0, 0, 0 }; uint8_t y[] = { 0, 0, 0 }; uint8_t out[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; // Define a pointer to an array containing pointers to strided arrays: uint8_t *arrays[] = { x, y, out }; // Define the strides: int64_t strides[] = { 2, 1, 16 }; // Define the number of elements over which to iterate: int64_t shape[] = { 3 }; // Define a callback: static stdlib_complex128_t fcn( stdlib_complex128_t x, stdlib_complex128_t y ) { // ... } // Apply the callback: stdlib_strided_ts_z_as_zz_z( arrays, shape, strides, (void *)fcn ); ``` The function accepts the following arguments: - **arrays**: `[inout] uint8_t**` array whose first two elements are pointers to strided input arrays and whose last element is a pointer to a strided output array. - **shape**: `[in] int64_t*` array whose only element is the number of elements over which to iterate. - **strides**: `[in] int64_t*` array containing strides (in bytes) for each strided array. - **fcn**: `[in] void*` a `stdlib_complex128_t (*f)(stdlib_complex128_t, stdlib_complex128_t)` function to apply provided as a `void` pointer. ```c void stdlib_strided_ts_z_as_zz_z( uint8_t *arrays[], const int64_t *shape, const int64_t *strides, void *fcn ); ``` #### stdlib_strided_tt_c( \*arrays\[], \*shape, \*strides, \*fcn ) Applies a binary callback to strided input array elements and assigns results to elements in a strided output array. ```c #include // Create underlying byte arrays: uint8_t x[] = { 0, 0, 0, 0, 0, 0 }; uint8_t y[] = { 0, 0, 0, 0, 0, 0 }; uint8_t out[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; // Define a pointer to an array containing pointers to strided arrays: uint8_t *arrays[] = { x, y, out }; // Define the strides: int64_t strides[] = { 2, 2, 8 }; // Define the number of elements over which to iterate: int64_t shape[] = { 3 }; // Define a callback: static uint16_t fcn( uint16_t x, uint16_t y ) { return x + y; } // Apply the callback: stdlib_strided_tt_c( arrays, shape, strides, (void *)fcn ); ``` The function accepts the following arguments: - **arrays**: `[inout] uint8_t**` array whose first two elements are pointers to strided input arrays and whose last element is a pointer to a strided output array. - **shape**: `[in] int64_t*` array whose only element is the number of elements over which to iterate. - **strides**: `[in] int64_t*` array containing strides (in bytes) for each strided array. - **fcn**: `[in] void*` a `uint16_t (*f)(uint16_t, uint16_t)` function to apply provided as a `void` pointer. ```c void stdlib_strided_tt_c( uint8_t *arrays[], const int64_t *shape, const int64_t *strides, void *fcn ); ``` #### stdlib_strided_tt_c_as_cc_c( \*arrays\[], \*shape, \*strides, \*fcn ) Applies a binary callback to strided input array elements and assigns results to elements in a strided output array. ```c #include "stdlib/complex/float32/ctor.h" #include // Create underlying byte arrays: uint8_t x[] = { 0, 0, 0, 0, 0, 0 }; uint8_t y[] = { 0, 0, 0, 0, 0, 0 }; uint8_t out[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; // Define a pointer to an array containing pointers to strided arrays: uint8_t *arrays[] = { x, y, out }; // Define the strides: int64_t strides[] = { 2, 2, 8 }; // Define the number of elements over which to iterate: int64_t shape[] = { 3 }; // Define a callback: static stdlib_complex64_t fcn( stdlib_complex64_t x, stdlib_complex64_t y ) { // ... } // Apply the callback: stdlib_strided_tt_c_as_cc_c( arrays, shape, strides, (void *)fcn ); ``` The function accepts the following arguments: - **arrays**: `[inout] uint8_t**` array whose first two elements are pointers to strided input arrays and whose last element is a pointer to a strided output array. - **shape**: `[in] int64_t*` array whose only element is the number of elements over which to iterate. - **strides**: `[in] int64_t*` array containing strides (in bytes) for each strided array. - **fcn**: `[in] void*` a `stdlib_complex64_t (*f)(stdlib_complex64_t, stdlib_complex64_t)` function to apply provided as a `void` pointer. ```c void stdlib_strided_tt_c_as_cc_c( uint8_t *arrays[], const int64_t *shape, const int64_t *strides, void *fcn ); ``` #### stdlib_strided_tt_c_as_zz_z( \*arrays\[], \*shape, \*strides, \*fcn ) Applies a binary callback to strided input array elements and assigns results to elements in a strided output array. ```c #include "stdlib/complex/float64/ctor.h" #include // Create underlying byte arrays: uint8_t x[] = { 0, 0, 0, 0, 0, 0 }; uint8_t y[] = { 0, 0, 0, 0, 0, 0 }; uint8_t out[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; // Define a pointer to an array containing pointers to strided arrays: uint8_t *arrays[] = { x, y, out }; // Define the strides: int64_t strides[] = { 2, 2, 8 }; // Define the number of elements over which to iterate: int64_t shape[] = { 3 }; // Define a callback: static stdlib_complex128_t fcn( stdlib_complex128_t x, stdlib_complex128_t y ) { // ... } // Apply the callback: stdlib_strided_tt_c_as_zz_z( arrays, shape, strides, (void *)fcn ); ``` The function accepts the following arguments: - **arrays**: `[inout] uint8_t**` array whose first two elements are pointers to strided input arrays and whose last element is a pointer to a strided output array. - **shape**: `[in] int64_t*` array whose only element is the number of elements over which to iterate. - **strides**: `[in] int64_t*` array containing strides (in bytes) for each strided array. - **fcn**: `[in] void*` a `stdlib_complex128_t (*f)(stdlib_complex128_t, stdlib_complex128_t)` function to apply provided as a `void` pointer. ```c void stdlib_strided_tt_c_as_zz_z( uint8_t *arrays[], const int64_t *shape, const int64_t *strides, void *fcn ); ``` #### stdlib_strided_tt_d( \*arrays\[], \*shape, \*strides, \*fcn ) Applies a binary callback to strided input array elements and assigns results to elements in a strided output array. ```c #include // Create underlying byte arrays: uint8_t x[] = { 0, 0, 0, 0, 0, 0 }; uint8_t y[] = { 0, 0, 0, 0, 0, 0 }; uint8_t out[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; // Define a pointer to an array containing pointers to strided arrays: uint8_t *arrays[] = { x, y, out }; // Define the strides: int64_t strides[] = { 2, 2, 8 }; // Define the number of elements over which to iterate: int64_t shape[] = { 3 }; // Define a callback: static uint16_t fcn( uint16_t x, uint16_t y ) { return x + y; } // Apply the callback: stdlib_strided_tt_d( arrays, shape, strides, (void *)fcn ); ``` The function accepts the following arguments: - **arrays**: `[inout] uint8_t**` array whose first two elements are pointers to strided input arrays and whose last element is a pointer to a strided output array. - **shape**: `[in] int64_t*` array whose only element is the number of elements over which to iterate. - **strides**: `[in] int64_t*` array containing strides (in bytes) for each strided array. - **fcn**: `[in] void*` a `uint16_t (*f)(uint16_t, uint16_t)` function to apply provided as a `void` pointer. ```c void stdlib_strided_tt_d( uint8_t *arrays[], const int64_t *shape, const int64_t *strides, void *fcn ); ``` #### stdlib_strided_tt_d_as_dd_d( \*arrays\[], \*shape, \*strides, \*fcn ) Applies a binary callback to strided input array elements and assigns results to elements in a strided output array. ```c #include // Create underlying byte arrays: uint8_t x[] = { 0, 0, 0, 0, 0, 0 }; uint8_t y[] = { 0, 0, 0, 0, 0, 0 }; uint8_t out[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; // Define a pointer to an array containing pointers to strided arrays: uint8_t *arrays[] = { x, y, out }; // Define the strides: int64_t strides[] = { 2, 2, 8 }; // Define the number of elements over which to iterate: int64_t shape[] = { 3 }; // Define a callback: static double fcn( double x, double y ) { return x + y; } // Apply the callback: stdlib_strided_tt_d_as_dd_d( arrays, shape, strides, (void *)fcn ); ``` The function accepts the following arguments: - **arrays**: `[inout] uint8_t**` array whose first two elements are pointers to strided input arrays and whose last element is a pointer to a strided output array. - **shape**: `[in] int64_t*` array whose only element is the number of elements over which to iterate. - **strides**: `[in] int64_t*` array containing strides (in bytes) for each strided array. - **fcn**: `[in] void*` a `double (*f)(double, double)` function to apply provided as a `void` pointer. ```c void stdlib_strided_tt_d_as_dd_d( uint8_t *arrays[], const int64_t *shape, const int64_t *strides, void *fcn ); ``` #### stdlib_strided_tt_f( \*arrays\[], \*shape, \*strides, \*fcn ) Applies a binary callback to strided input array elements and assigns results to elements in a strided output array. ```c #include // Create underlying byte arrays: uint8_t x[] = { 0, 0, 0, 0, 0, 0 }; uint8_t y[] = { 0, 0, 0, 0, 0, 0 }; uint8_t out[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; // Define a pointer to an array containing pointers to strided arrays: uint8_t *arrays[] = { x, y, out }; // Define the strides: int64_t strides[] = { 2, 2, 4 }; // Define the number of elements over which to iterate: int64_t shape[] = { 3 }; // Define a callback: static uint16_t fcn( uint16_t x, uint16_t y ) { return x + y; } // Apply the callback: stdlib_strided_tt_f( arrays, shape, strides, (void *)fcn ); ``` The function accepts the following arguments: - **arrays**: `[inout] uint8_t**` array whose first two elements are pointers to strided input arrays and whose last element is a pointer to a strided output array. - **shape**: `[in] int64_t*` array whose only element is the number of elements over which to iterate. - **strides**: `[in] int64_t*` array containing strides (in bytes) for each strided array. - **fcn**: `[in] void*` a `uint16_t (*f)(uint16_t, uint16_t)` function to apply provided as a `void` pointer. ```c void stdlib_strided_tt_f( uint8_t *arrays[], const int64_t *shape, const int64_t *strides, void *fcn ); ``` #### stdlib_strided_tt_f_as_dd_d( \*arrays\[], \*shape, \*strides, \*fcn ) Applies a binary callback to strided input array elements and assigns results to elements in a strided output array. ```c #include // Create underlying byte arrays: uint8_t x[] = { 0, 0, 0, 0, 0, 0 }; uint8_t y[] = { 0, 0, 0, 0, 0, 0 }; uint8_t out[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; // Define a pointer to an array containing pointers to strided arrays: uint8_t *arrays[] = { x, y, out }; // Define the strides: int64_t strides[] = { 2, 2, 4 }; // Define the number of elements over which to iterate: int64_t shape[] = { 3 }; // Define a callback: static double fcn( double x, double y ) { return x + y; } // Apply the callback: stdlib_strided_tt_f_as_dd_d( arrays, shape, strides, (void *)fcn ); ``` The function accepts the following arguments: - **arrays**: `[inout] uint8_t**` array whose first two elements are pointers to strided input arrays and whose last element is a pointer to a strided output array. - **shape**: `[in] int64_t*` array whose only element is the number of elements over which to iterate. - **strides**: `[in] int64_t*` array containing strides (in bytes) for each strided array. - **fcn**: `[in] void*` a `double (*f)(double, double)` function to apply provided as a `void` pointer. ```c void stdlib_strided_tt_f_as_dd_d( uint8_t *arrays[], const int64_t *shape, const int64_t *strides, void *fcn ); ``` #### stdlib_strided_tt_f_as_ff_f( \*arrays\[], \*shape, \*strides, \*fcn ) Applies a binary callback to strided input array elements and assigns results to elements in a strided output array. ```c #include // Create underlying byte arrays: uint8_t x[] = { 0, 0, 0, 0, 0, 0 }; uint8_t y[] = { 0, 0, 0, 0, 0, 0 }; uint8_t out[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; // Define a pointer to an array containing pointers to strided arrays: uint8_t *arrays[] = { x, y, out }; // Define the strides: int64_t strides[] = { 2, 2, 4 }; // Define the number of elements over which to iterate: int64_t shape[] = { 3 }; // Define a callback: static float fcn( float x, float y ) { return x + y; } // Apply the callback: stdlib_strided_tt_f_as_ff_f( arrays, shape, strides, (void *)fcn ); ``` The function accepts the following arguments: - **arrays**: `[inout] uint8_t**` array whose first two elements are pointers to strided input arrays and whose last element is a pointer to a strided output array. - **shape**: `[in] int64_t*` array whose only element is the number of elements over which to iterate. - **strides**: `[in] int64_t*` array containing strides (in bytes) for each strided array. - **fcn**: `[in] void*` a `float (*f)(float, float)` function to apply provided as a `void` pointer. ```c void stdlib_strided_tt_f_as_ff_f( uint8_t *arrays[], const int64_t *shape, const int64_t *strides, void *fcn ); ``` #### stdlib_strided_tt_i( \*arrays\[], \*shape, \*strides, \*fcn ) Applies a binary callback to strided input array elements and assigns results to elements in a strided output array. ```c #include // Create underlying byte arrays: uint8_t x[] = { 0, 0, 0, 0, 0, 0 }; uint8_t y[] = { 0, 0, 0, 0, 0, 0 }; uint8_t out[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; // Define a pointer to an array containing pointers to strided arrays: uint8_t *arrays[] = { x, y, out }; // Define the strides: int64_t strides[] = { 2, 2, 4 }; // Define the number of elements over which to iterate: int64_t shape[] = { 3 }; // Define a callback: static uint16_t fcn( uint16_t x, uint16_t y ) { return x + y; } // Apply the callback: stdlib_strided_tt_i( arrays, shape, strides, (void *)fcn ); ``` The function accepts the following arguments: - **arrays**: `[inout] uint8_t**` array whose first two elements are pointers to strided input arrays and whose last element is a pointer to a strided output array. - **shape**: `[in] int64_t*` array whose only element is the number of elements over which to iterate. - **strides**: `[in] int64_t*` array containing strides (in bytes) for each strided array. - **fcn**: `[in] void*` a `uint16_t (*f)(uint16_t, uint16_t)` function to apply provided as a `void` pointer. ```c void stdlib_strided_tt_i( uint8_t *arrays[], const int64_t *shape, const int64_t *strides, void *fcn ); ``` #### stdlib_strided_tt_i_as_ii_i( \*arrays\[], \*shape, \*strides, \*fcn ) Applies a binary callback to strided input array elements and assigns results to elements in a strided output array. ```c #include // Create underlying byte arrays: uint8_t x[] = { 0, 0, 0, 0, 0, 0 }; uint8_t y[] = { 0, 0, 0, 0, 0, 0 }; uint8_t out[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; // Define a pointer to an array containing pointers to strided arrays: uint8_t *arrays[] = { x, y, out }; // Define the strides: int64_t strides[] = { 2, 2, 4 }; // Define the number of elements over which to iterate: int64_t shape[] = { 3 }; // Define a callback: static int32_t fcn( int32_t x, int32_t y ) { return x + y; } // Apply the callback: stdlib_strided_tt_i_as_ii_i( arrays, shape, strides, (void *)fcn ); ``` The function accepts the following arguments: - **arrays**: `[inout] uint8_t**` array whose first two elements are pointers to strided input arrays and whose last element is a pointer to a strided output array. - **shape**: `[in] int64_t*` array whose only element is the number of elements over which to iterate. - **strides**: `[in] int64_t*` array containing strides (in bytes) for each strided array. - **fcn**: `[in] void*` a `int32_t (*f)(int32_t, int32_t)` function to apply provided as a `void` pointer. ```c void stdlib_strided_tt_i_as_ii_i( uint8_t *arrays[], const int64_t *shape, const int64_t *strides, void *fcn ); ``` #### stdlib_strided_tt_t( \*arrays\[], \*shape, \*strides, \*fcn ) Applies a binary callback to strided input array elements and assigns results to elements in a strided output array. ```c #include // Create underlying byte arrays: uint8_t x[] = { 0, 0, 0, 0, 0, 0 }; uint8_t y[] = { 0, 0, 0, 0, 0, 0 }; uint8_t out[] = { 0, 0, 0, 0, 0, 0 }; // Define a pointer to an array containing pointers to strided arrays: uint8_t *arrays[] = { x, y, out }; // Define the strides: int64_t strides[] = { 2, 2, 2 }; // Define the number of elements over which to iterate: int64_t shape[] = { 3 }; // Define a callback: static uint16_t fcn( uint16_t x, uint16_t y ) { return x + y; } // Apply the callback: stdlib_strided_tt_t( arrays, shape, strides, (void *)fcn ); ``` The function accepts the following arguments: - **arrays**: `[inout] uint8_t**` array whose first two elements are pointers to strided input arrays and whose last element is a pointer to a strided output array. - **shape**: `[in] int64_t*` array whose only element is the number of elements over which to iterate. - **strides**: `[in] int64_t*` array containing strides (in bytes) for each strided array. - **fcn**: `[in] void*` a `uint16_t (*f)(uint16_t, uint16_t)` function to apply provided as a `void` pointer. ```c void stdlib_strided_tt_t( uint8_t *arrays[], const int64_t *shape, const int64_t *strides, void *fcn ); ``` #### stdlib_strided_tt_u( \*arrays\[], \*shape, \*strides, \*fcn ) Applies a binary callback to strided input array elements and assigns results to elements in a strided output array. ```c #include // Create underlying byte arrays: uint8_t x[] = { 0, 0, 0, 0, 0, 0 }; uint8_t y[] = { 0, 0, 0, 0, 0, 0 }; uint8_t out[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; // Define a pointer to an array containing pointers to strided arrays: uint8_t *arrays[] = { x, y, out }; // Define the strides: int64_t strides[] = { 2, 2, 4 }; // Define the number of elements over which to iterate: int64_t shape[] = { 3 }; // Define a callback: static uint16_t fcn( uint16_t x, uint16_t y ) { return x + y; } // Apply the callback: stdlib_strided_tt_u( arrays, shape, strides, (void *)fcn ); ``` The function accepts the following arguments: - **arrays**: `[inout] uint8_t**` array whose first two elements are pointers to strided input arrays and whose last element is a pointer to a strided output array. - **shape**: `[in] int64_t*` array whose only element is the number of elements over which to iterate. - **strides**: `[in] int64_t*` array containing strides (in bytes) for each strided array. - **fcn**: `[in] void*` a `uint16_t (*f)(uint16_t, uint16_t)` function to apply provided as a `void` pointer. ```c void stdlib_strided_tt_u( uint8_t *arrays[], const int64_t *shape, const int64_t *strides, void *fcn ); ``` #### stdlib_strided_tt_u_as_uu_u( \*arrays\[], \*shape, \*strides, \*fcn ) Applies a binary callback to strided input array elements and assigns results to elements in a strided output array. ```c #include // Create underlying byte arrays: uint8_t x[] = { 0, 0, 0, 0, 0, 0 }; uint8_t y[] = { 0, 0, 0, 0, 0, 0 }; uint8_t out[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; // Define a pointer to an array containing pointers to strided arrays: uint8_t *arrays[] = { x, y, out }; // Define the strides: int64_t strides[] = { 2, 2, 4 }; // Define the number of elements over which to iterate: int64_t shape[] = { 3 }; // Define a callback: static uint32_t fcn( uint32_t x, uint32_t y ) { return x + y; } // Apply the callback: stdlib_strided_tt_u_as_uu_u( arrays, shape, strides, (void *)fcn ); ``` The function accepts the following arguments: - **arrays**: `[inout] uint8_t**` array whose first two elements are pointers to strided input arrays and whose last element is a pointer to a strided output array. - **shape**: `[in] int64_t*` array whose only element is the number of elements over which to iterate. - **strides**: `[in] int64_t*` array containing strides (in bytes) for each strided array. - **fcn**: `[in] void*` a `uint32_t (*f)(uint32_t, uint32_t)` function to apply provided as a `void` pointer. ```c void stdlib_strided_tt_u_as_uu_u( uint8_t *arrays[], const int64_t *shape, const int64_t *strides, void *fcn ); ``` #### stdlib_strided_tt_z( \*arrays\[], \*shape, \*strides, \*fcn ) Applies a binary callback to strided input array elements and assigns results to elements in a strided output array. ```c #include // Create underlying byte arrays: uint8_t x[] = { 0, 0, 0, 0, 0, 0 }; uint8_t y[] = { 0, 0, 0, 0, 0, 0 }; uint8_t out[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; // Define a pointer to an array containing pointers to strided arrays: uint8_t *arrays[] = { x, y, out }; // Define the strides: int64_t strides[] = { 2, 2, 16 }; // Define the number of elements over which to iterate: int64_t shape[] = { 3 }; // Define a callback: static uint16_t fcn( uint16_t x, uint16_t y ) { return x + y; } // Apply the callback: stdlib_strided_tt_z( arrays, shape, strides, (void *)fcn ); ``` The function accepts the following arguments: - **arrays**: `[inout] uint8_t**` array whose first two elements are pointers to strided input arrays and whose last element is a pointer to a strided output array. - **shape**: `[in] int64_t*` array whose only element is the number of elements over which to iterate. - **strides**: `[in] int64_t*` array containing strides (in bytes) for each strided array. - **fcn**: `[in] void*` a `uint16_t (*f)(uint16_t, uint16_t)` function to apply provided as a `void` pointer. ```c void stdlib_strided_tt_z( uint8_t *arrays[], const int64_t *shape, const int64_t *strides, void *fcn ); ``` #### stdlib_strided_tt_z_as_zz_z( \*arrays\[], \*shape, \*strides, \*fcn ) Applies a binary callback to strided input array elements and assigns results to elements in a strided output array. ```c #include "stdlib/complex/float64/ctor.h" #include // Create underlying byte arrays: uint8_t x[] = { 0, 0, 0, 0, 0, 0 }; uint8_t y[] = { 0, 0, 0, 0, 0, 0 }; uint8_t out[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; // Define a pointer to an array containing pointers to strided arrays: uint8_t *arrays[] = { x, y, out }; // Define the strides: int64_t strides[] = { 2, 2, 16 }; // Define the number of elements over which to iterate: int64_t shape[] = { 3 }; // Define a callback: static stdlib_complex128_t fcn( stdlib_complex128_t x, stdlib_complex128_t y ) { // ... } // Apply the callback: stdlib_strided_tt_z_as_zz_z( arrays, shape, strides, (void *)fcn ); ``` The function accepts the following arguments: - **arrays**: `[inout] uint8_t**` array whose first two elements are pointers to strided input arrays and whose last element is a pointer to a strided output array. - **shape**: `[in] int64_t*` array whose only element is the number of elements over which to iterate. - **strides**: `[in] int64_t*` array containing strides (in bytes) for each strided array. - **fcn**: `[in] void*` a `stdlib_complex128_t (*f)(stdlib_complex128_t, stdlib_complex128_t)` function to apply provided as a `void` pointer. ```c void stdlib_strided_tt_z_as_zz_z( uint8_t *arrays[], const int64_t *shape, const int64_t *strides, void *fcn ); ``` #### stdlib_strided_tu_d_as_dd_d( \*arrays\[], \*shape, \*strides, \*fcn ) Applies a binary callback to strided input array elements and assigns results to elements in a strided output array. ```c #include // Create underlying byte arrays: uint8_t x[] = { 0, 0, 0, 0, 0, 0 }; uint8_t y[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; uint8_t out[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; // Define a pointer to an array containing pointers to strided arrays: uint8_t *arrays[] = { x, y, out }; // Define the strides: int64_t strides[] = { 2, 4, 8 }; // Define the number of elements over which to iterate: int64_t shape[] = { 3 }; // Define a callback: static double fcn( double x, double y ) { return x + y; } // Apply the callback: stdlib_strided_tu_d_as_dd_d( arrays, shape, strides, (void *)fcn ); ``` The function accepts the following arguments: - **arrays**: `[inout] uint8_t**` array whose first two elements are pointers to strided input arrays and whose last element is a pointer to a strided output array. - **shape**: `[in] int64_t*` array whose only element is the number of elements over which to iterate. - **strides**: `[in] int64_t*` array containing strides (in bytes) for each strided array. - **fcn**: `[in] void*` a `double (*f)(double, double)` function to apply provided as a `void` pointer. ```c void stdlib_strided_tu_d_as_dd_d( uint8_t *arrays[], const int64_t *shape, const int64_t *strides, void *fcn ); ``` #### stdlib_strided_tu_u_as_uu_u( \*arrays\[], \*shape, \*strides, \*fcn ) Applies a binary callback to strided input array elements and assigns results to elements in a strided output array. ```c #include // Create underlying byte arrays: uint8_t x[] = { 0, 0, 0, 0, 0, 0 }; uint8_t y[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; uint8_t out[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; // Define a pointer to an array containing pointers to strided arrays: uint8_t *arrays[] = { x, y, out }; // Define the strides: int64_t strides[] = { 2, 4, 4 }; // Define the number of elements over which to iterate: int64_t shape[] = { 3 }; // Define a callback: static uint32_t fcn( uint32_t x, uint32_t y ) { return x + y; } // Apply the callback: stdlib_strided_tu_u_as_uu_u( arrays, shape, strides, (void *)fcn ); ``` The function accepts the following arguments: - **arrays**: `[inout] uint8_t**` array whose first two elements are pointers to strided input arrays and whose last element is a pointer to a strided output array. - **shape**: `[in] int64_t*` array whose only element is the number of elements over which to iterate. - **strides**: `[in] int64_t*` array containing strides (in bytes) for each strided array. - **fcn**: `[in] void*` a `uint32_t (*f)(uint32_t, uint32_t)` function to apply provided as a `void` pointer. ```c void stdlib_strided_tu_u_as_uu_u( uint8_t *arrays[], const int64_t *shape, const int64_t *strides, void *fcn ); ``` #### stdlib_strided_tu_z_as_zz_z( \*arrays\[], \*shape, \*strides, \*fcn ) Applies a binary callback to strided input array elements and assigns results to elements in a strided output array. ```c #include "stdlib/complex/float64/ctor.h" #include // Create underlying byte arrays: uint8_t x[] = { 0, 0, 0, 0, 0, 0 }; uint8_t y[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; uint8_t out[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; // Define a pointer to an array containing pointers to strided arrays: uint8_t *arrays[] = { x, y, out }; // Define the strides: int64_t strides[] = { 2, 4, 16 }; // Define the number of elements over which to iterate: int64_t shape[] = { 3 }; // Define a callback: static stdlib_complex128_t fcn( stdlib_complex128_t x, stdlib_complex128_t y ) { // ... } // Apply the callback: stdlib_strided_tu_z_as_zz_z( arrays, shape, strides, (void *)fcn ); ``` The function accepts the following arguments: - **arrays**: `[inout] uint8_t**` array whose first two elements are pointers to strided input arrays and whose last element is a pointer to a strided output array. - **shape**: `[in] int64_t*` array whose only element is the number of elements over which to iterate. - **strides**: `[in] int64_t*` array containing strides (in bytes) for each strided array. - **fcn**: `[in] void*` a `stdlib_complex128_t (*f)(stdlib_complex128_t, stdlib_complex128_t)` function to apply provided as a `void` pointer. ```c void stdlib_strided_tu_z_as_zz_z( uint8_t *arrays[], const int64_t *shape, const int64_t *strides, void *fcn ); ``` #### stdlib_strided_tz_z_as_zz_z( \*arrays\[], \*shape, \*strides, \*fcn ) Applies a binary callback to strided input array elements and assigns results to elements in a strided output array. ```c #include "stdlib/complex/float64/ctor.h" #include // Create underlying byte arrays: uint8_t x[] = { 0, 0, 0, 0, 0, 0 }; uint8_t y[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; uint8_t out[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; // Define a pointer to an array containing pointers to strided arrays: uint8_t *arrays[] = { x, y, out }; // Define the strides: int64_t strides[] = { 2, 16, 16 }; // Define the number of elements over which to iterate: int64_t shape[] = { 3 }; // Define a callback: static stdlib_complex128_t fcn( stdlib_complex128_t x, stdlib_complex128_t y ) { // ... } // Apply the callback: stdlib_strided_tz_z_as_zz_z( arrays, shape, strides, (void *)fcn ); ``` The function accepts the following arguments: - **arrays**: `[inout] uint8_t**` array whose first two elements are pointers to strided input arrays and whose last element is a pointer to a strided output array. - **shape**: `[in] int64_t*` array whose only element is the number of elements over which to iterate. - **strides**: `[in] int64_t*` array containing strides (in bytes) for each strided array. - **fcn**: `[in] void*` a `stdlib_complex128_t (*f)(stdlib_complex128_t, stdlib_complex128_t)` function to apply provided as a `void` pointer. ```c void stdlib_strided_tz_z_as_zz_z( uint8_t *arrays[], const int64_t *shape, const int64_t *strides, void *fcn ); ``` #### stdlib_strided_ub_d_as_dd_d( \*arrays\[], \*shape, \*strides, \*fcn ) Applies a binary callback to strided input array elements and assigns results to elements in a strided output array. ```c #include // Create underlying byte arrays: uint8_t x[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; uint8_t y[] = { 0, 0, 0 }; uint8_t out[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; // Define a pointer to an array containing pointers to strided arrays: uint8_t *arrays[] = { x, y, out }; // Define the strides: int64_t strides[] = { 4, 1, 8 }; // Define the number of elements over which to iterate: int64_t shape[] = { 3 }; // Define a callback: static double fcn( double x, double y ) { return x + y; } // Apply the callback: stdlib_strided_ub_d_as_dd_d( arrays, shape, strides, (void *)fcn ); ``` The function accepts the following arguments: - **arrays**: `[inout] uint8_t**` array whose first two elements are pointers to strided input arrays and whose last element is a pointer to a strided output array. - **shape**: `[in] int64_t*` array whose only element is the number of elements over which to iterate. - **strides**: `[in] int64_t*` array containing strides (in bytes) for each strided array. - **fcn**: `[in] void*` a `double (*f)(double, double)` function to apply provided as a `void` pointer. ```c void stdlib_strided_ub_d_as_dd_d( uint8_t *arrays[], const int64_t *shape, const int64_t *strides, void *fcn ); ``` #### stdlib_strided_ub_u_as_uu_u( \*arrays\[], \*shape, \*strides, \*fcn ) Applies a binary callback to strided input array elements and assigns results to elements in a strided output array. ```c #include // Create underlying byte arrays: uint8_t x[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; uint8_t y[] = { 0, 0, 0 }; uint8_t out[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; // Define a pointer to an array containing pointers to strided arrays: uint8_t *arrays[] = { x, y, out }; // Define the strides: int64_t strides[] = { 4, 1, 4 }; // Define the number of elements over which to iterate: int64_t shape[] = { 3 }; // Define a callback: static uint32_t fcn( uint32_t x, uint32_t y ) { return x + y; } // Apply the callback: stdlib_strided_ub_u_as_uu_u( arrays, shape, strides, (void *)fcn ); ``` The function accepts the following arguments: - **arrays**: `[inout] uint8_t**` array whose first two elements are pointers to strided input arrays and whose last element is a pointer to a strided output array. - **shape**: `[in] int64_t*` array whose only element is the number of elements over which to iterate. - **strides**: `[in] int64_t*` array containing strides (in bytes) for each strided array. - **fcn**: `[in] void*` a `uint32_t (*f)(uint32_t, uint32_t)` function to apply provided as a `void` pointer. ```c void stdlib_strided_ub_u_as_uu_u( uint8_t *arrays[], const int64_t *shape, const int64_t *strides, void *fcn ); ``` #### stdlib_strided_ub_z_as_zz_z( \*arrays\[], \*shape, \*strides, \*fcn ) Applies a binary callback to strided input array elements and assigns results to elements in a strided output array. ```c #include "stdlib/complex/float64/ctor.h" #include // Create underlying byte arrays: uint8_t x[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; uint8_t y[] = { 0, 0, 0 }; uint8_t out[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; // Define a pointer to an array containing pointers to strided arrays: uint8_t *arrays[] = { x, y, out }; // Define the strides: int64_t strides[] = { 4, 1, 16 }; // Define the number of elements over which to iterate: int64_t shape[] = { 3 }; // Define a callback: static stdlib_complex128_t fcn( stdlib_complex128_t x, stdlib_complex128_t y ) { // ... } // Apply the callback: stdlib_strided_ub_z_as_zz_z( arrays, shape, strides, (void *)fcn ); ``` The function accepts the following arguments: - **arrays**: `[inout] uint8_t**` array whose first two elements are pointers to strided input arrays and whose last element is a pointer to a strided output array. - **shape**: `[in] int64_t*` array whose only element is the number of elements over which to iterate. - **strides**: `[in] int64_t*` array containing strides (in bytes) for each strided array. - **fcn**: `[in] void*` a `stdlib_complex128_t (*f)(stdlib_complex128_t, stdlib_complex128_t)` function to apply provided as a `void` pointer. ```c void stdlib_strided_ub_z_as_zz_z( uint8_t *arrays[], const int64_t *shape, const int64_t *strides, void *fcn ); ``` #### stdlib_strided_uc_z_as_zz_z( \*arrays\[], \*shape, \*strides, \*fcn ) Applies a binary callback to strided input array elements and assigns results to elements in a strided output array. ```c #include "stdlib/complex/float64/ctor.h" #include // Create underlying byte arrays: uint8_t x[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; uint8_t y[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; uint8_t out[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; // Define a pointer to an array containing pointers to strided arrays: uint8_t *arrays[] = { x, y, out }; // Define the strides: int64_t strides[] = { 4, 8, 16 }; // Define the number of elements over which to iterate: int64_t shape[] = { 3 }; // Define a callback: static stdlib_complex128_t fcn( stdlib_complex128_t x, stdlib_complex128_t y ) { // ... } // Apply the callback: stdlib_strided_uc_z_as_zz_z( arrays, shape, strides, (void *)fcn ); ``` The function accepts the following arguments: - **arrays**: `[inout] uint8_t**` array whose first two elements are pointers to strided input arrays and whose last element is a pointer to a strided output array. - **shape**: `[in] int64_t*` array whose only element is the number of elements over which to iterate. - **strides**: `[in] int64_t*` array containing strides (in bytes) for each strided array. - **fcn**: `[in] void*` a `stdlib_complex128_t (*f)(stdlib_complex128_t, stdlib_complex128_t)` function to apply provided as a `void` pointer. ```c void stdlib_strided_uc_z_as_zz_z( uint8_t *arrays[], const int64_t *shape, const int64_t *strides, void *fcn ); ``` #### stdlib_strided_ud_d_as_dd_d( \*arrays\[], \*shape, \*strides, \*fcn ) Applies a binary callback to strided input array elements and assigns results to elements in a strided output array. ```c #include // Create underlying byte arrays: uint8_t x[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; uint8_t y[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; uint8_t out[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; // Define a pointer to an array containing pointers to strided arrays: uint8_t *arrays[] = { x, y, out }; // Define the strides: int64_t strides[] = { 4, 8, 8 }; // Define the number of elements over which to iterate: int64_t shape[] = { 3 }; // Define a callback: static double fcn( double x, double y ) { return x + y; } // Apply the callback: stdlib_strided_ud_d_as_dd_d( arrays, shape, strides, (void *)fcn ); ``` The function accepts the following arguments: - **arrays**: `[inout] uint8_t**` array whose first two elements are pointers to strided input arrays and whose last element is a pointer to a strided output array. - **shape**: `[in] int64_t*` array whose only element is the number of elements over which to iterate. - **strides**: `[in] int64_t*` array containing strides (in bytes) for each strided array. - **fcn**: `[in] void*` a `double (*f)(double, double)` function to apply provided as a `void` pointer. ```c void stdlib_strided_ud_d_as_dd_d( uint8_t *arrays[], const int64_t *shape, const int64_t *strides, void *fcn ); ``` #### stdlib_strided_ud_z_as_zz_z( \*arrays\[], \*shape, \*strides, \*fcn ) Applies a binary callback to strided input array elements and assigns results to elements in a strided output array. ```c #include "stdlib/complex/float64/ctor.h" #include // Create underlying byte arrays: uint8_t x[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; uint8_t y[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; uint8_t out[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; // Define a pointer to an array containing pointers to strided arrays: uint8_t *arrays[] = { x, y, out }; // Define the strides: int64_t strides[] = { 4, 8, 16 }; // Define the number of elements over which to iterate: int64_t shape[] = { 3 }; // Define a callback: static stdlib_complex128_t fcn( stdlib_complex128_t x, stdlib_complex128_t y ) { // ... } // Apply the callback: stdlib_strided_ud_z_as_zz_z( arrays, shape, strides, (void *)fcn ); ``` The function accepts the following arguments: - **arrays**: `[inout] uint8_t**` array whose first two elements are pointers to strided input arrays and whose last element is a pointer to a strided output array. - **shape**: `[in] int64_t*` array whose only element is the number of elements over which to iterate. - **strides**: `[in] int64_t*` array containing strides (in bytes) for each strided array. - **fcn**: `[in] void*` a `stdlib_complex128_t (*f)(stdlib_complex128_t, stdlib_complex128_t)` function to apply provided as a `void` pointer. ```c void stdlib_strided_ud_z_as_zz_z( uint8_t *arrays[], const int64_t *shape, const int64_t *strides, void *fcn ); ``` #### stdlib_strided_uf_d_as_dd_d( \*arrays\[], \*shape, \*strides, \*fcn ) Applies a binary callback to strided input array elements and assigns results to elements in a strided output array. ```c #include // Create underlying byte arrays: uint8_t x[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; uint8_t y[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; uint8_t out[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; // Define a pointer to an array containing pointers to strided arrays: uint8_t *arrays[] = { x, y, out }; // Define the strides: int64_t strides[] = { 4, 4, 8 }; // Define the number of elements over which to iterate: int64_t shape[] = { 3 }; // Define a callback: static double fcn( double x, double y ) { return x + y; } // Apply the callback: stdlib_strided_uf_d_as_dd_d( arrays, shape, strides, (void *)fcn ); ``` The function accepts the following arguments: - **arrays**: `[inout] uint8_t**` array whose first two elements are pointers to strided input arrays and whose last element is a pointer to a strided output array. - **shape**: `[in] int64_t*` array whose only element is the number of elements over which to iterate. - **strides**: `[in] int64_t*` array containing strides (in bytes) for each strided array. - **fcn**: `[in] void*` a `double (*f)(double, double)` function to apply provided as a `void` pointer. ```c void stdlib_strided_uf_d_as_dd_d( uint8_t *arrays[], const int64_t *shape, const int64_t *strides, void *fcn ); ``` #### stdlib_strided_uf_z_as_zz_z( \*arrays\[], \*shape, \*strides, \*fcn ) Applies a binary callback to strided input array elements and assigns results to elements in a strided output array. ```c #include "stdlib/complex/float64/ctor.h" #include // Create underlying byte arrays: uint8_t x[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; uint8_t y[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; uint8_t out[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; // Define a pointer to an array containing pointers to strided arrays: uint8_t *arrays[] = { x, y, out }; // Define the strides: int64_t strides[] = { 4, 4, 16 }; // Define the number of elements over which to iterate: int64_t shape[] = { 3 }; // Define a callback: static stdlib_complex128_t fcn( stdlib_complex128_t x, stdlib_complex128_t y ) { // ... } // Apply the callback: stdlib_strided_uf_z_as_zz_z( arrays, shape, strides, (void *)fcn ); ``` The function accepts the following arguments: - **arrays**: `[inout] uint8_t**` array whose first two elements are pointers to strided input arrays and whose last element is a pointer to a strided output array. - **shape**: `[in] int64_t*` array whose only element is the number of elements over which to iterate. - **strides**: `[in] int64_t*` array containing strides (in bytes) for each strided array. - **fcn**: `[in] void*` a `stdlib_complex128_t (*f)(stdlib_complex128_t, stdlib_complex128_t)` function to apply provided as a `void` pointer. ```c void stdlib_strided_uf_z_as_zz_z( uint8_t *arrays[], const int64_t *shape, const int64_t *strides, void *fcn ); ``` #### stdlib_strided_ui_d_as_dd_d( \*arrays\[], \*shape, \*strides, \*fcn ) Applies a binary callback to strided input array elements and assigns results to elements in a strided output array. ```c #include // Create underlying byte arrays: uint8_t x[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; uint8_t y[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; uint8_t out[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; // Define a pointer to an array containing pointers to strided arrays: uint8_t *arrays[] = { x, y, out }; // Define the strides: int64_t strides[] = { 4, 4, 8 }; // Define the number of elements over which to iterate: int64_t shape[] = { 3 }; // Define a callback: static double fcn( double x, double y ) { return x + y; } // Apply the callback: stdlib_strided_ui_d_as_dd_d( arrays, shape, strides, (void *)fcn ); ``` The function accepts the following arguments: - **arrays**: `[inout] uint8_t**` array whose first two elements are pointers to strided input arrays and whose last element is a pointer to a strided output array. - **shape**: `[in] int64_t*` array whose only element is the number of elements over which to iterate. - **strides**: `[in] int64_t*` array containing strides (in bytes) for each strided array. - **fcn**: `[in] void*` a `double (*f)(double, double)` function to apply provided as a `void` pointer. ```c void stdlib_strided_ui_d_as_dd_d( uint8_t *arrays[], const int64_t *shape, const int64_t *strides, void *fcn ); ``` #### stdlib_strided_ui_z_as_zz_z( \*arrays\[], \*shape, \*strides, \*fcn ) Applies a binary callback to strided input array elements and assigns results to elements in a strided output array. ```c #include "stdlib/complex/float64/ctor.h" #include // Create underlying byte arrays: uint8_t x[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; uint8_t y[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; uint8_t out[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; // Define a pointer to an array containing pointers to strided arrays: uint8_t *arrays[] = { x, y, out }; // Define the strides: int64_t strides[] = { 4, 4, 16 }; // Define the number of elements over which to iterate: int64_t shape[] = { 3 }; // Define a callback: static stdlib_complex128_t fcn( stdlib_complex128_t x, stdlib_complex128_t y ) { // ... } // Apply the callback: stdlib_strided_ui_z_as_zz_z( arrays, shape, strides, (void *)fcn ); ``` The function accepts the following arguments: - **arrays**: `[inout] uint8_t**` array whose first two elements are pointers to strided input arrays and whose last element is a pointer to a strided output array. - **shape**: `[in] int64_t*` array whose only element is the number of elements over which to iterate. - **strides**: `[in] int64_t*` array containing strides (in bytes) for each strided array. - **fcn**: `[in] void*` a `stdlib_complex128_t (*f)(stdlib_complex128_t, stdlib_complex128_t)` function to apply provided as a `void` pointer. ```c void stdlib_strided_ui_z_as_zz_z( uint8_t *arrays[], const int64_t *shape, const int64_t *strides, void *fcn ); ``` #### stdlib_strided_uk_d_as_dd_d( \*arrays\[], \*shape, \*strides, \*fcn ) Applies a binary callback to strided input array elements and assigns results to elements in a strided output array. ```c #include // Create underlying byte arrays: uint8_t x[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; uint8_t y[] = { 0, 0, 0, 0, 0, 0 }; uint8_t out[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; // Define a pointer to an array containing pointers to strided arrays: uint8_t *arrays[] = { x, y, out }; // Define the strides: int64_t strides[] = { 4, 2, 8 }; // Define the number of elements over which to iterate: int64_t shape[] = { 3 }; // Define a callback: static double fcn( double x, double y ) { return x + y; } // Apply the callback: stdlib_strided_uk_d_as_dd_d( arrays, shape, strides, (void *)fcn ); ``` The function accepts the following arguments: - **arrays**: `[inout] uint8_t**` array whose first two elements are pointers to strided input arrays and whose last element is a pointer to a strided output array. - **shape**: `[in] int64_t*` array whose only element is the number of elements over which to iterate. - **strides**: `[in] int64_t*` array containing strides (in bytes) for each strided array. - **fcn**: `[in] void*` a `double (*f)(double, double)` function to apply provided as a `void` pointer. ```c void stdlib_strided_uk_d_as_dd_d( uint8_t *arrays[], const int64_t *shape, const int64_t *strides, void *fcn ); ``` #### stdlib_strided_uk_z_as_zz_z( \*arrays\[], \*shape, \*strides, \*fcn ) Applies a binary callback to strided input array elements and assigns results to elements in a strided output array. ```c #include "stdlib/complex/float64/ctor.h" #include // Create underlying byte arrays: uint8_t x[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; uint8_t y[] = { 0, 0, 0, 0, 0, 0 }; uint8_t out[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; // Define a pointer to an array containing pointers to strided arrays: uint8_t *arrays[] = { x, y, out }; // Define the strides: int64_t strides[] = { 4, 2, 16 }; // Define the number of elements over which to iterate: int64_t shape[] = { 3 }; // Define a callback: static stdlib_complex128_t fcn( stdlib_complex128_t x, stdlib_complex128_t y ) { // ... } // Apply the callback: stdlib_strided_uk_z_as_zz_z( arrays, shape, strides, (void *)fcn ); ``` The function accepts the following arguments: - **arrays**: `[inout] uint8_t**` array whose first two elements are pointers to strided input arrays and whose last element is a pointer to a strided output array. - **shape**: `[in] int64_t*` array whose only element is the number of elements over which to iterate. - **strides**: `[in] int64_t*` array containing strides (in bytes) for each strided array. - **fcn**: `[in] void*` a `stdlib_complex128_t (*f)(stdlib_complex128_t, stdlib_complex128_t)` function to apply provided as a `void` pointer. ```c void stdlib_strided_uk_z_as_zz_z( uint8_t *arrays[], const int64_t *shape, const int64_t *strides, void *fcn ); ``` #### stdlib_strided_us_d_as_dd_d( \*arrays\[], \*shape, \*strides, \*fcn ) Applies a binary callback to strided input array elements and assigns results to elements in a strided output array. ```c #include // Create underlying byte arrays: uint8_t x[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; uint8_t y[] = { 0, 0, 0 }; uint8_t out[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; // Define a pointer to an array containing pointers to strided arrays: uint8_t *arrays[] = { x, y, out }; // Define the strides: int64_t strides[] = { 4, 1, 8 }; // Define the number of elements over which to iterate: int64_t shape[] = { 3 }; // Define a callback: static double fcn( double x, double y ) { return x + y; } // Apply the callback: stdlib_strided_us_d_as_dd_d( arrays, shape, strides, (void *)fcn ); ``` The function accepts the following arguments: - **arrays**: `[inout] uint8_t**` array whose first two elements are pointers to strided input arrays and whose last element is a pointer to a strided output array. - **shape**: `[in] int64_t*` array whose only element is the number of elements over which to iterate. - **strides**: `[in] int64_t*` array containing strides (in bytes) for each strided array. - **fcn**: `[in] void*` a `double (*f)(double, double)` function to apply provided as a `void` pointer. ```c void stdlib_strided_us_d_as_dd_d( uint8_t *arrays[], const int64_t *shape, const int64_t *strides, void *fcn ); ``` #### stdlib_strided_us_z_as_zz_z( \*arrays\[], \*shape, \*strides, \*fcn ) Applies a binary callback to strided input array elements and assigns results to elements in a strided output array. ```c #include "stdlib/complex/float64/ctor.h" #include // Create underlying byte arrays: uint8_t x[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; uint8_t y[] = { 0, 0, 0 }; uint8_t out[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; // Define a pointer to an array containing pointers to strided arrays: uint8_t *arrays[] = { x, y, out }; // Define the strides: int64_t strides[] = { 4, 1, 16 }; // Define the number of elements over which to iterate: int64_t shape[] = { 3 }; // Define a callback: static stdlib_complex128_t fcn( stdlib_complex128_t x, stdlib_complex128_t y ) { // ... } // Apply the callback: stdlib_strided_us_z_as_zz_z( arrays, shape, strides, (void *)fcn ); ``` The function accepts the following arguments: - **arrays**: `[inout] uint8_t**` array whose first two elements are pointers to strided input arrays and whose last element is a pointer to a strided output array. - **shape**: `[in] int64_t*` array whose only element is the number of elements over which to iterate. - **strides**: `[in] int64_t*` array containing strides (in bytes) for each strided array. - **fcn**: `[in] void*` a `stdlib_complex128_t (*f)(stdlib_complex128_t, stdlib_complex128_t)` function to apply provided as a `void` pointer. ```c void stdlib_strided_us_z_as_zz_z( uint8_t *arrays[], const int64_t *shape, const int64_t *strides, void *fcn ); ``` #### stdlib_strided_ut_d_as_dd_d( \*arrays\[], \*shape, \*strides, \*fcn ) Applies a binary callback to strided input array elements and assigns results to elements in a strided output array. ```c #include // Create underlying byte arrays: uint8_t x[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; uint8_t y[] = { 0, 0, 0, 0, 0, 0 }; uint8_t out[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; // Define a pointer to an array containing pointers to strided arrays: uint8_t *arrays[] = { x, y, out }; // Define the strides: int64_t strides[] = { 4, 2, 8 }; // Define the number of elements over which to iterate: int64_t shape[] = { 3 }; // Define a callback: static double fcn( double x, double y ) { return x + y; } // Apply the callback: stdlib_strided_ut_d_as_dd_d( arrays, shape, strides, (void *)fcn ); ``` The function accepts the following arguments: - **arrays**: `[inout] uint8_t**` array whose first two elements are pointers to strided input arrays and whose last element is a pointer to a strided output array. - **shape**: `[in] int64_t*` array whose only element is the number of elements over which to iterate. - **strides**: `[in] int64_t*` array containing strides (in bytes) for each strided array. - **fcn**: `[in] void*` a `double (*f)(double, double)` function to apply provided as a `void` pointer. ```c void stdlib_strided_ut_d_as_dd_d( uint8_t *arrays[], const int64_t *shape, const int64_t *strides, void *fcn ); ``` #### stdlib_strided_ut_u_as_uu_u( \*arrays\[], \*shape, \*strides, \*fcn ) Applies a binary callback to strided input array elements and assigns results to elements in a strided output array. ```c #include // Create underlying byte arrays: uint8_t x[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; uint8_t y[] = { 0, 0, 0, 0, 0, 0 }; uint8_t out[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; // Define a pointer to an array containing pointers to strided arrays: uint8_t *arrays[] = { x, y, out }; // Define the strides: int64_t strides[] = { 4, 2, 4 }; // Define the number of elements over which to iterate: int64_t shape[] = { 3 }; // Define a callback: static uint32_t fcn( uint32_t x, uint32_t y ) { return x + y; } // Apply the callback: stdlib_strided_ut_u_as_uu_u( arrays, shape, strides, (void *)fcn ); ``` The function accepts the following arguments: - **arrays**: `[inout] uint8_t**` array whose first two elements are pointers to strided input arrays and whose last element is a pointer to a strided output array. - **shape**: `[in] int64_t*` array whose only element is the number of elements over which to iterate. - **strides**: `[in] int64_t*` array containing strides (in bytes) for each strided array. - **fcn**: `[in] void*` a `uint32_t (*f)(uint32_t, uint32_t)` function to apply provided as a `void` pointer. ```c void stdlib_strided_ut_u_as_uu_u( uint8_t *arrays[], const int64_t *shape, const int64_t *strides, void *fcn ); ``` #### stdlib_strided_ut_z_as_zz_z( \*arrays\[], \*shape, \*strides, \*fcn ) Applies a binary callback to strided input array elements and assigns results to elements in a strided output array. ```c #include "stdlib/complex/float64/ctor.h" #include // Create underlying byte arrays: uint8_t x[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; uint8_t y[] = { 0, 0, 0, 0, 0, 0 }; uint8_t out[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; // Define a pointer to an array containing pointers to strided arrays: uint8_t *arrays[] = { x, y, out }; // Define the strides: int64_t strides[] = { 4, 2, 16 }; // Define the number of elements over which to iterate: int64_t shape[] = { 3 }; // Define a callback: static stdlib_complex128_t fcn( stdlib_complex128_t x, stdlib_complex128_t y ) { // ... } // Apply the callback: stdlib_strided_ut_z_as_zz_z( arrays, shape, strides, (void *)fcn ); ``` The function accepts the following arguments: - **arrays**: `[inout] uint8_t**` array whose first two elements are pointers to strided input arrays and whose last element is a pointer to a strided output array. - **shape**: `[in] int64_t*` array whose only element is the number of elements over which to iterate. - **strides**: `[in] int64_t*` array containing strides (in bytes) for each strided array. - **fcn**: `[in] void*` a `stdlib_complex128_t (*f)(stdlib_complex128_t, stdlib_complex128_t)` function to apply provided as a `void` pointer. ```c void stdlib_strided_ut_z_as_zz_z( uint8_t *arrays[], const int64_t *shape, const int64_t *strides, void *fcn ); ``` #### stdlib_strided_uu_d( \*arrays\[], \*shape, \*strides, \*fcn ) Applies a binary callback to strided input array elements and assigns results to elements in a strided output array. ```c #include // Create underlying byte arrays: uint8_t x[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; uint8_t y[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; uint8_t out[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; // Define a pointer to an array containing pointers to strided arrays: uint8_t *arrays[] = { x, y, out }; // Define the strides: int64_t strides[] = { 4, 4, 8 }; // Define the number of elements over which to iterate: int64_t shape[] = { 3 }; // Define a callback: static uint32_t fcn( uint32_t x, uint32_t y ) { return x + y; } // Apply the callback: stdlib_strided_uu_d( arrays, shape, strides, (void *)fcn ); ``` The function accepts the following arguments: - **arrays**: `[inout] uint8_t**` array whose first two elements are pointers to strided input arrays and whose last element is a pointer to a strided output array. - **shape**: `[in] int64_t*` array whose only element is the number of elements over which to iterate. - **strides**: `[in] int64_t*` array containing strides (in bytes) for each strided array. - **fcn**: `[in] void*` a `uint32_t (*f)(uint32_t, uint32_t)` function to apply provided as a `void` pointer. ```c void stdlib_strided_uu_d( uint8_t *arrays[], const int64_t *shape, const int64_t *strides, void *fcn ); ``` #### stdlib_strided_uu_d_as_dd_d( \*arrays\[], \*shape, \*strides, \*fcn ) Applies a binary callback to strided input array elements and assigns results to elements in a strided output array. ```c #include // Create underlying byte arrays: uint8_t x[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; uint8_t y[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; uint8_t out[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; // Define a pointer to an array containing pointers to strided arrays: uint8_t *arrays[] = { x, y, out }; // Define the strides: int64_t strides[] = { 4, 4, 8 }; // Define the number of elements over which to iterate: int64_t shape[] = { 3 }; // Define a callback: static double fcn( double x, double y ) { return x + y; } // Apply the callback: stdlib_strided_uu_d_as_dd_d( arrays, shape, strides, (void *)fcn ); ``` The function accepts the following arguments: - **arrays**: `[inout] uint8_t**` array whose first two elements are pointers to strided input arrays and whose last element is a pointer to a strided output array. - **shape**: `[in] int64_t*` array whose only element is the number of elements over which to iterate. - **strides**: `[in] int64_t*` array containing strides (in bytes) for each strided array. - **fcn**: `[in] void*` a `double (*f)(double, double)` function to apply provided as a `void` pointer. ```c void stdlib_strided_uu_d_as_dd_d( uint8_t *arrays[], const int64_t *shape, const int64_t *strides, void *fcn ); ``` #### stdlib_strided_uu_u( \*arrays\[], \*shape, \*strides, \*fcn ) Applies a binary callback to strided input array elements and assigns results to elements in a strided output array. ```c #include // Create underlying byte arrays: uint8_t x[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; uint8_t y[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; uint8_t out[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; // Define a pointer to an array containing pointers to strided arrays: uint8_t *arrays[] = { x, y, out }; // Define the strides: int64_t strides[] = { 4, 4, 4 }; // Define the number of elements over which to iterate: int64_t shape[] = { 3 }; // Define a callback: static uint32_t fcn( uint32_t x, uint32_t y ) { return x + y; } // Apply the callback: stdlib_strided_uu_u( arrays, shape, strides, (void *)fcn ); ``` The function accepts the following arguments: - **arrays**: `[inout] uint8_t**` array whose first two elements are pointers to strided input arrays and whose last element is a pointer to a strided output array. - **shape**: `[in] int64_t*` array whose only element is the number of elements over which to iterate. - **strides**: `[in] int64_t*` array containing strides (in bytes) for each strided array. - **fcn**: `[in] void*` a `uint32_t (*f)(uint32_t, uint32_t)` function to apply provided as a `void` pointer. ```c void stdlib_strided_uu_u( uint8_t *arrays[], const int64_t *shape, const int64_t *strides, void *fcn ); ``` #### stdlib_strided_uu_z( \*arrays\[], \*shape, \*strides, \*fcn ) Applies a binary callback to strided input array elements and assigns results to elements in a strided output array. ```c #include // Create underlying byte arrays: uint8_t x[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; uint8_t y[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; uint8_t out[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; // Define a pointer to an array containing pointers to strided arrays: uint8_t *arrays[] = { x, y, out }; // Define the strides: int64_t strides[] = { 4, 4, 16 }; // Define the number of elements over which to iterate: int64_t shape[] = { 3 }; // Define a callback: static uint32_t fcn( uint32_t x, uint32_t y ) { return x + y; } // Apply the callback: stdlib_strided_uu_z( arrays, shape, strides, (void *)fcn ); ``` The function accepts the following arguments: - **arrays**: `[inout] uint8_t**` array whose first two elements are pointers to strided input arrays and whose last element is a pointer to a strided output array. - **shape**: `[in] int64_t*` array whose only element is the number of elements over which to iterate. - **strides**: `[in] int64_t*` array containing strides (in bytes) for each strided array. - **fcn**: `[in] void*` a `uint32_t (*f)(uint32_t, uint32_t)` function to apply provided as a `void` pointer. ```c void stdlib_strided_uu_z( uint8_t *arrays[], const int64_t *shape, const int64_t *strides, void *fcn ); ``` #### stdlib_strided_uu_z_as_zz_z( \*arrays\[], \*shape, \*strides, \*fcn ) Applies a binary callback to strided input array elements and assigns results to elements in a strided output array. ```c #include "stdlib/complex/float64/ctor.h" #include // Create underlying byte arrays: uint8_t x[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; uint8_t y[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; uint8_t out[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; // Define a pointer to an array containing pointers to strided arrays: uint8_t *arrays[] = { x, y, out }; // Define the strides: int64_t strides[] = { 4, 4, 16 }; // Define the number of elements over which to iterate: int64_t shape[] = { 3 }; // Define a callback: static stdlib_complex128_t fcn( stdlib_complex128_t x, stdlib_complex128_t y ) { // ... } // Apply the callback: stdlib_strided_uu_z_as_zz_z( arrays, shape, strides, (void *)fcn ); ``` The function accepts the following arguments: - **arrays**: `[inout] uint8_t**` array whose first two elements are pointers to strided input arrays and whose last element is a pointer to a strided output array. - **shape**: `[in] int64_t*` array whose only element is the number of elements over which to iterate. - **strides**: `[in] int64_t*` array containing strides (in bytes) for each strided array. - **fcn**: `[in] void*` a `stdlib_complex128_t (*f)(stdlib_complex128_t, stdlib_complex128_t)` function to apply provided as a `void` pointer. ```c void stdlib_strided_uu_z_as_zz_z( uint8_t *arrays[], const int64_t *shape, const int64_t *strides, void *fcn ); ``` #### stdlib_strided_uz_z_as_zz_z( \*arrays\[], \*shape, \*strides, \*fcn ) Applies a binary callback to strided input array elements and assigns results to elements in a strided output array. ```c #include "stdlib/complex/float64/ctor.h" #include // Create underlying byte arrays: uint8_t x[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; uint8_t y[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; uint8_t out[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; // Define a pointer to an array containing pointers to strided arrays: uint8_t *arrays[] = { x, y, out }; // Define the strides: int64_t strides[] = { 4, 16, 16 }; // Define the number of elements over which to iterate: int64_t shape[] = { 3 }; // Define a callback: static stdlib_complex128_t fcn( stdlib_complex128_t x, stdlib_complex128_t y ) { // ... } // Apply the callback: stdlib_strided_uz_z_as_zz_z( arrays, shape, strides, (void *)fcn ); ``` The function accepts the following arguments: - **arrays**: `[inout] uint8_t**` array whose first two elements are pointers to strided input arrays and whose last element is a pointer to a strided output array. - **shape**: `[in] int64_t*` array whose only element is the number of elements over which to iterate. - **strides**: `[in] int64_t*` array containing strides (in bytes) for each strided array. - **fcn**: `[in] void*` a `stdlib_complex128_t (*f)(stdlib_complex128_t, stdlib_complex128_t)` function to apply provided as a `void` pointer. ```c void stdlib_strided_uz_z_as_zz_z( uint8_t *arrays[], const int64_t *shape, const int64_t *strides, void *fcn ); ``` #### stdlib_strided_xx_x( \*arrays\[], \*shape, \*strides, \*fcn ) Applies a binary callback to strided input array elements and assigns results to elements in a strided output array. ```c #include #include // Create underlying byte arrays: uint8_t x[] = { 0, 0, 0 }; uint8_t y[] = { 0, 0, 0 }; uint8_t out[] = { 0, 0, 0 }; // Define a pointer to an array containing pointers to strided arrays: uint8_t *arrays[] = { x, y, out }; // Define the strides: int64_t strides[] = { 1, 1, 1 }; // Define the number of elements over which to iterate: int64_t shape[] = { 3 }; // Define a callback: static bool fcn( bool x, bool y ) { return x && y; } // Apply the callback: stdlib_strided_xx_x( arrays, shape, strides, (void *)fcn ); ``` The function accepts the following arguments: - **arrays**: `[inout] uint8_t**` array whose first two elements are pointers to strided input arrays and whose last element is a pointer to a strided output array. - **shape**: `[in] int64_t*` array whose only element is the number of elements over which to iterate. - **strides**: `[in] int64_t*` array containing strides (in bytes) for each strided array. - **fcn**: `[in] void*` a `bool (*f)(bool, bool)` function to apply provided as a `void` pointer. ```c void stdlib_strided_xx_x( uint8_t *arrays[], const int64_t *shape, const int64_t *strides, void *fcn ); ``` #### stdlib_strided_zb_z_as_zz_z( \*arrays\[], \*shape, \*strides, \*fcn ) Applies a binary callback to strided input array elements and assigns results to elements in a strided output array. ```c #include "stdlib/complex/float64/ctor.h" #include // Create underlying byte arrays: uint8_t x[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; uint8_t y[] = { 0, 0, 0 }; uint8_t out[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; // Define a pointer to an array containing pointers to strided arrays: uint8_t *arrays[] = { x, y, out }; // Define the strides: int64_t strides[] = { 16, 1, 16 }; // Define the number of elements over which to iterate: int64_t shape[] = { 3 }; // Define a callback: static stdlib_complex128_t fcn( stdlib_complex128_t x, stdlib_complex128_t y ) { // ... } // Apply the callback: stdlib_strided_zb_z_as_zz_z( arrays, shape, strides, (void *)fcn ); ``` The function accepts the following arguments: - **arrays**: `[inout] uint8_t**` array whose first two elements are pointers to strided input arrays and whose last element is a pointer to a strided output array. - **shape**: `[in] int64_t*` array whose only element is the number of elements over which to iterate. - **strides**: `[in] int64_t*` array containing strides (in bytes) for each strided array. - **fcn**: `[in] void*` a `stdlib_complex128_t (*f)(stdlib_complex128_t, stdlib_complex128_t)` function to apply provided as a `void` pointer. ```c void stdlib_strided_zb_z_as_zz_z( uint8_t *arrays[], const int64_t *shape, const int64_t *strides, void *fcn ); ``` #### stdlib_strided_zc_z_as_zz_z( \*arrays\[], \*shape, \*strides, \*fcn ) Applies a binary callback to strided input array elements and assigns results to elements in a strided output array. ```c #include "stdlib/complex/float64/ctor.h" #include // Create underlying byte arrays: uint8_t x[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; uint8_t y[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; uint8_t out[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; // Define a pointer to an array containing pointers to strided arrays: uint8_t *arrays[] = { x, y, out }; // Define the strides: int64_t strides[] = { 16, 8, 16 }; // Define the number of elements over which to iterate: int64_t shape[] = { 3 }; // Define a callback: static stdlib_complex128_t fcn( stdlib_complex128_t x, stdlib_complex128_t y ) { // ... } // Apply the callback: stdlib_strided_zc_z_as_zz_z( arrays, shape, strides, (void *)fcn ); ``` The function accepts the following arguments: - **arrays**: `[inout] uint8_t**` array whose first two elements are pointers to strided input arrays and whose last element is a pointer to a strided output array. - **shape**: `[in] int64_t*` array whose only element is the number of elements over which to iterate. - **strides**: `[in] int64_t*` array containing strides (in bytes) for each strided array. - **fcn**: `[in] void*` a `stdlib_complex128_t (*f)(stdlib_complex128_t, stdlib_complex128_t)` function to apply provided as a `void` pointer. ```c void stdlib_strided_zc_z_as_zz_z( uint8_t *arrays[], const int64_t *shape, const int64_t *strides, void *fcn ); ``` #### stdlib_strided_zd_z_as_zz_z( \*arrays\[], \*shape, \*strides, \*fcn ) Applies a binary callback to strided input array elements and assigns results to elements in a strided output array. ```c #include "stdlib/complex/float64/ctor.h" #include // Create underlying byte arrays: uint8_t x[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; uint8_t y[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; uint8_t out[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; // Define a pointer to an array containing pointers to strided arrays: uint8_t *arrays[] = { x, y, out }; // Define the strides: int64_t strides[] = { 16, 8, 16 }; // Define the number of elements over which to iterate: int64_t shape[] = { 3 }; // Define a callback: static stdlib_complex128_t fcn( stdlib_complex128_t x, stdlib_complex128_t y ) { // ... } // Apply the callback: stdlib_strided_zd_z_as_zz_z( arrays, shape, strides, (void *)fcn ); ``` The function accepts the following arguments: - **arrays**: `[inout] uint8_t**` array whose first two elements are pointers to strided input arrays and whose last element is a pointer to a strided output array. - **shape**: `[in] int64_t*` array whose only element is the number of elements over which to iterate. - **strides**: `[in] int64_t*` array containing strides (in bytes) for each strided array. - **fcn**: `[in] void*` a `stdlib_complex128_t (*f)(stdlib_complex128_t, stdlib_complex128_t)` function to apply provided as a `void` pointer. ```c void stdlib_strided_zd_z_as_zz_z( uint8_t *arrays[], const int64_t *shape, const int64_t *strides, void *fcn ); ``` #### stdlib_strided_zf_z_as_zz_z( \*arrays\[], \*shape, \*strides, \*fcn ) Applies a binary callback to strided input array elements and assigns results to elements in a strided output array. ```c #include "stdlib/complex/float64/ctor.h" #include // Create underlying byte arrays: uint8_t x[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; uint8_t y[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; uint8_t out[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; // Define a pointer to an array containing pointers to strided arrays: uint8_t *arrays[] = { x, y, out }; // Define the strides: int64_t strides[] = { 16, 4, 16 }; // Define the number of elements over which to iterate: int64_t shape[] = { 3 }; // Define a callback: static stdlib_complex128_t fcn( stdlib_complex128_t x, stdlib_complex128_t y ) { // ... } // Apply the callback: stdlib_strided_zf_z_as_zz_z( arrays, shape, strides, (void *)fcn ); ``` The function accepts the following arguments: - **arrays**: `[inout] uint8_t**` array whose first two elements are pointers to strided input arrays and whose last element is a pointer to a strided output array. - **shape**: `[in] int64_t*` array whose only element is the number of elements over which to iterate. - **strides**: `[in] int64_t*` array containing strides (in bytes) for each strided array. - **fcn**: `[in] void*` a `stdlib_complex128_t (*f)(stdlib_complex128_t, stdlib_complex128_t)` function to apply provided as a `void` pointer. ```c void stdlib_strided_zf_z_as_zz_z( uint8_t *arrays[], const int64_t *shape, const int64_t *strides, void *fcn ); ``` #### stdlib_strided_zi_z_as_zz_z( \*arrays\[], \*shape, \*strides, \*fcn ) Applies a binary callback to strided input array elements and assigns results to elements in a strided output array. ```c #include "stdlib/complex/float64/ctor.h" #include // Create underlying byte arrays: uint8_t x[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; uint8_t y[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; uint8_t out[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; // Define a pointer to an array containing pointers to strided arrays: uint8_t *arrays[] = { x, y, out }; // Define the strides: int64_t strides[] = { 16, 4, 16 }; // Define the number of elements over which to iterate: int64_t shape[] = { 3 }; // Define a callback: static stdlib_complex128_t fcn( stdlib_complex128_t x, stdlib_complex128_t y ) { // ... } // Apply the callback: stdlib_strided_zi_z_as_zz_z( arrays, shape, strides, (void *)fcn ); ``` The function accepts the following arguments: - **arrays**: `[inout] uint8_t**` array whose first two elements are pointers to strided input arrays and whose last element is a pointer to a strided output array. - **shape**: `[in] int64_t*` array whose only element is the number of elements over which to iterate. - **strides**: `[in] int64_t*` array containing strides (in bytes) for each strided array. - **fcn**: `[in] void*` a `stdlib_complex128_t (*f)(stdlib_complex128_t, stdlib_complex128_t)` function to apply provided as a `void` pointer. ```c void stdlib_strided_zi_z_as_zz_z( uint8_t *arrays[], const int64_t *shape, const int64_t *strides, void *fcn ); ``` #### stdlib_strided_zk_z_as_zz_z( \*arrays\[], \*shape, \*strides, \*fcn ) Applies a binary callback to strided input array elements and assigns results to elements in a strided output array. ```c #include "stdlib/complex/float64/ctor.h" #include // Create underlying byte arrays: uint8_t x[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; uint8_t y[] = { 0, 0, 0, 0, 0, 0 }; uint8_t out[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; // Define a pointer to an array containing pointers to strided arrays: uint8_t *arrays[] = { x, y, out }; // Define the strides: int64_t strides[] = { 16, 2, 16 }; // Define the number of elements over which to iterate: int64_t shape[] = { 3 }; // Define a callback: static stdlib_complex128_t fcn( stdlib_complex128_t x, stdlib_complex128_t y ) { // ... } // Apply the callback: stdlib_strided_zk_z_as_zz_z( arrays, shape, strides, (void *)fcn ); ``` The function accepts the following arguments: - **arrays**: `[inout] uint8_t**` array whose first two elements are pointers to strided input arrays and whose last element is a pointer to a strided output array. - **shape**: `[in] int64_t*` array whose only element is the number of elements over which to iterate. - **strides**: `[in] int64_t*` array containing strides (in bytes) for each strided array. - **fcn**: `[in] void*` a `stdlib_complex128_t (*f)(stdlib_complex128_t, stdlib_complex128_t)` function to apply provided as a `void` pointer. ```c void stdlib_strided_zk_z_as_zz_z( uint8_t *arrays[], const int64_t *shape, const int64_t *strides, void *fcn ); ``` #### stdlib_strided_zs_z_as_zz_z( \*arrays\[], \*shape, \*strides, \*fcn ) Applies a binary callback to strided input array elements and assigns results to elements in a strided output array. ```c #include "stdlib/complex/float64/ctor.h" #include // Create underlying byte arrays: uint8_t x[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; uint8_t y[] = { 0, 0, 0 }; uint8_t out[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; // Define a pointer to an array containing pointers to strided arrays: uint8_t *arrays[] = { x, y, out }; // Define the strides: int64_t strides[] = { 16, 1, 16 }; // Define the number of elements over which to iterate: int64_t shape[] = { 3 }; // Define a callback: static stdlib_complex128_t fcn( stdlib_complex128_t x, stdlib_complex128_t y ) { // ... } // Apply the callback: stdlib_strided_zs_z_as_zz_z( arrays, shape, strides, (void *)fcn ); ``` The function accepts the following arguments: - **arrays**: `[inout] uint8_t**` array whose first two elements are pointers to strided input arrays and whose last element is a pointer to a strided output array. - **shape**: `[in] int64_t*` array whose only element is the number of elements over which to iterate. - **strides**: `[in] int64_t*` array containing strides (in bytes) for each strided array. - **fcn**: `[in] void*` a `stdlib_complex128_t (*f)(stdlib_complex128_t, stdlib_complex128_t)` function to apply provided as a `void` pointer. ```c void stdlib_strided_zs_z_as_zz_z( uint8_t *arrays[], const int64_t *shape, const int64_t *strides, void *fcn ); ``` #### stdlib_strided_zt_z_as_zz_z( \*arrays\[], \*shape, \*strides, \*fcn ) Applies a binary callback to strided input array elements and assigns results to elements in a strided output array. ```c #include "stdlib/complex/float64/ctor.h" #include // Create underlying byte arrays: uint8_t x[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; uint8_t y[] = { 0, 0, 0, 0, 0, 0 }; uint8_t out[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; // Define a pointer to an array containing pointers to strided arrays: uint8_t *arrays[] = { x, y, out }; // Define the strides: int64_t strides[] = { 16, 2, 16 }; // Define the number of elements over which to iterate: int64_t shape[] = { 3 }; // Define a callback: static stdlib_complex128_t fcn( stdlib_complex128_t x, stdlib_complex128_t y ) { // ... } // Apply the callback: stdlib_strided_zt_z_as_zz_z( arrays, shape, strides, (void *)fcn ); ``` The function accepts the following arguments: - **arrays**: `[inout] uint8_t**` array whose first two elements are pointers to strided input arrays and whose last element is a pointer to a strided output array. - **shape**: `[in] int64_t*` array whose only element is the number of elements over which to iterate. - **strides**: `[in] int64_t*` array containing strides (in bytes) for each strided array. - **fcn**: `[in] void*` a `stdlib_complex128_t (*f)(stdlib_complex128_t, stdlib_complex128_t)` function to apply provided as a `void` pointer. ```c void stdlib_strided_zt_z_as_zz_z( uint8_t *arrays[], const int64_t *shape, const int64_t *strides, void *fcn ); ``` #### stdlib_strided_zu_z_as_zz_z( \*arrays\[], \*shape, \*strides, \*fcn ) Applies a binary callback to strided input array elements and assigns results to elements in a strided output array. ```c #include "stdlib/complex/float64/ctor.h" #include // Create underlying byte arrays: uint8_t x[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; uint8_t y[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; uint8_t out[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; // Define a pointer to an array containing pointers to strided arrays: uint8_t *arrays[] = { x, y, out }; // Define the strides: int64_t strides[] = { 16, 4, 16 }; // Define the number of elements over which to iterate: int64_t shape[] = { 3 }; // Define a callback: static stdlib_complex128_t fcn( stdlib_complex128_t x, stdlib_complex128_t y ) { // ... } // Apply the callback: stdlib_strided_zu_z_as_zz_z( arrays, shape, strides, (void *)fcn ); ``` The function accepts the following arguments: - **arrays**: `[inout] uint8_t**` array whose first two elements are pointers to strided input arrays and whose last element is a pointer to a strided output array. - **shape**: `[in] int64_t*` array whose only element is the number of elements over which to iterate. - **strides**: `[in] int64_t*` array containing strides (in bytes) for each strided array. - **fcn**: `[in] void*` a `stdlib_complex128_t (*f)(stdlib_complex128_t, stdlib_complex128_t)` function to apply provided as a `void` pointer. ```c void stdlib_strided_zu_z_as_zz_z( uint8_t *arrays[], const int64_t *shape, const int64_t *strides, void *fcn ); ``` #### stdlib_strided_zz_z( \*arrays\[], \*shape, \*strides, \*fcn ) Applies a binary callback to strided input array elements and assigns results to elements in a strided output array. ```c #include "stdlib/complex/float64/ctor.h" #include // Create underlying byte arrays: uint8_t x[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; uint8_t y[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; uint8_t out[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; // Define a pointer to an array containing pointers to strided arrays: uint8_t *arrays[] = { x, y, out }; // Define the strides: int64_t strides[] = { 16, 16, 16 }; // Define the number of elements over which to iterate: int64_t shape[] = { 3 }; // Define a callback: static stdlib_complex128_t fcn( stdlib_complex128_t x, stdlib_complex128_t y ) { // ... } // Apply the callback: stdlib_strided_zz_z( arrays, shape, strides, (void *)fcn ); ``` The function accepts the following arguments: - **arrays**: `[inout] uint8_t**` array whose first two elements are pointers to strided input arrays and whose last element is a pointer to a strided output array. - **shape**: `[in] int64_t*` array whose only element is the number of elements over which to iterate. - **strides**: `[in] int64_t*` array containing strides (in bytes) for each strided array. - **fcn**: `[in] void*` a `stdlib_complex128_t (*f)(stdlib_complex128_t, stdlib_complex128_t)` function to apply provided as a `void` pointer. ```c void stdlib_strided_zz_z( uint8_t *arrays[], const int64_t *shape, const int64_t *strides, void *fcn ); ``` * * * #### STDLIB_STRIDED_BINARY_LOOP_PREAMBLE Macro containing the preamble for a loop which operates on strided array elements. ```c STDLIB_STRIDED_BINARY_LOOP_PREMABLE { // Loop body... } ``` The macro expects the following variables to be defined: - **arrays**: `uint8_t**` array whose first two elements are pointers to strided input arrays and whose last element is a pointer to a strided output array. - **shape**: `int64_t*` array whose only element is the number of elements over which to iterate. - **strides**: `int64_t*` array containing strides (in bytes) for each strided array. The macro defines the following variables: - **ip1**: `uint8_t*` pointer to the first indexed element of the first input strided array. - **ip2**: `uint8_t*` pointer to the first indexed element of the second input strided array. - **op1**: `uint8_t*` pointer to the first indexed element of the output strided array. - **is1**: `int64_t` index increment for the first input strided array. - **is2**: `int64_t` index increment for the second input strided array. - **os1**: `int64_t` index increment for the output strided array. - **n**: `int64_t` number of indexed elements. - **i**: `int64_t` loop counter. ```c #define STDLIB_STRIDED_BINARY_LOOP_PREAMBLE \ uint8_t *ip1 = arrays[ 0 ]; \ uint8_t *ip2 = arrays[ 1 ]; \ uint8_t *op1 = arrays[ 2 ]; \ int64_t is1 = strides[ 0 ]; \ int64_t is2 = strides[ 1 ]; \ int64_t os1 = strides[ 2 ]; \ int64_t n = shape[ 0 ]; \ int64_t i; \ if ( n <= 0 ) { \ return; \ } \ if ( is1 < 0 ) { \ ip1 += (1-n) * is1; \ } \ if ( is2 < 0 ) { \ ip2 += (1-n) * is2; \ } \ if ( os1 < 0 ) { \ op1 += (1-n) * os1; \ } \ for ( i = 0; i < n; i++, ip1 += is1, ip2 += is2, op1 += os1 ) ``` #### STDLIB_STRIDED_BINARY_LOOP_TWO_OUT_PREAMBLE Macro containing the preamble for a loop which operates on strided array elements and updates two strided output arrays. ```c STDLIB_STRIDED_BINARY_LOOP_TWO_OUT_PREAMBLE { // Loop body... } ``` The macro expects the following variables to be defined: - **arrays**: `uint8_t**` array whose first two elements are pointers to strided input arrays and whose last element is a pointer to a strided output array. - **shape**: `int64_t*` array whose only element is the number of elements over which to iterate. - **strides**: `int64_t*` array containing strides (in bytes) for each strided array. The macro defines the following variables: - **ip1**: `uint8_t*` pointer to the first indexed element of the first input strided array. - **ip2**: `uint8_t*` pointer to the first indexed element of the second input strided array. - **op1**: `uint8_t*` pointer to the first indexed element of the first output strided array. - **op2**: `uint8_t*` pointer to the first indexed element of the second output strided array. - **is1**: `int64_t` index increment for the first input strided array. - **is2**: `int64_t` index increment for the second input strided array. - **os1**: `int64_t` index increment for the first output strided array. - **os2**: `int64_t` index increment for the second output strided array. - **n**: `int64_t` number of indexed elements. - **i**: `int64_t` loop counter. ```c #define STDLIB_STRIDED_BINARY_LOOP_TWO_OUT_PREAMBLE \ uint8_t *ip1 = arrays[ 0 ]; \ uint8_t *ip2 = arrays[ 1 ]; \ uint8_t *op1 = arrays[ 2 ]; \ uint8_t *op2 = arrays[ 3 ]; \ int64_t is1 = strides[ 0 ]; \ int64_t is2 = strides[ 1 ]; \ int64_t os1 = strides[ 2 ]; \ int64_t os2 = strides[ 3 ]; \ int64_t n = shape[ 0 ]; \ int64_t i; \ if ( n <= 0 ) { \ return; \ } \ if ( is1 < 0 ) { \ ip1 += (1-n) * is1; \ } \ if ( is2 < 0 ) { \ ip2 += (1-n) * is2; \ } \ if ( os1 < 0 ) { \ op1 += (1-n) * os1; \ } \ if ( os2 < 0 ) { \ op2 += (1-n) * os2; \ } \ for ( i = 0; i < n; i++, ip1 += is1, ip2 += is2, op1 += os1, op2 += os2 ) ``` #### STDLIB_STRIDED_BINARY_LOOP_INLINE( tin, tout, expr ) Macro for a binary loop which inlines an expression. ```c STDLIB_STRIDED_BINARY_LOOP_INLINE( double, double, *out = in1 * in1 ) ``` The macro expects the following arguments: - **tin**: input strided array element type. - **tout**: output strided array element type. - **expr**: expression to inline. In addition to the variables defined by the `STDLIB_STRIDED_BINARY_LOOP_PREAMBLE` macro, the macro defines the following variables: - **in1**: `` first input strided array element. - **in2**: `` second input strided array element. - **out**: `*` pointer to an output strided array element. The macro expects a provided expression to operate on `in1` and `in2` and to store the result via `*out`. ```c #define STDLIB_STRIDED_BINARY_LOOP_INLINE( tin, tout, expr ) \ STDLIB_STRIDED_BINARY_LOOP_PREAMBLE { \ const tin in1 = *(tin *)ip1; \ const tin in2 = *(tin *)ip2; \ tout *out = (tout *)op1; \ expr; \ } ``` #### STDLIB_STRIDED_BINARY_LOOP_CLBK( tin, tout ) Macro for a binary loop which invokes a callback. ```c STDLIB_STRIDED_BINARY_LOOP_CLBK( double, double ) ``` The macro expects the following arguments: - **tin**: input strided array element data type. - **tout**: output strided array element data type. In addition to the variables expected by `STDLIB_STRIDED_BINARY_LOOP_PREAMBLE`, the macro expects the following variables to be defined: - **f**: binary callback. In addition to the variables defined by the `STDLIB_STRIDED_BINARY_LOOP_PREAMBLE`, the macro defines the following variables: - **x**: `` first input strided array element. - **y**: `` second input strided array element. ```c #define STDLIB_STRIDED_BINARY_LOOP_CLBK( tin, tout ) \ STDLIB_STRIDED_BINARY_LOOP_PREAMBLE { \ const tin x = *(tin *)ip1; \ const tin y = *(tin *)ip2; \ *(tout *)op1 = (tout)f( x, y ); \ } ``` #### STDLIB_STRIDED_BINARY_LOOP_CLBK_ARG_CAST( tin, tout, fin ) Macro for a binary loop which invokes a callback requiring arguments be explicitly cast to a different type. ```c STDLIB_STRIDED_BINARY_LOOP_CLBK_ARG_CAST( float, float, double ) ``` The macro expects the following arguments: - **tin**: input strided array element data type. - **tout**: output strided array element data type. - **fin**: callback argument data type. In addition to the variables expected by `STDLIB_STRIDED_BINARY_LOOP_PREAMBLE`, the macro expects the following variables to be defined: - **f**: binary callback. In addition to the variables defined by the `STDLIB_STRIDED_BINARY_LOOP_PREAMBLE`, the macro defines the following variables: - **x**: `` first input strided array element. - **y**: `` second input strided array element. ```c #define STDLIB_STRIDED_BINARY_LOOP_CLBK_ARG_CAST( tin, tout, fin ) \ STDLIB_STRIDED_BINARY_LOOP_PREAMBLE { \ const tin x = *(tin *)ip1; \ const tin y = *(tin *)ip2; \ *(tout *)op1 = (tout)f( (fin)x, (fin)y ); \ } ``` #### STDLIB_STRIDED_BINARY_LOOP_CLBK_MIXED( tin1, tin2, tout ) Macro for a binary loop which invokes a callback while operating on mixed (typed) strided input arrays. ```c STDLIB_STRIDED_BINARY_LOOP_CLBK_MIXED( double, uint32_t, double ) ``` The macro expects the following arguments: - **tin1**: first input strided array element data type. - **tin2**: second input strided array element data type. - **tout**: output strided array element data type. In addition to the variables expected by `STDLIB_STRIDED_BINARY_LOOP_PREAMBLE`, the macro expects the following variables to be defined: - **f**: binary callback. In addition to the variables defined by the `STDLIB_STRIDED_BINARY_LOOP_PREAMBLE`, the macro defines the following variables: - **x**: `` first input strided array element. - **y**: `` second input strided array element. ```c #define STDLIB_STRIDED_BINARY_LOOP_CLBK_MIXED( tin1, tin2, tout ) \ STDLIB_STRIDED_BINARY_LOOP_PREAMBLE { \ const tin1 x = *(tin1 *)ip1; \ const tin2 y = *(tin2 *)ip2; \ *(tout *)op1 = (tout)f( x, y ); \ } ``` #### STDLIB_STRIDED_BINARY_LOOP_CLBK_MIXED_ARG_CAST( tin1, tin2, tout, fin1, fin2 ) Macro for a binary loop which invokes a callback requiring arguments be explicitly cast to a different type while operating on mixed (typed) strided input arrays. ```c STDLIB_STRIDED_BINARY_LOOP_CLBK_MIXED_ARG_CAST( float, uint16_t, double, uint32_t, float ) ``` The macro expects the following arguments: - **tin1**: first input strided array element data type. - **tin2**: second input strided array element data type. - **tout**: output strided array element data type. - **fin1**: first callback argument data type. - **fin2**: second callback argument data type. In addition to the variables expected by `STDLIB_STRIDED_BINARY_LOOP_PREAMBLE`, the macro expects the following variables to be defined: - **f**: binary callback. In addition to the variables defined by the `STDLIB_STRIDED_BINARY_LOOP_PREAMBLE`, the macro defines the following variables: - **x**: `` first input strided array element. - **y**: `` second input strided array element. ```c #define STDLIB_STRIDED_BINARY_LOOP_CLBK_MIXED_ARG_CAST( tin1, tin2, tout, fin1, fin2 ) \ STDLIB_STRIDED_BINARY_LOOP_PREAMBLE { \ const tin1 x = *(tin1 *)ip1; \ const tin2 y = *(tin2 *)ip2; \ *(tout *)op1 = (tout)f( (fin1)x, (fin2)y ); \ } ```

### Examples ```c #include "stdlib/strided/base/binary.h" #include #include #include // Define a callback: static double add( double x, double y ) { return x + y; } int main( void ) { // Create underlying byte arrays: uint8_t x[] = { 1, 4, 7 }; uint8_t y[] = { 101, 104, 107 }; uint8_t out[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; // Define a pointer to an array containing pointers to strided arrays: uint8_t *arrays[] = { x, y, out }; // Define the strides: int64_t strides[] = { 1, 1, 8 }; // 1 byte per uint8, 8 bytes per double // Define the number of elements over which to iterate: int64_t shape[] = { 3 }; // Apply the callback: stdlib_strided_bb_d_as_dd_d( arrays, shape, strides, (void *)add ); // Print the contents of the output array: uint8_t *op1 = out; for ( int64_t i = 0; i < shape[0]; i++, op1 += strides[2] ) { const double v = *(double *)op1; printf( "out[ %"PRId64" ] = %lf\n", i, v ); } } ```

* * * ## Notice This package is part of [stdlib][stdlib], a standard library for JavaScript and Node.js, with an emphasis on numerical and scientific computing. The library provides a collection of robust, high performance libraries for mathematics, statistics, streams, utilities, and more. For more information on the project, filing bug reports and feature requests, and guidance on how to develop [stdlib][stdlib], see the main project [repository][stdlib]. #### Community [![Chat][chat-image]][chat-url] --- ## License See [LICENSE][stdlib-license]. ## Copyright Copyright © 2016-2025. The Stdlib [Authors][stdlib-authors].

Owner

  • Name: stdlib
  • Login: stdlib-js
  • Kind: organization

Standard library for JavaScript.

Citation (CITATION.cff)

cff-version: 1.2.0
title: stdlib
message: >-
  If you use this software, please cite it using the
  metadata from this file.

type: software

authors:
  - name: The Stdlib Authors
    url: https://github.com/stdlib-js/stdlib/graphs/contributors

repository-code: https://github.com/stdlib-js/stdlib
url: https://stdlib.io

abstract: |
  Standard library for JavaScript and Node.js.

keywords:
  - JavaScript
  - Node.js
  - TypeScript
  - standard library
  - scientific computing
  - numerical computing
  - statistical computing

license: Apache-2.0 AND BSL-1.0

date-released: 2016

GitHub Events

Total
  • Push event: 2
Last Year
  • Push event: 2

Committers

Last synced: 6 months ago

All Time
  • Total Commits: 63
  • Total Committers: 1
  • Avg Commits per committer: 63.0
  • Development Distribution Score (DDS): 0.0
Past Year
  • Commits: 6
  • Committers: 1
  • Avg Commits per committer: 6.0
  • Development Distribution Score (DDS): 0.0
Top Committers
Name Email Commits
stdlib-bot n****y@s****o 63
Committer Domains (Top 20 + Academic)

Issues and Pull Requests

Last synced: 5 months ago

All Time
  • Total issues: 0
  • Total pull requests: 0
  • Average time to close issues: N/A
  • Average time to close pull requests: N/A
  • Total issue authors: 0
  • Total pull request authors: 0
  • Average comments per issue: 0
  • Average comments per pull request: 0
  • Merged pull requests: 0
  • Bot issues: 0
  • Bot pull requests: 0
Past Year
  • Issues: 0
  • Pull requests: 0
  • Average time to close issues: N/A
  • Average time to close pull requests: N/A
  • Issue authors: 0
  • Pull request authors: 0
  • Average comments per issue: 0
  • Average comments per pull request: 0
  • Merged pull requests: 0
  • Bot issues: 0
  • Bot pull requests: 0
Top Authors
Issue Authors
Pull Request Authors
Top Labels
Issue Labels
Pull Request Labels

Packages

  • Total packages: 1
  • Total downloads:
    • npm 7,085 last-month
  • Total dependent packages: 34
  • Total dependent repositories: 16
  • Total versions: 12
  • Total maintainers: 4
npmjs.org: @stdlib/strided-base-binary

Apply a binary callback to elements in strided input arrays and assign results to elements in a strided output array.

  • Homepage: https://stdlib.io
  • License: Apache-2.0
  • Latest release: 0.3.0
    published over 1 year ago
  • Versions: 12
  • Dependent Packages: 34
  • Dependent Repositories: 16
  • Downloads: 7,085 Last month
Rankings
Dependent packages count: 0.8%
Dependent repos count: 3.0%
Downloads: 4.4%
Average: 8.1%
Forks count: 15.4%
Stargazers count: 16.7%
Funding
  • type: opencollective
  • url: https://opencollective.com/stdlib
Last synced: 5 months ago

Dependencies

package.json npm
  • @stdlib/array-complex128 ^0.0.x development
  • @stdlib/array-complex64 ^0.0.x development
  • @stdlib/array-filled ^0.0.x development
  • @stdlib/array-filled-by ^0.0.x development
  • @stdlib/array-float32 ^0.0.x development
  • @stdlib/array-float64 ^0.0.x development
  • @stdlib/bench ^0.0.x development
  • @stdlib/complex-imag ^0.0.x development
  • @stdlib/complex-real ^0.0.x development
  • @stdlib/fs-read-dir ^0.0.x development
  • @stdlib/fs-read-file ^0.0.x development
  • @stdlib/fs-read-json ^0.0.x development
  • @stdlib/fs-unlink ^0.0.x development
  • @stdlib/fs-write-file ^0.0.x development
  • @stdlib/math-base-assert-is-nan ^0.0.x development
  • @stdlib/math-base-ops-add ^0.0.x development
  • @stdlib/math-base-special-pow ^0.0.x development
  • @stdlib/ndarray-base-bytes-per-element ^0.0.x development
  • @stdlib/ndarray-base-char2dtype ^0.0.x development
  • @stdlib/ndarray-base-dtype-char ^0.0.x development
  • @stdlib/ndarray-base-dtype-desc ^0.0.x development
  • @stdlib/ndarray-base-dtype2c ^0.0.x development
  • @stdlib/ndarray-promotion-rules ^0.0.x development
  • @stdlib/ndarray-safe-casts ^0.0.x development
  • @stdlib/random-base-discrete-uniform ^0.0.x development
  • @stdlib/strided-dtypes ^0.0.x development
  • @stdlib/string-replace ^0.0.x development
  • @stdlib/string-substring-after ^0.0.x development
  • @stdlib/string-substring-before ^0.0.x development
  • @stdlib/string-uppercase ^0.0.x development
  • istanbul ^0.4.1 development
  • tap-spec 5.x.x development
  • tape git+https://github.com/kgryte/tape.git#fix/globby development
  • @stdlib/complex-float32 ^0.0.x
  • @stdlib/complex-float64 ^0.0.x
  • @stdlib/types ^0.0.x
  • @stdlib/utils-define-nonenumerable-read-only-property ^0.0.x
  • @stdlib/utils-library-manifest ^0.0.x
.github/workflows/benchmark.yml actions
  • actions/checkout v3 composite
  • actions/setup-node v3 composite
.github/workflows/cancel.yml actions
  • styfle/cancel-workflow-action 0.11.0 composite
.github/workflows/close_pull_requests.yml actions
  • superbrothers/close-pull-request v3 composite
.github/workflows/examples.yml actions
  • actions/checkout v3 composite
  • actions/setup-node v3 composite
.github/workflows/npm_downloads.yml actions
  • actions/checkout v3 composite
  • actions/setup-node v3 composite
  • actions/upload-artifact v3 composite
  • distributhor/workflow-webhook v3 composite
.github/workflows/productionize.yml actions
  • act10ns/slack v1 composite
  • actions/checkout v3 composite
  • actions/setup-node v3 composite
  • stdlib-js/bundle-action main composite
  • stdlib-js/transform-errors-action main composite
.github/workflows/publish.yml actions
  • JS-DevTools/npm-publish v1 composite
  • act10ns/slack v1 composite
  • actions/checkout v3 composite
  • actions/setup-node v3 composite
  • styfle/cancel-workflow-action 0.11.0 composite
.github/workflows/test.yml actions
  • act10ns/slack v1 composite
  • actions/checkout v3 composite
  • actions/setup-node v3 composite
.github/workflows/test_bundles.yml actions
  • act10ns/slack v1 composite
  • actions/checkout v3 composite
  • actions/setup-node v3 composite
  • denoland/setup-deno v1 composite
.github/workflows/test_coverage.yml actions
  • act10ns/slack v1 composite
  • actions/checkout v3 composite
  • actions/setup-node v3 composite
  • codecov/codecov-action v3 composite
  • distributhor/workflow-webhook v3 composite
.github/workflows/test_install.yml actions
  • act10ns/slack v1 composite
  • actions/checkout v3 composite
  • actions/setup-node v3 composite