npm package: @stdlib/strided-base-binary
Description: Apply a binary callback to elements in strided input arrays and assign results to elements in a strided output array.
Author: The Stdlib Authors
Latest version: 0.3.1

<!--

@license Apache-2.0

Copyright (c) 2020 The Stdlib Authors.

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

   http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

-->


<details>
  <summary>
    About stdlib...
  </summary>
  <p>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.</p>
  <p>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.</p>
  <p>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.</p>
  <p>To join us in bringing numerical computing to the web, get started by checking us out on <a href="https://github.com/stdlib-js/stdlib">GitHub</a>, and please consider <a href="https://opencollective.com/stdlib">financially supporting stdlib</a>. We greatly appreciate your continued support!</p>
</details>

# Binary

[![NPM version][npm-image]][npm-url] [![Build Status][test-image]][test-url] [![Coverage Status][coverage-image]][coverage-url] <!-- [![dependencies][dependencies-image]][dependencies-url] -->

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

<section class="intro">

</section>

<!-- /.intro -->

<section class="installation">

## Installation

```bash
npm install @stdlib/strided-base-binary
```

</section>

<section class="usage">

## 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 => <Float64Array>[ 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 => <Float64Array>[ 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 => <Float64Array>[ 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 => <Float64Array>[ 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 => <Float64Array>[ 0.0, 0.0, 0.0, 12.0, 8.0, 4.0 ]
```

</section>

<!-- /.usage -->

<section class="notes">

</section>

<!-- /.notes -->

<section class="examples">

## Examples

<!-- eslint no-undef: "error" -->

```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 );
```

</section>

<!-- /.examples -->

<!-- C interface documentation. -->

* * *

<section class="c">

## C APIs

<!-- Section to include introductory text. Make sure to keep an empty line after the intro `section` element and another before the `/section` close. -->

<section class="intro">

Character codes for data types:

<!-- The following is auto-generated. Do not manually edit. See scripts/loops.js. -->

<!-- charcodes -->

-   **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).

<!-- ./charcodes -->

Function name suffix naming convention:

```text
stdlib_strided_<input_data_types>_<output_data_type>[_as_<callback_arg_data_types>_<callback_return_data_type>]
```

For example,

<!-- run-disable -->

```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,

<!-- run-disable -->

```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

<!-- run-disable -->

```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,

<!-- run-disable -->

```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

<!-- run-disable -->

```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;
```

</section>

<!-- /.intro -->

<!-- C usage documentation. -->

<section class="usage">

### Usage

```c
#include "stdlib/strided/base/binary.h"
```

<!-- The following is auto-generated. Do not manually edit. See scripts/loops.js. -->

<!-- loops -->

#### 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 <stdint.h>

// 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 <stdint.h>

// 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 <stdint.h>

// 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 <stdint.h>

// 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 <stdint.h>

// 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 <stdint.h>

// 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 <stdint.h>

// 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 <stdint.h>

// 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 <stdint.h>

// 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 <stdint.h>

// 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 <stdint.h>

// 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 <stdint.h>

// 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 <stdint.h>

// 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 <stdint.h>

// 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 <stdint.h>

// 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 <stdint.h>

// 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 <stdint.h>

// 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 <stdint.h>

// 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 <stdint.h>

// 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 <stdint.h>

// 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 <stdint.h>

// 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 <stdint.h>

// 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 <stdint.h>

// 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 <stdint.h>

// 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 <stdint.h>

// 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 <stdint.h>

// 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 <stdint.h>

// 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 <stdint.h>

// 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 <stdint.h>

// 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 <stdint.h>

// 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 <stdint.h>

// 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 <stdint.h>

// 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 <stdint.h>

// 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 <stdint.h>

// 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 <stdint.h>

// 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 <stdint.h>

// 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
#inclu