Skip to content

Commit

Permalink
Merge branch 'develop' of https://github.com/stdlib-js/stdlib into de…
Browse files Browse the repository at this point in the history
…velop
  • Loading branch information
kgryte committed Jun 10, 2024
2 parents f9bc7dc + 7d9bf3e commit e2c4ad5
Show file tree
Hide file tree
Showing 25 changed files with 2,339 additions and 54 deletions.
20 changes: 20 additions & 0 deletions lib/node_modules/@stdlib/blas/base/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ var o = blas;
<div class="namespace-toc">

- <span class="signature">[`ccopy( N, x, strideX, y, strideY )`][@stdlib/blas/base/ccopy]</span><span class="delimiter">: </span><span class="description">copy values from one complex single-precision floating-point vector to another complex single-precision floating-point vector.</span>
- <span class="signature">[`cscal( N, ca, cx, strideX )`][@stdlib/blas/base/cscal]</span><span class="delimiter">: </span><span class="description">scales a single-precision complex floating-point vector by a single-precision complex floating-point constant.</span>
- <span class="signature">[`cswap( N, x, strideX, y, strideY )`][@stdlib/blas/base/cswap]</span><span class="delimiter">: </span><span class="description">interchange two complex single-precision floating-point vectors.</span>
- <span class="signature">[`dasum( N, x, stride )`][@stdlib/blas/base/dasum]</span><span class="delimiter">: </span><span class="description">compute the sum of absolute values (_L1_ norm).</span>
- <span class="signature">[`daxpy( N, alpha, x, strideX, y, strideY )`][@stdlib/blas/base/daxpy]</span><span class="delimiter">: </span><span class="description">multiply a vector `x` by a constant `alpha` and add the result to `y`.</span>
Expand All @@ -72,6 +73,8 @@ var o = blas;
- <span class="signature">[`srotg( a, b )`][@stdlib/blas/base/srotg]</span><span class="delimiter">: </span><span class="description">construct a Givens plane rotation.</span>
- <span class="signature">[`sscal( N, alpha, x, stride )`][@stdlib/blas/base/sscal]</span><span class="delimiter">: </span><span class="description">multiply a single-precision floating-point vector `x` by a constant `alpha`.</span>
- <span class="signature">[`sswap( N, x, strideX, y, strideY )`][@stdlib/blas/base/sswap]</span><span class="delimiter">: </span><span class="description">interchange two single-precision floating-point vectors.</span>
- <span class="signature">[`zcopy( N, x, strideX, y, strideY )`][@stdlib/blas/base/zcopy]</span><span class="delimiter">: </span><span class="description">copy values from one complex double-precision floating-point vector to another complex double-precision floating-point vector.</span>
- <span class="signature">[`zswap( N, x, strideX, y, strideY )`][@stdlib/blas/base/zswap]</span><span class="delimiter">: </span><span class="description">interchange two complex double-precision floating-point vectors.</span>

</div>

Expand All @@ -81,6 +84,13 @@ var o = blas;

<!-- <toc pattern="+(*amax|*lsame|*xerbla*)"> -->

<div class="namespace-toc">

- <span class="signature">[`idamax( N, x, strideX )`][@stdlib/blas/base/idamax]</span><span class="delimiter">: </span><span class="description">find the index of the first element having the maximum absolute value.</span>
- <span class="signature">[`isamax( N, x, strideX )`][@stdlib/blas/base/isamax]</span><span class="delimiter">: </span><span class="description">find the index of the first element having the maximum absolute value.</span>

</div>

<!-- </toc> -->

</section>
Expand Down Expand Up @@ -120,8 +130,14 @@ console.log( objectKeys( blas ) );

<!-- <toc-links> -->

[@stdlib/blas/base/idamax]: https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/blas/base/idamax

[@stdlib/blas/base/isamax]: https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/blas/base/isamax

[@stdlib/blas/base/ccopy]: https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/blas/base/ccopy

[@stdlib/blas/base/cscal]: https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/blas/base/cscal

[@stdlib/blas/base/cswap]: https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/blas/base/cswap

[@stdlib/blas/base/dasum]: https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/blas/base/dasum
Expand Down Expand Up @@ -174,6 +190,10 @@ console.log( objectKeys( blas ) );

[@stdlib/blas/base/sswap]: https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/blas/base/sswap

[@stdlib/blas/base/zcopy]: https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/blas/base/zcopy

[@stdlib/blas/base/zswap]: https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/blas/base/zswap

<!-- </toc-links> -->

</section>
Expand Down
18 changes: 18 additions & 0 deletions lib/node_modules/@stdlib/blas/base/assert/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,14 @@ var o = ns;

<!-- <toc pattern="*"> -->

<div class="namespace-toc">

- <span class="signature">[`isLayout( value )`][@stdlib/blas/base/assert/is-layout]</span><span class="delimiter">: </span><span class="description">test if an input value is a BLAS memory layout.</span>
- <span class="signature">[`isMatrixTriangle( value )`][@stdlib/blas/base/assert/is-matrix-triangle]</span><span class="delimiter">: </span><span class="description">test if an input value is a BLAS matrix triangle.</span>
- <span class="signature">[`isTransposeOperation( value )`][@stdlib/blas/base/assert/is-transpose-operation]</span><span class="delimiter">: </span><span class="description">test if an input value is a BLAS transpose operation.</span>

</div>

<!-- </toc> -->

</section>
Expand Down Expand Up @@ -78,6 +86,16 @@ console.log( objectKeys( ns ) );

<section class="links">

<!-- <toc-links> -->

[@stdlib/blas/base/assert/is-layout]: https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/blas/base/assert/is-layout

[@stdlib/blas/base/assert/is-matrix-triangle]: https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/blas/base/assert/is-matrix-triangle

[@stdlib/blas/base/assert/is-transpose-operation]: https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/blas/base/assert/is-transpose-operation

<!-- </toc-links> -->

</section>

<!-- /.links -->
6 changes: 6 additions & 0 deletions lib/node_modules/@stdlib/error/tools/database/data/data.csv
Original file line number Diff line number Diff line change
Expand Up @@ -974,3 +974,9 @@
"Fh","invalid operation. Cannot access settings for a REPL which has already closed.","Error"
"Fi","invalid argument. First argument must be a recognized setting. Value: `%s`.","Error"
"Fj","invalid invocation. `this` is not a boolean array.","TypeError"
"Fk","invalid argument. Unable to parse commits for package: `%s`.","Error"
"Fl","invalid argument. Unrecognized release type: `%s`.","TypeError"
"Fm","invalid argument. First argument must be a supported BLAS memory layout. Value: `%s`.","TypeError"
"Fn","invalid argument. First argument must be an existing theme name. Value: `%s`.","Error"
"Fo","invalid argument. First argument must not be the default theme name. Value: `%s`.","Error"
"Fp","invalid argument. Second argument must be an object. Value: `%s`.","TypeError"

Large diffs are not rendered by default.

36 changes: 36 additions & 0 deletions lib/node_modules/@stdlib/error/tools/id2pkg/data/data.csv
Original file line number Diff line number Diff line change
Expand Up @@ -797,6 +797,8 @@
"04n",@stdlib/assert-is-boolean-array
"04o",@stdlib/assert/is-boolean
"04p",@stdlib/assert-is-boolean
"1vW",@stdlib/assert/is-booleanarray
"1vX",@stdlib/assert-is-booleanarray
"04q",@stdlib/assert/is-boxed-primitive
"04r",@stdlib/assert-is-boxed-primitive
"04s",@stdlib/assert/is-browser
Expand Down Expand Up @@ -1280,20 +1282,34 @@
"0BM",@stdlib/bigint/ctor
"0BN",@stdlib/bigint-ctor
"0BP",@stdlib/bigint
"1vY",@stdlib/blas/base/assert/is-layout
"1vZ",@stdlib/blas-base-assert-is-layout
"1va",@stdlib/blas/base/assert/is-matrix-triangle
"1vb",@stdlib/blas-base-assert-is-matrix-triangle
"1vc",@stdlib/blas/base/assert/is-transpose-operation
"1vd",@stdlib/blas-base-assert-is-transpose-operation
"1ve",@stdlib/blas/base/assert
"1vf",@stdlib/blas-base-assert
"0BQ",@stdlib/blas/base/ccopy
"0BR",@stdlib/blas-base-ccopy
"1vg",@stdlib/blas/base/cscal
"1vh",@stdlib/blas-base-cscal
"0BS",@stdlib/blas/base/cswap
"0BT",@stdlib/blas-base-cswap
"0BU",@stdlib/blas/base/dasum
"0BV",@stdlib/blas-base-dasum
"0BW",@stdlib/blas/base/daxpy
"0BX",@stdlib/blas-base-daxpy
"1vi",@stdlib/blas/base/dcabs1
"1vj",@stdlib/blas-base-dcabs1
"0BY",@stdlib/blas/base/dcopy
"0BZ",@stdlib/blas-base-dcopy
"0Ba",@stdlib/blas/base/ddot
"0Bb",@stdlib/blas-base-ddot
"1uU",@stdlib/blas/base/dger
"1uV",@stdlib/blas-base-dger
"1vk",@stdlib/blas/base/diagonal-types
"1vl",@stdlib/blas-base-diagonal-types
"0Bc",@stdlib/blas/base/dnrm2
"0Bd",@stdlib/blas-base-dnrm2
"1uW",@stdlib/blas/base/drot
Expand Down Expand Up @@ -1324,12 +1340,28 @@
"1uZ",@stdlib/blas-base-idamax
"1ua",@stdlib/blas/base/isamax
"1ub",@stdlib/blas-base-isamax
"1vm",@stdlib/blas/base/layout-enum2str
"1vn",@stdlib/blas-base-layout-enum2str
"1vo",@stdlib/blas/base/layout-resolve-enum
"1vp",@stdlib/blas-base-layout-resolve-enum
"1vq",@stdlib/blas/base/layout-resolve-str
"1vr",@stdlib/blas-base-layout-resolve-str
"1vs",@stdlib/blas/base/layout-str2enum
"1vt",@stdlib/blas-base-layout-str2enum
"1vu",@stdlib/blas/base/layouts
"1vv",@stdlib/blas-base-layouts
"1vw",@stdlib/blas/base/matrix-triangles
"1vx",@stdlib/blas-base-matrix-triangles
"1vy",@stdlib/blas/base/operation-sides
"1vz",@stdlib/blas-base-operation-sides
"0By",@stdlib/blas/base
"0Bz",@stdlib/blas-base
"0C0",@stdlib/blas/base/sasum
"0C1",@stdlib/blas-base-sasum
"0C2",@stdlib/blas/base/saxpy
"0C3",@stdlib/blas-base-saxpy
"1w0",@stdlib/blas/base/scabs1
"1w1",@stdlib/blas-base-scabs1
"0C4",@stdlib/blas/base/scopy
"0C5",@stdlib/blas-base-scopy
"0C6",@stdlib/blas/base/sdot
Expand All @@ -1348,6 +1380,8 @@
"0CD",@stdlib/blas-base-sscal
"0CE",@stdlib/blas/base/sswap
"0CF",@stdlib/blas-base-sswap
"1w2",@stdlib/blas/base/transpose-operations
"1w3",@stdlib/blas-base-transpose-operations
"1ug",@stdlib/blas/base/xerbla
"1uh",@stdlib/blas-base-xerbla
"1t6",@stdlib/blas/base/zcopy
Expand Down Expand Up @@ -6469,6 +6503,8 @@
"1NN",@stdlib/strided-base-quaternary
"1NO",@stdlib/strided/base/quinary
"1NP",@stdlib/strided-base-quinary
"1w4",@stdlib/strided/base/reinterpret-boolean
"1w5",@stdlib/strided-base-reinterpret-boolean
"1s2",@stdlib/strided/base/reinterpret-complex
"1s3",@stdlib/strided-base-reinterpret-complex
"1NQ",@stdlib/strided/base/reinterpret-complex128
Expand Down
2 changes: 1 addition & 1 deletion lib/node_modules/@stdlib/error/tools/id2pkg/data/data.json

Large diffs are not rendered by default.

36 changes: 36 additions & 0 deletions lib/node_modules/@stdlib/error/tools/pkg2id/data/data.csv
Original file line number Diff line number Diff line change
Expand Up @@ -7364,3 +7364,39 @@
"@stdlib/string-base-for-each-code-point-right",1vT
"@stdlib/string/last",1vU
"@stdlib/string-last",1vV
"@stdlib/assert/is-booleanarray",1vW
"@stdlib/assert-is-booleanarray",1vX
"@stdlib/blas/base/assert/is-layout",1vY
"@stdlib/blas-base-assert-is-layout",1vZ
"@stdlib/blas/base/assert/is-matrix-triangle",1va
"@stdlib/blas-base-assert-is-matrix-triangle",1vb
"@stdlib/blas/base/assert/is-transpose-operation",1vc
"@stdlib/blas-base-assert-is-transpose-operation",1vd
"@stdlib/blas/base/assert",1ve
"@stdlib/blas-base-assert",1vf
"@stdlib/blas/base/cscal",1vg
"@stdlib/blas-base-cscal",1vh
"@stdlib/blas/base/dcabs1",1vi
"@stdlib/blas-base-dcabs1",1vj
"@stdlib/blas/base/diagonal-types",1vk
"@stdlib/blas-base-diagonal-types",1vl
"@stdlib/blas/base/layout-enum2str",1vm
"@stdlib/blas-base-layout-enum2str",1vn
"@stdlib/blas/base/layout-resolve-enum",1vo
"@stdlib/blas-base-layout-resolve-enum",1vp
"@stdlib/blas/base/layout-resolve-str",1vq
"@stdlib/blas-base-layout-resolve-str",1vr
"@stdlib/blas/base/layout-str2enum",1vs
"@stdlib/blas-base-layout-str2enum",1vt
"@stdlib/blas/base/layouts",1vu
"@stdlib/blas-base-layouts",1vv
"@stdlib/blas/base/matrix-triangles",1vw
"@stdlib/blas-base-matrix-triangles",1vx
"@stdlib/blas/base/operation-sides",1vy
"@stdlib/blas-base-operation-sides",1vz
"@stdlib/blas/base/scabs1",1w0
"@stdlib/blas-base-scabs1",1w1
"@stdlib/blas/base/transpose-operations",1w2
"@stdlib/blas-base-transpose-operations",1w3
"@stdlib/strided/base/reinterpret-boolean",1w4
"@stdlib/strided-base-reinterpret-boolean",1w5
2 changes: 1 addition & 1 deletion lib/node_modules/@stdlib/error/tools/pkg2id/data/data.json

Large diffs are not rendered by default.

104 changes: 102 additions & 2 deletions lib/node_modules/@stdlib/math/base/special/rempio2/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ var rempio2 = require( '@stdlib/math/base/special/rempio2' );

#### rempio2( x, y )

Computes `x - nπ/2 = r`. The function returns `n` and stores the remainder `r` as two numbers in `y`, such that `y[0]+y[1] = r`.
Computes `x - nπ/2 = r`.

```javascript
var y = [ 0.0, 0.0 ];
Expand All @@ -46,7 +46,7 @@ var y2 = y[ 1 ];
// returns ~3.618e-17
```

When `x` is `NaN` or infinite, the function returns zero and sets the elements of `y` to `NaN`.
When `x` is `NaN` or infinite, the function returns `0` and sets the elements of `y` to `NaN`.

```javascript
var y = [ 0.0, 0.0 ];
Expand Down Expand Up @@ -80,6 +80,7 @@ y2 = y[ 1 ];

## Notes

- The function returns `n` and stores the remainder `r` as two numbers in `y`, such that `y[0]+y[1] = r`.
- For input values larger than `2^20*π/2` in magnitude, the function **only** returns the last three binary digits of `n` and not the full result.

</section>
Expand Down Expand Up @@ -111,6 +112,105 @@ for ( i = 0; i < x.length; i++ ) {

<!-- /.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">

</section>

<!-- /.intro -->

<!-- C usage documentation. -->

<section class="usage">

### Usage

```c
#include "stdlib/math/base/special/rempio2.h"
```

#### stdlib_base_rempio2( x, &rem1, &rem2 )

Computes `x - nπ/2 = r`.

```c
#include <stdint.h>

double rem1;
double rem2;

int32_t n = stdlib_base_rempio2( 4.0, &rem1, &rem2 );
```

The function accepts the following arguments:

- **x**: `[in] double` input value.
- **rem1**: `[out] double*` destination for first remainder number.
- **rem2**: `[out] double*` destination for second remainder number.

```c
int32_t stdlib_base_rempio2( const double x, double *rem1, double *rem2 );
```
</section>
<!-- /.usage -->
<!-- C API usage notes. Make sure to keep an empty line after the `section` element and another before the `/section` close. -->
<section class="notes">
### Notes
- The function returns `n` and stores the remainder `r` as two numbers in `rem1` and `rem2`, respectively, such that `rem1+rem2 = r`.
</section>
<!-- /.notes -->
<!-- C API usage examples. -->
<section class="examples">
### Examples
```c
#include "stdlib/math/base/special/rempio2.h"
#include <stdio.h>
#include <stdint.h>
#include <inttypes.h>
int main( void ) {
const double x[] = { 0.0, 1.0, 4.0, 128.0 };
double rem1;
double rem2;
int32_t n;
int i;
for ( i = 0; i < 4; i++ ) {
n = stdlib_base_rempio2( x[ i ], &rem1, &rem2 );
printf( "%lf - %"PRId32"π/2 = %lf + %lf\n", x[ i ], n, rem1, rem2 );
}
}
```

</section>

<!-- /.examples -->

</section>

<!-- /.c -->

<!-- Section for related `stdlib` packages. Do not manually edit this section, as it is automatically populated. -->

<section class="related">
Expand Down
Loading

1 comment on commit e2c4ad5

@stdlib-bot
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Coverage Report

Package Statements Branches Functions Lines
blas/base/layout-resolve-enum $\color{green}97/97$
$\color{green}+100.00\%$
$\color{green}9/9$
$\color{green}+100.00\%$
$\color{green}1/1$
$\color{green}+100.00\%$
$\color{green}97/97$
$\color{green}+100.00\%$
blas/base/layout-resolve-str $\color{green}96/96$
$\color{green}+100.00\%$
$\color{green}9/9$
$\color{green}+100.00\%$
$\color{green}1/1$
$\color{green}+100.00\%$
$\color{green}96/96$
$\color{green}+100.00\%$

The above coverage report was generated for the changes in this push.

Please sign in to comment.