Skip to content

Commit e2c4ad5

Browse files
committed
Merge branch 'develop' of https://github.com/stdlib-js/stdlib into develop
2 parents f9bc7dc + 7d9bf3e commit e2c4ad5

File tree

25 files changed

+2339
-54
lines changed

25 files changed

+2339
-54
lines changed

lib/node_modules/@stdlib/blas/base/README.md

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ var o = blas;
4646
<div class="namespace-toc">
4747

4848
- <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>
49+
- <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>
4950
- <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>
5051
- <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>
5152
- <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>
@@ -72,6 +73,8 @@ var o = blas;
7273
- <span class="signature">[`srotg( a, b )`][@stdlib/blas/base/srotg]</span><span class="delimiter">: </span><span class="description">construct a Givens plane rotation.</span>
7374
- <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>
7475
- <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>
76+
- <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>
77+
- <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>
7578

7679
</div>
7780

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

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

87+
<div class="namespace-toc">
88+
89+
- <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>
90+
- <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>
91+
92+
</div>
93+
8494
<!-- </toc> -->
8595

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

121131
<!-- <toc-links> -->
122132

133+
[@stdlib/blas/base/idamax]: https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/blas/base/idamax
134+
135+
[@stdlib/blas/base/isamax]: https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/blas/base/isamax
136+
123137
[@stdlib/blas/base/ccopy]: https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/blas/base/ccopy
124138

139+
[@stdlib/blas/base/cscal]: https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/blas/base/cscal
140+
125141
[@stdlib/blas/base/cswap]: https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/blas/base/cswap
126142

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

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

193+
[@stdlib/blas/base/zcopy]: https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/blas/base/zcopy
194+
195+
[@stdlib/blas/base/zswap]: https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/blas/base/zswap
196+
177197
<!-- </toc-links> -->
178198

179199
</section>

lib/node_modules/@stdlib/blas/base/assert/README.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,14 @@ var o = ns;
4141

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

44+
<div class="namespace-toc">
45+
46+
- <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>
47+
- <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>
48+
- <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>
49+
50+
</div>
51+
4452
<!-- </toc> -->
4553

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

7987
<section class="links">
8088

89+
<!-- <toc-links> -->
90+
91+
[@stdlib/blas/base/assert/is-layout]: https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/blas/base/assert/is-layout
92+
93+
[@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
94+
95+
[@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
96+
97+
<!-- </toc-links> -->
98+
8199
</section>
82100

83101
<!-- /.links -->

lib/node_modules/@stdlib/error/tools/database/data/data.csv

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -974,3 +974,9 @@
974974
"Fh","invalid operation. Cannot access settings for a REPL which has already closed.","Error"
975975
"Fi","invalid argument. First argument must be a recognized setting. Value: `%s`.","Error"
976976
"Fj","invalid invocation. `this` is not a boolean array.","TypeError"
977+
"Fk","invalid argument. Unable to parse commits for package: `%s`.","Error"
978+
"Fl","invalid argument. Unrecognized release type: `%s`.","TypeError"
979+
"Fm","invalid argument. First argument must be a supported BLAS memory layout. Value: `%s`.","TypeError"
980+
"Fn","invalid argument. First argument must be an existing theme name. Value: `%s`.","Error"
981+
"Fo","invalid argument. First argument must not be the default theme name. Value: `%s`.","Error"
982+
"Fp","invalid argument. Second argument must be an object. Value: `%s`.","TypeError"

lib/node_modules/@stdlib/error/tools/database/data/data.json

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

lib/node_modules/@stdlib/error/tools/id2pkg/data/data.csv

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -797,6 +797,8 @@
797797
"04n",@stdlib/assert-is-boolean-array
798798
"04o",@stdlib/assert/is-boolean
799799
"04p",@stdlib/assert-is-boolean
800+
"1vW",@stdlib/assert/is-booleanarray
801+
"1vX",@stdlib/assert-is-booleanarray
800802
"04q",@stdlib/assert/is-boxed-primitive
801803
"04r",@stdlib/assert-is-boxed-primitive
802804
"04s",@stdlib/assert/is-browser
@@ -1280,20 +1282,34 @@
12801282
"0BM",@stdlib/bigint/ctor
12811283
"0BN",@stdlib/bigint-ctor
12821284
"0BP",@stdlib/bigint
1285+
"1vY",@stdlib/blas/base/assert/is-layout
1286+
"1vZ",@stdlib/blas-base-assert-is-layout
1287+
"1va",@stdlib/blas/base/assert/is-matrix-triangle
1288+
"1vb",@stdlib/blas-base-assert-is-matrix-triangle
1289+
"1vc",@stdlib/blas/base/assert/is-transpose-operation
1290+
"1vd",@stdlib/blas-base-assert-is-transpose-operation
1291+
"1ve",@stdlib/blas/base/assert
1292+
"1vf",@stdlib/blas-base-assert
12831293
"0BQ",@stdlib/blas/base/ccopy
12841294
"0BR",@stdlib/blas-base-ccopy
1295+
"1vg",@stdlib/blas/base/cscal
1296+
"1vh",@stdlib/blas-base-cscal
12851297
"0BS",@stdlib/blas/base/cswap
12861298
"0BT",@stdlib/blas-base-cswap
12871299
"0BU",@stdlib/blas/base/dasum
12881300
"0BV",@stdlib/blas-base-dasum
12891301
"0BW",@stdlib/blas/base/daxpy
12901302
"0BX",@stdlib/blas-base-daxpy
1303+
"1vi",@stdlib/blas/base/dcabs1
1304+
"1vj",@stdlib/blas-base-dcabs1
12911305
"0BY",@stdlib/blas/base/dcopy
12921306
"0BZ",@stdlib/blas-base-dcopy
12931307
"0Ba",@stdlib/blas/base/ddot
12941308
"0Bb",@stdlib/blas-base-ddot
12951309
"1uU",@stdlib/blas/base/dger
12961310
"1uV",@stdlib/blas-base-dger
1311+
"1vk",@stdlib/blas/base/diagonal-types
1312+
"1vl",@stdlib/blas-base-diagonal-types
12971313
"0Bc",@stdlib/blas/base/dnrm2
12981314
"0Bd",@stdlib/blas-base-dnrm2
12991315
"1uW",@stdlib/blas/base/drot
@@ -1324,12 +1340,28 @@
13241340
"1uZ",@stdlib/blas-base-idamax
13251341
"1ua",@stdlib/blas/base/isamax
13261342
"1ub",@stdlib/blas-base-isamax
1343+
"1vm",@stdlib/blas/base/layout-enum2str
1344+
"1vn",@stdlib/blas-base-layout-enum2str
1345+
"1vo",@stdlib/blas/base/layout-resolve-enum
1346+
"1vp",@stdlib/blas-base-layout-resolve-enum
1347+
"1vq",@stdlib/blas/base/layout-resolve-str
1348+
"1vr",@stdlib/blas-base-layout-resolve-str
1349+
"1vs",@stdlib/blas/base/layout-str2enum
1350+
"1vt",@stdlib/blas-base-layout-str2enum
1351+
"1vu",@stdlib/blas/base/layouts
1352+
"1vv",@stdlib/blas-base-layouts
1353+
"1vw",@stdlib/blas/base/matrix-triangles
1354+
"1vx",@stdlib/blas-base-matrix-triangles
1355+
"1vy",@stdlib/blas/base/operation-sides
1356+
"1vz",@stdlib/blas-base-operation-sides
13271357
"0By",@stdlib/blas/base
13281358
"0Bz",@stdlib/blas-base
13291359
"0C0",@stdlib/blas/base/sasum
13301360
"0C1",@stdlib/blas-base-sasum
13311361
"0C2",@stdlib/blas/base/saxpy
13321362
"0C3",@stdlib/blas-base-saxpy
1363+
"1w0",@stdlib/blas/base/scabs1
1364+
"1w1",@stdlib/blas-base-scabs1
13331365
"0C4",@stdlib/blas/base/scopy
13341366
"0C5",@stdlib/blas-base-scopy
13351367
"0C6",@stdlib/blas/base/sdot
@@ -1348,6 +1380,8 @@
13481380
"0CD",@stdlib/blas-base-sscal
13491381
"0CE",@stdlib/blas/base/sswap
13501382
"0CF",@stdlib/blas-base-sswap
1383+
"1w2",@stdlib/blas/base/transpose-operations
1384+
"1w3",@stdlib/blas-base-transpose-operations
13511385
"1ug",@stdlib/blas/base/xerbla
13521386
"1uh",@stdlib/blas-base-xerbla
13531387
"1t6",@stdlib/blas/base/zcopy
@@ -6469,6 +6503,8 @@
64696503
"1NN",@stdlib/strided-base-quaternary
64706504
"1NO",@stdlib/strided/base/quinary
64716505
"1NP",@stdlib/strided-base-quinary
6506+
"1w4",@stdlib/strided/base/reinterpret-boolean
6507+
"1w5",@stdlib/strided-base-reinterpret-boolean
64726508
"1s2",@stdlib/strided/base/reinterpret-complex
64736509
"1s3",@stdlib/strided-base-reinterpret-complex
64746510
"1NQ",@stdlib/strided/base/reinterpret-complex128

lib/node_modules/@stdlib/error/tools/id2pkg/data/data.json

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

lib/node_modules/@stdlib/error/tools/pkg2id/data/data.csv

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7364,3 +7364,39 @@
73647364
"@stdlib/string-base-for-each-code-point-right",1vT
73657365
"@stdlib/string/last",1vU
73667366
"@stdlib/string-last",1vV
7367+
"@stdlib/assert/is-booleanarray",1vW
7368+
"@stdlib/assert-is-booleanarray",1vX
7369+
"@stdlib/blas/base/assert/is-layout",1vY
7370+
"@stdlib/blas-base-assert-is-layout",1vZ
7371+
"@stdlib/blas/base/assert/is-matrix-triangle",1va
7372+
"@stdlib/blas-base-assert-is-matrix-triangle",1vb
7373+
"@stdlib/blas/base/assert/is-transpose-operation",1vc
7374+
"@stdlib/blas-base-assert-is-transpose-operation",1vd
7375+
"@stdlib/blas/base/assert",1ve
7376+
"@stdlib/blas-base-assert",1vf
7377+
"@stdlib/blas/base/cscal",1vg
7378+
"@stdlib/blas-base-cscal",1vh
7379+
"@stdlib/blas/base/dcabs1",1vi
7380+
"@stdlib/blas-base-dcabs1",1vj
7381+
"@stdlib/blas/base/diagonal-types",1vk
7382+
"@stdlib/blas-base-diagonal-types",1vl
7383+
"@stdlib/blas/base/layout-enum2str",1vm
7384+
"@stdlib/blas-base-layout-enum2str",1vn
7385+
"@stdlib/blas/base/layout-resolve-enum",1vo
7386+
"@stdlib/blas-base-layout-resolve-enum",1vp
7387+
"@stdlib/blas/base/layout-resolve-str",1vq
7388+
"@stdlib/blas-base-layout-resolve-str",1vr
7389+
"@stdlib/blas/base/layout-str2enum",1vs
7390+
"@stdlib/blas-base-layout-str2enum",1vt
7391+
"@stdlib/blas/base/layouts",1vu
7392+
"@stdlib/blas-base-layouts",1vv
7393+
"@stdlib/blas/base/matrix-triangles",1vw
7394+
"@stdlib/blas-base-matrix-triangles",1vx
7395+
"@stdlib/blas/base/operation-sides",1vy
7396+
"@stdlib/blas-base-operation-sides",1vz
7397+
"@stdlib/blas/base/scabs1",1w0
7398+
"@stdlib/blas-base-scabs1",1w1
7399+
"@stdlib/blas/base/transpose-operations",1w2
7400+
"@stdlib/blas-base-transpose-operations",1w3
7401+
"@stdlib/strided/base/reinterpret-boolean",1w4
7402+
"@stdlib/strided-base-reinterpret-boolean",1w5

lib/node_modules/@stdlib/error/tools/pkg2id/data/data.json

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

lib/node_modules/@stdlib/math/base/special/rempio2/README.md

Lines changed: 102 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ var rempio2 = require( '@stdlib/math/base/special/rempio2' );
3232

3333
#### rempio2( x, y )
3434

35-
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`.
35+
Computes `x - nπ/2 = r`.
3636

3737
```javascript
3838
var y = [ 0.0, 0.0 ];
@@ -46,7 +46,7 @@ var y2 = y[ 1 ];
4646
// returns ~3.618e-17
4747
```
4848

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

5151
```javascript
5252
var y = [ 0.0, 0.0 ];
@@ -80,6 +80,7 @@ y2 = y[ 1 ];
8080

8181
## Notes
8282

83+
- The function returns `n` and stores the remainder `r` as two numbers in `y`, such that `y[0]+y[1] = r`.
8384
- 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.
8485

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

112113
<!-- /.examples -->
113114

115+
<!-- C interface documentation. -->
116+
117+
* * *
118+
119+
<section class="c">
120+
121+
## C APIs
122+
123+
<!-- Section to include introductory text. Make sure to keep an empty line after the intro `section` element and another before the `/section` close. -->
124+
125+
<section class="intro">
126+
127+
</section>
128+
129+
<!-- /.intro -->
130+
131+
<!-- C usage documentation. -->
132+
133+
<section class="usage">
134+
135+
### Usage
136+
137+
```c
138+
#include "stdlib/math/base/special/rempio2.h"
139+
```
140+
141+
#### stdlib_base_rempio2( x, &rem1, &rem2 )
142+
143+
Computes `x - nπ/2 = r`.
144+
145+
```c
146+
#include <stdint.h>
147+
148+
double rem1;
149+
double rem2;
150+
151+
int32_t n = stdlib_base_rempio2( 4.0, &rem1, &rem2 );
152+
```
153+
154+
The function accepts the following arguments:
155+
156+
- **x**: `[in] double` input value.
157+
- **rem1**: `[out] double*` destination for first remainder number.
158+
- **rem2**: `[out] double*` destination for second remainder number.
159+
160+
```c
161+
int32_t stdlib_base_rempio2( const double x, double *rem1, double *rem2 );
162+
```
163+
164+
</section>
165+
166+
<!-- /.usage -->
167+
168+
<!-- C API usage notes. Make sure to keep an empty line after the `section` element and another before the `/section` close. -->
169+
170+
<section class="notes">
171+
172+
### Notes
173+
174+
- The function returns `n` and stores the remainder `r` as two numbers in `rem1` and `rem2`, respectively, such that `rem1+rem2 = r`.
175+
176+
</section>
177+
178+
<!-- /.notes -->
179+
180+
<!-- C API usage examples. -->
181+
182+
<section class="examples">
183+
184+
### Examples
185+
186+
```c
187+
#include "stdlib/math/base/special/rempio2.h"
188+
#include <stdio.h>
189+
#include <stdint.h>
190+
#include <inttypes.h>
191+
192+
int main( void ) {
193+
const double x[] = { 0.0, 1.0, 4.0, 128.0 };
194+
195+
double rem1;
196+
double rem2;
197+
int32_t n;
198+
int i;
199+
for ( i = 0; i < 4; i++ ) {
200+
n = stdlib_base_rempio2( x[ i ], &rem1, &rem2 );
201+
printf( "%lf - %"PRId32"π/2 = %lf + %lf\n", x[ i ], n, rem1, rem2 );
202+
}
203+
}
204+
```
205+
206+
</section>
207+
208+
<!-- /.examples -->
209+
210+
</section>
211+
212+
<!-- /.c -->
213+
114214
<!-- Section for related `stdlib` packages. Do not manually edit this section, as it is automatically populated. -->
115215

116216
<section class="related">

0 commit comments

Comments
 (0)