Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion lib/node_modules/@stdlib/blas/base/dsyr/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -307,7 +307,7 @@ int main( void ) {

// Print the result:
for ( int i = 0; i < N*N; i++ ) {
printf( "A2[ %i ] = %lf\n", i, A[ i ] );
printf( "A2[ %i ] = %lf\n", i, A2[ i ] );
}
}
```
Expand Down
2 changes: 1 addition & 1 deletion lib/node_modules/@stdlib/blas/base/sdsdot/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@ const float x[] = { 1.0f, -2.0f, 3.0f, -4.0f, 5.0f, -6.0f, 7.0f, -8.0f };
const float y[] = { 1.0f, -2.0f, 3.0f, -4.0f, 5.0f, -6.0f, 7.0f, -8.0f };

float v = c_sdsdot( 5, 0.0f, x, 1, y, -1 );
// returns -120.0f
// returns 35.0f
```

The function accepts the following arguments:
Expand Down
2 changes: 1 addition & 1 deletion lib/node_modules/@stdlib/blas/base/sger/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -335,7 +335,7 @@ int main( void ) {
}

// Perform operation using alternative indexing semantics:
c_sger( CblasRowMajor, M, N, 1.0f, x, strideX, 0, y, 0, strideY, A, N, 1, 0 );
c_sger_ndarray( M, N, 1.0f, x, strideX, 0, y, strideY, 0, A, N, 1, 0 );

// Print the result:
for ( int i = 0; i < M; i++ ) {
Expand Down
2 changes: 1 addition & 1 deletion lib/node_modules/@stdlib/blas/base/sspr/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,7 @@ Performs the symmetric rank 1 operation `A = α*x*x^T + A` where `α` is a scala
float AP[] = { 1.0f, 2.0f, 3.0f, 1.0f, 2.0f, 1.0f };
const float x[] = { 1.0f, 2.0f, 3.0f };

c_sspr_ndarray( CblasColMajor, CblasUpper, 3, 1.0f, x, 1, AP, 1, 0 );
c_sspr_ndarray( CblasColMajor, CblasUpper, 3, 1.0f, x, 1, 0, AP, 1, 0 );
```

The function accepts the following arguments:
Expand Down
2 changes: 1 addition & 1 deletion lib/node_modules/@stdlib/blas/base/ssyr/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -307,7 +307,7 @@ int main( void ) {

// Print the result:
for ( int i = 0; i < N*N; i++ ) {
printf( "A2[ %i ] = %f\n", i, A[ i ] );
printf( "A2[ %i ] = %f\n", i, A2[ i ] );
}
}
```
Expand Down
2 changes: 1 addition & 1 deletion lib/node_modules/@stdlib/blas/ext/base/cfill/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,7 @@ Fills a single-precision complex floating-point strided array `X` with a specifi
float x[] = { 1.0f, 2.0f, 3.0f, 4.0f };
const stdlib_complex64_t alpha = stdlib_complex64( 2.0f, 2.0f );

stdlib_strided_cfill_ndarray( 4, alpha, (stdlib_complex64_t *x), 1, 0 );
stdlib_strided_cfill_ndarray( 4, alpha, (stdlib_complex64_t *)x, 1, 0 );
```

The function accepts the following arguments:
Expand Down
4 changes: 2 additions & 2 deletions lib/node_modules/@stdlib/blas/ext/base/dasumpw/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ console.log( v );
Computes the sum of absolute values ([_L1_ norm][l1norm]) of double-precision floating-point strided array elements using pairwise summation.

```c
const double x[] = { 1.0, 2.0, 3.0, 4.0 }
const double x[] = { 1.0, 2.0, 3.0, 4.0 };

double v = stdlib_strided_dasumpw( 4, x, 1 );
// returns 10.0
Expand All @@ -213,7 +213,7 @@ double stdlib_strided_dasumpw( const CBLAS_INT N, const double *X, const CBLAS_I
Computes the sum of absolute values ([_L1_ norm][l1norm]) of double-precision floating-point strided array elements using pairwise summation and alternative indexing semantics.

```c
const double x[] = { 1.0, 2.0, 3.0, 4.0 }
const double x[] = { 1.0, 2.0, 3.0, 4.0 };

double v = stdlib_strided_dasumpw_ndarray( 4, x, 1, 0 );
// returns 10.0
Expand Down
8 changes: 4 additions & 4 deletions lib/node_modules/@stdlib/blas/ext/base/dcusumkbn2/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -199,8 +199,8 @@ console.log( y );
Computes the cumulative sum of double-precision floating-point strided array elements using a second-order iterative Kahan–Babuška algorithm.

```c
const double x[] = { 1.0, 2.0, 3.0, 4.0 }
double y[] = { 0.0, 0.0, 0.0, 0.0 }
const double x[] = { 1.0, 2.0, 3.0, 4.0 };
double y[] = { 0.0, 0.0, 0.0, 0.0 };

stdlib_strided_dcusumkbn2( 4, 0.0, x, 1, y, 1 );
```
Expand All @@ -227,8 +227,8 @@ void stdlib_strided_dcusumkbn2( const CBLAS_INT N, const double sum, const doubl
Computes the cumulative sum of double-precision floating-point strided array elements using a second-order iterative Kahan–Babuška algorithm and alternative indexing semantics.

```c
const double x[] = { 1.0, 2.0, 3.0, 4.0 }
double y[] = { 0.0, 0.0, 0.0, 0.0 }
const double x[] = { 1.0, 2.0, 3.0, 4.0 };
double y[] = { 0.0, 0.0, 0.0, 0.0 };

stdlib_strided_dcusumkbn2_ndarray( 4, 0.0, x, 1, 0, y, 1, 0 );
```
Expand Down
4 changes: 2 additions & 2 deletions lib/node_modules/@stdlib/blas/ext/base/dcusumors/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -228,8 +228,8 @@ void stdlib_strided_dcusumors( const CBLAS_INT N, double sum, const double *X, c
Computes the cumulative sum of double-precision floating-point strided array elements using ordinary recursive summation and alternative indexing semantics.

```c
const double x[] = { 1.0, 2.0, 3.0, 4.0 }
double y[] = { 0.0, 0.0, 0.0, 0.0 }
const double x[] = { 1.0, 2.0, 3.0, 4.0 };
double y[] = { 0.0, 0.0, 0.0, 0.0 };

stdlib_strided_dcusumors_ndarray( 4, 0.0, x, 1, 0, y, 1, 0 );
```
Expand Down
4 changes: 2 additions & 2 deletions lib/node_modules/@stdlib/blas/ext/base/dcusumpw/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -228,8 +228,8 @@ void stdlib_strided_dcusumpw( const CBLAS_INT N, const double sum, const double
Computes the cumulative sum of double-precision floating-point strided array elements using pairwise summation and alternative indexing semantics.

```c
const double x[] = { 1.0, 2.0, 3.0, 4.0 }
double y[] = { 0.0, 0.0, 0.0, 0.0 }
const double x[] = { 1.0, 2.0, 3.0, 4.0 };
double y[] = { 0.0, 0.0, 0.0, 0.0 };

stdlib_strided_dcusumpw_ndarray( 4, 0.0, x, 1, 0, y, 1, 0 );
```
Expand Down
2 changes: 1 addition & 1 deletion lib/node_modules/@stdlib/blas/ext/base/dindex-of/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,7 @@ Returns the first index of a specified search element in a double-precision floa
```c
double x[] = { 1.0, 2.0, 3.0, 4.0 };

int idx = stdlib_strided_dindex_of( 4, 3.0, x, 1, 0 );
int idx = stdlib_strided_dindex_of_ndarray( 4, 3.0, x, 1, 0 );
// returns 2
```

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,7 @@ double stdlib_strided_dnannsumors_ndarray( const CBLAS_INT N, const double *X, c

```c
#include "stdlib/blas/ext/base/dnannsumors.h"
#include "stdlib/blase/base/shared.h"
#include "stdlib/blas/base/shared.h"
#include <stdio.h>

int main( void ) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,7 @@ double stdlib_strided_dnannsumpw_ndarray( const CBLAS_INT N, const double *X, co

```c
#include "stdlib/blas/ext/base/dnannsumpw.h"
#include "stdlib/blase/base/shared.h"
#include "stdlib/blas/base/shared.h"
#include <stdio.h>

int main( void ) {
Expand Down
2 changes: 1 addition & 1 deletion lib/node_modules/@stdlib/blas/ext/base/drrss/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,7 @@ Computes the square root of the [residual sum of squares][wikipedia-residual-sum
const double x[] = { 1.0, -2.0, 2.0 };
const double y[] = { 1.0, 1.0, -4.0 };

double v = stdlib_strided_drrss_ndarray( 3, x, 1, 0, 1, 0 );
double v = stdlib_strided_drrss_ndarray( 3, x, 1, 0, y, 1, 0 );
// returns ~6.7
```

Expand Down
2 changes: 1 addition & 1 deletion lib/node_modules/@stdlib/blas/ext/base/sindex-of/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,7 @@ Returns the first index of a specified search element in a single-precision floa
```c
float x[] = { 1.0f, 2.0f, 3.0f, 4.0f };

int idx = stdlib_strided_sindex_of( 4, 3.0f, x, 1, 0 );
int idx = stdlib_strided_sindex_of_ndarray( 4, 3.0f, x, 1, 0 );
// returns 2
```

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -183,9 +183,9 @@ Performs a multiply-add operation involving three single-precision complex float
#include "stdlib/complex/float32/real.h"
#include "stdlib/complex/float32/imag.h"

stdlib_complex64_t z1 = sstdlib_complex64( 5.0f, 3.0f );
stdlib_complex64_t z2 = sstdlib_complex64( -2.0f, 1.0f );
stdlib_complex64_t z3 = sstdlib_complex64( 7.0f, -8.0f );
stdlib_complex64_t z1 = stdlib_complex64( 5.0f, 3.0f );
stdlib_complex64_t z2 = stdlib_complex64( -2.0f, 1.0f );
stdlib_complex64_t z3 = stdlib_complex64( 7.0f, -8.0f );

stdlib_complex64_t out = stdlib_base_complex64_muladd( z1, z2, z3 );

Expand Down
2 changes: 1 addition & 1 deletion lib/node_modules/@stdlib/math/base/special/acotd/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ double out = stdlib_base_acotd( 0.0 );
// returns 90.0

out = stdlib_base_acotd( 3.0 );
// returns ~30.0
// returns ~18.43495
```

The function accepts the following arguments:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ float out = stdlib_base_acotdf( 0.0f );
// returns 90.0f

out = stdlib_base_acotdf( 3.0f );
// returns ~30.0f
// returns 18.43495f
```

The function accepts the following arguments:
Expand Down
4 changes: 2 additions & 2 deletions lib/node_modules/@stdlib/math/base/special/ceiln/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -134,11 +134,11 @@ double y = stdlib_base_ceiln( 3.141592653589793, -2 );
// returns 3.15

// If n = 0, `ceiln` behaves like `ceil`:
double y = stdlib_base_ceiln( 3.141592653589793, 0 );
y = stdlib_base_ceiln( 3.141592653589793, 0 );
// returns 4.0

// Round a value to the nearest thousand:
double y = stdlib_base_ceiln( 12368.0, 3 );
y = stdlib_base_ceiln( 12368.0, 3 );
// returns 13000.0
```

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -193,6 +193,7 @@ int main( void ) {
stdlib_complex128_reim( v, &re1, &im1 );
stdlib_complex128_reim( y, &re2, &im2 );
printf( "cflipsign(%lf + %lfi, %lf) = %lf + %lfi\n", re1, im1, -1.0, re2, im2 );
};
}
```

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ Returns a [single-precision floating-point number][ieee754] with the magnitude o
float v = stdlib_base_copysignf( -3.0f, 10.0f );
// returns 3.0f

float v = stdlib_base_copysignf( 3.0f, -1.0f );
v = stdlib_base_copysignf( 3.0f, -1.0f );
// returns -3.0f
```

Expand Down
11 changes: 4 additions & 7 deletions lib/node_modules/@stdlib/math/base/special/cphase/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -158,17 +158,14 @@ int main( void ) {
};

stdlib_complex128_t v;
stdlib_complex128_t y;
double re1;
double im1;
double re2;
double im2;
double y;
double re;
double im;
int i;
for ( i = 0; i < 4; i++ ) {
v = x[ i ];
y = stdlib_base_cphase( v );
stdlib_complex128_reim( v, &re1, &im1 );
stdlib_complex128_reim( y, &re2, &im2 );
stdlib_complex128_reim( v, &re, &im );
printf( "cphase(%lf + %lfi) = %lf\n", re, im, y );
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ Returns a [single-precision floating-point number][ieee754] with the magnitude o
float v = stdlib_base_flipsignf( -3.0f, 10.0f );
// returns -3.0f

float v = stdlib_base_flipsignf( -3.0f, -1.0f );
v = stdlib_base_flipsignf( -3.0f, -1.0f );
// returns 3.0f
```

Expand Down
2 changes: 1 addition & 1 deletion lib/node_modules/@stdlib/math/base/special/fmod/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ Evaluates the modulus function.

```c
double out = stdlib_base_fmod( 8.9, 3.0 );
// returns 2.9
// returns ~2.9

out = stdlib_base_fmod( 4.0, 2.0 );
// returns 0.0
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ Computes the nth [negaLucas number][lucas-number].

```c
double out = stdlib_base_negalucas( 0.0 );
// returns 0.0
// returns 2.0

out = stdlib_base_negalucas( -1.0 );
// returns -1.0
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ Computes the nth [negaLucas number][lucas-number] in single-precision floating-p

```c
float out = stdlib_base_negalucasf( 0.0f );
// returns 0.0f
// returns 2.0f

out = stdlib_base_negalucasf( -1.0f );
// returns -1.0f
Expand Down
4 changes: 2 additions & 2 deletions lib/node_modules/@stdlib/math/base/special/sec/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -119,8 +119,8 @@ Evaluates the [secant][trigonometric-functions] of `x` (in radians).
double out = stdlib_base_sec( 0.0 );
// returns 1.0

out = stdlib_base_cos( 3.141592653589793 / 2.0 );
// returns 6.123233995736766e-17
out = stdlib_base_sec( 3.141592653589793 / 2.0 );
// returns 16331239353195370.0
```

The function accepts the following arguments:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ float out = stdlib_base_vercosf( 0.0f );
// returns 2.0f

out = stdlib_base_vercosf( 3.141592653589793f / 2.0f );
// returns 1.0f
// returns ~1.0f
```

The function accepts the following arguments:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2198,7 +2198,7 @@ int main( void ) {
struct ndarray *arrays[] = { x, y };

// Perform operation:
int8_t status = stdlib_ndarray_count_falsy_b_i( arrays );
int8_t status = stdlib_ndarray_count_falsy_b_i( arrays, NULL );
if ( status != 0 ) {
fprintf( stderr, "Error during computation.\n" );
exit( EXIT_FAILURE );
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2198,7 +2198,7 @@ int main( void ) {
struct ndarray *arrays[] = { x, y };

// Perform operation:
int8_t status = stdlib_ndarray_count_truthy_b_i( arrays );
int8_t status = stdlib_ndarray_count_truthy_b_i( arrays, NULL );
if ( status != 0 ) {
fprintf( stderr, "Error during computation.\n" );
exit( EXIT_FAILURE );
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ const int64_t ndims = 3;
const int64_t shape[] = { 2, 3, 10 };
int64_t out[ 2 ];

stdlib_ndarray_flatten_shape( ndims, shape, 1, out );
stdlib_ndarray_flatten_shape_from( ndims, shape, 1, out );
```

The function accepts the following arguments:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ int main( void ) {
int8_t out;
int i;
for ( i = 0; i < 9; i++ ) {
stdlib_base_float32_signbit( x[ i ], &out );
out = stdlib_base_float32_signbit( x[ i ] );
printf( "%f => signbit: %" PRId8 "\n", x[ i ], out );
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ int main( void ) {
int8_t out;
int i;
for ( i = 0; i < 9; i++ ) {
stdlib_base_float64_signbit( x[ i ], &out );
out = stdlib_base_float64_signbit( x[ i ] );
printf( "%lf => signbit: %" PRId8 "\n", x[ i ], out );
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ logEachMap( 'x: %0.4f, a: %0.4f, b: %0.4f, f(x;a,b): %0.4f', x, a, b, pdf );
Evaluates the probability density function (PDF) for an arcsine distribution.

```c
double out = stdlib_base_dists_arcsine_pdf( 0.5, 0.0, 4.0 );
double out = stdlib_base_dists_arcsine_pdf( 2, 0.0, 4.0 );
// returns ~0.159
```

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ logEachMap( 'p: %0.4f, a: %0.4f, b: %0.4f, Q(p;a,b): %0.4f', p, a, b, quantile )
Evaluates the quantile function for an arcsine distribution.

```c
double out = quantile( 0.8, 0.0, 1.0 );
double out = stdlib_base_dists_arcsine_quantile( 0.8, 0.0, 1.0 );
// returns ~0.905
```

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ Evaluates the [probability density function][pdf] (PDF) for a [Cauchy][cauchy-di

```c
double out = stdlib_base_dists_cauchy_pdf( 0.5, 0.0, 2.0 );
// returns ~0.333
// returns ~0.14979
```

The function accepts the following arguments:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ Evaluates the natural logarithm of the [probability density function][pdf] (PDF)

```c
double out = stdlib_base_dists_chi_logpdf( 2.0, 2.0 );
// returns ~-1.309
// returns ~-1.307
```

The function accepts the following arguments:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ for ( i = 0; i < 100; i++ ) {
Evaluates the cumulative distribution function (CDF) for a Fréchet distribution with shape `alpha`, scale `s`, and location `m` at a value `x`.

```c
double y = stdlib_base_frechet_cdf( 10.0, 2.0, 3.0, 2.0 );
double y = stdlib_base_dists_frechet_cdf( 10.0, 2.0, 3.0, 2.0 );
// returns ~0.869
```

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@ int main( void ) {
beta = random_uniform( 0.0, 20.0 );
y = stdlib_base_dists_gumbel_skewness( mu, beta );
printf( "µ: %lf, β: %lf, Skew(X;µ,β): %lf\n", mu, beta, y );
s}
}
}
```

Expand Down
Loading
Loading