Skip to content

Commit e1c5923

Browse files
committed
Merge branch 'develop' into feat/gammainc-c
2 parents d79211e + 25e64ce commit e1c5923

File tree

492 files changed

+27289
-1616
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

492 files changed

+27289
-1616
lines changed
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"pattern": "**/package.json",
3-
"filename": "docs/repl.txt",
4-
"ignore": []
2+
"pattern": "**/package.json",
3+
"filename": "docs/repl.txt",
4+
"ignore": []
55
}

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ var o = blas;
8888
- <span class="signature">[`zaxpy( N, alpha, x, strideX, y, strideY )`][@stdlib/blas/base/zaxpy]</span><span class="delimiter">: </span><span class="description">scale a double-precision complex floating-point vector by a double-precision complex floating-point constant and add the result to a double-precision complex floating-point vector.</span>
8989
- <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>
9090
- <span class="signature">[`zdrot( N, x, strideX, y, strideY, c, s )`][@stdlib/blas/base/zdrot]</span><span class="delimiter">: </span><span class="description">apply a plane rotation.</span>
91-
- <span class="signature">[`zdscal( N, da, zx, strideZX )`][@stdlib/blas/base/zdscal]</span><span class="delimiter">: </span><span class="description">scale a double-precision complex floating-point vector by a double-precision floating-point constant.</span>
91+
- <span class="signature">[`zdscal( N, alpha, x, strideX )`][@stdlib/blas/base/zdscal]</span><span class="delimiter">: </span><span class="description">scale a double-precision complex floating-point vector by a double-precision floating-point constant.</span>
9292
- <span class="signature">[`zscal( N, alpha, x, strideX )`][@stdlib/blas/base/zscal]</span><span class="delimiter">: </span><span class="description">scales a double-precision complex floating-point vector by a double-precision complex floating-point constant.</span>
9393
- <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>
9494

lib/node_modules/@stdlib/blas/base/csscal/lib/csscal.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ var ndarray = require( './ndarray.js' );
3030
* Scales a single-precision complex floating-point vector by a single-precision floating-point constant.
3131
*
3232
* @param {PositiveInteger} N - number of indexed elements
33-
* @param {number} alpha - constant
33+
* @param {number} alpha - scalar constant
3434
* @param {Complex64Array} x - input array
3535
* @param {integer} strideX - `x` stride length
3636
* @returns {Complex64Array} input array

lib/node_modules/@stdlib/blas/base/csscal/lib/ndarray.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ var scale = require( '@stdlib/complex/float32/base/scale' ).strided;
3030
* Scales a single-precision complex floating-point vector by a single-precision floating-point constant.
3131
*
3232
* @param {PositiveInteger} N - number of indexed elements
33-
* @param {number} alpha - constant
33+
* @param {number} alpha - scalar constant
3434
* @param {Complex64Array} x - input array
3535
* @param {integer} strideX - `x` stride length
3636
* @param {NonNegativeInteger} offsetX - starting `x` index

lib/node_modules/@stdlib/blas/base/sgemm/lib/ndarray.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ function sgemm( transA, transB, M, N, K, alpha, A, strideA1, strideA2, offsetA,
7979
throw new RangeError( format( 'invalid argument. Third argument must be a nonnegative integer. Value: `%d`.', M ) );
8080
}
8181
if ( N < 0 ) {
82-
throw new RangeError( format( 'invalid argument. Fourth argument must be a nonnegative integer. Value: `%d`.', M ) );
82+
throw new RangeError( format( 'invalid argument. Fourth argument must be a nonnegative integer. Value: `%d`.', N ) );
8383
}
8484
if ( K < 0 ) {
8585
throw new RangeError( format( 'invalid argument. Fifth argument must be a nonnegative integer. Value: `%d`.', K ) );

lib/node_modules/@stdlib/blas/base/sgemm/lib/sgemm.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ function sgemm( order, transA, transB, M, N, K, alpha, A, LDA, B, LDB, beta, C,
9595
throw new RangeError( format( 'invalid argument. Fourth argument must be a nonnegative integer. Value: `%d`.', M ) );
9696
}
9797
if ( N < 0 ) {
98-
throw new RangeError( format( 'invalid argument. Fifth argument must be a nonnegative integer. Value: `%d`.', M ) );
98+
throw new RangeError( format( 'invalid argument. Fifth argument must be a nonnegative integer. Value: `%d`.', N ) );
9999
}
100100
if ( K < 0 ) {
101101
throw new RangeError( format( 'invalid argument. Sixth argument must be a nonnegative integer. Value: `%d`.', K ) );

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

Lines changed: 29 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -30,35 +30,35 @@ limitations under the License.
3030
var zdscal = require( '@stdlib/blas/base/zdscal' );
3131
```
3232

33-
#### zdscal( N, da, zx, strideZX )
33+
#### zdscal( N, alpha, x, strideX )
3434

3535
Scales a double-precision complex floating-point vector by a double-precision floating-point constant.
3636

3737
```javascript
3838
var Complex128Array = require( '@stdlib/array/complex128' );
3939

40-
var zx = new Complex128Array( [ 1.0, 1.0, 1.0, 1.0, 1.0, 1.0 ] );
40+
var x = new Complex128Array( [ 1.0, 1.0, 1.0, 1.0, 1.0, 1.0 ] );
4141

42-
zdscal( 3, 2.0, zx, 1 );
43-
// zx => <Complex128Array>[ 2.0, 2.0, 2.0, 2.0, 2.0, 2.0 ]
42+
zdscal( 3, 2.0, x, 1 );
43+
// x => <Complex128Array>[ 2.0, 2.0, 2.0, 2.0, 2.0, 2.0 ]
4444
```
4545

4646
The function has the following parameters:
4747

4848
- **N**: number of indexed elements.
49-
- **da**: scalar constant.
50-
- **zx**: input [`Complex128Array`][@stdlib/array/complex128].
51-
- **strideZX**: stride length for `zx`.
49+
- **alpha**: scalar constant.
50+
- **x**: input [`Complex128Array`][@stdlib/array/complex128].
51+
- **strideX**: stride length for `x`.
5252

53-
The `N` and stride parameters determine which elements in `zx` are scaled by `da`. For example, to scale every other element in `zx` by `da`,
53+
The `N` and stride parameters determine which elements in `x` are scaled by `alpha`. For example, to scale every other element in `x` by `alpha`,
5454

5555
```javascript
5656
var Complex128Array = require( '@stdlib/array/complex128' );
5757

58-
var zx = new Complex128Array( [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0 ] );
58+
var x = new Complex128Array( [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0 ] );
5959

60-
zdscal( 2, 2.0, zx, 2 );
61-
// zx => <Complex128Array>[ 2.0, 4.0, 3.0, 4.0, 10.0, 12.0, 7.0, 8.0 ]
60+
zdscal( 2, 2.0, x, 2 );
61+
// x => <Complex128Array>[ 2.0, 4.0, 3.0, 4.0, 10.0, 12.0, 7.0, 8.0 ]
6262
```
6363

6464
Note that indexing is relative to the first index. To introduce an offset, use [`typed array`][mdn-typed-array] views.
@@ -69,42 +69,42 @@ Note that indexing is relative to the first index. To introduce an offset, use [
6969
var Complex128Array = require( '@stdlib/array/complex128' );
7070

7171
// Initial array:
72-
var zx0 = new Complex128Array( [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0 ] );
72+
var x0 = new Complex128Array( [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0 ] );
7373

7474
// Create an offset view:
75-
var zx1 = new Complex128Array( zx0.buffer, zx0.BYTES_PER_ELEMENT*1 ); // start at 2nd element
75+
var x1 = new Complex128Array( x0.buffer, x0.BYTES_PER_ELEMENT*1 ); // start at 2nd element
7676

77-
// Scale every element in `zx1`:
78-
zdscal( 3, 2.0, zx1, 1 );
79-
// zx0 => <Complex128Array>[ 1.0, 2.0, 6.0, 8.0, 10.0, 12.0, 14.0, 16.0 ]
77+
// Scale every element in `x1`:
78+
zdscal( 3, 2.0, x1, 1 );
79+
// x0 => <Complex128Array>[ 1.0, 2.0, 6.0, 8.0, 10.0, 12.0, 14.0, 16.0 ]
8080
```
8181

82-
#### zdscal.ndarray( N, da, zx, strideZX, offsetZX )
82+
#### zdscal.ndarray( N, alpha, x, strideX, offsetX )
8383

8484
Scales a double-precision complex floating-point vector by a double-precision floating-point constant using alternative indexing semantics.
8585

8686
```javascript
8787
var Complex128Array = require( '@stdlib/array/complex128' );
8888

89-
var zx = new Complex128Array( [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0 ] );
89+
var x = new Complex128Array( [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0 ] );
9090

91-
zdscal.ndarray( 3, 2.0, zx, 1, 0 );
92-
// zx => <Complex128Array>[ 2.0, 4.0, 6.0, 8.0, 10.0, 12.0 ]
91+
zdscal.ndarray( 3, 2.0, x, 1, 0 );
92+
// x => <Complex128Array>[ 2.0, 4.0, 6.0, 8.0, 10.0, 12.0 ]
9393
```
9494

9595
The function has the following additional parameters:
9696

97-
- **offsetZX**: starting index for `zx`.
97+
- **offsetX**: starting index for `x`.
9898

9999
While [`typed array`][mdn-typed-array] views mandate a view offset based on the underlying buffer, the offset parameter supports indexing semantics based on a starting index. For example, to scale every other element in the input strided array starting from the second element,
100100

101101
```javascript
102102
var Complex128Array = require( '@stdlib/array/complex128' );
103103

104-
var zx = new Complex128Array( [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0 ] );
104+
var x = new Complex128Array( [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0 ] );
105105

106-
zdscal.ndarray( 2, 2.0, zx, 2, 1 );
107-
// zx => <Complex128Array>[ 1.0, 2.0, 6.0, 8.0, 5.0, 6.0, 14.0, 16.0 ]
106+
zdscal.ndarray( 2, 2.0, x, 2, 1 );
107+
// x => <Complex128Array>[ 1.0, 2.0, 6.0, 8.0, 5.0, 6.0, 14.0, 16.0 ]
108108
```
109109

110110
</section>
@@ -115,7 +115,7 @@ zdscal.ndarray( 2, 2.0, zx, 2, 1 );
115115

116116
## Notes
117117

118-
- If `N <= 0`, both functions return `zx` unchanged.
118+
- If `N <= 0`, both functions return `x` unchanged.
119119
- `zdscal()` corresponds to the [BLAS][blas] level 1 function [`zdscal`][zdscal].
120120

121121
</section>
@@ -138,11 +138,11 @@ function rand() {
138138
return new Complex128( discreteUniform( 0, 10 ), discreteUniform( -5, 5 ) );
139139
}
140140

141-
var zx = filledarrayBy( 10, 'complex128', rand );
142-
console.log( zx.toString() );
141+
var x = filledarrayBy( 10, 'complex128', rand );
142+
console.log( x.toString() );
143143

144-
zdscal( zx.length, 2.0, zx, 1 );
145-
console.log( zx.toString() );
144+
zdscal( x.length, 2.0, x, 1 );
145+
console.log( x.toString() );
146146
```
147147

148148
</section>

lib/node_modules/@stdlib/blas/base/zdscal/benchmark/benchmark.js

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -46,11 +46,11 @@ var options = {
4646
* @returns {Function} benchmark function
4747
*/
4848
function createBenchmark( len ) {
49-
var zxbuf;
50-
var zx;
49+
var xbuf;
50+
var x;
5151

52-
zxbuf = uniform( len*2, -100.0, 100.0, options );
53-
zx = new Complex128Array( zxbuf.buffer );
52+
xbuf = uniform( len*2, -100.0, 100.0, options );
53+
x = new Complex128Array( xbuf.buffer );
5454

5555
return benchmark;
5656

@@ -65,13 +65,13 @@ function createBenchmark( len ) {
6565

6666
b.tic();
6767
for ( i = 0; i < b.iterations; i++ ) {
68-
zdscal( zx.length, 2.0, zx, 1 );
69-
if ( isnan( zxbuf[ i%(len*2) ] ) ) {
68+
zdscal( x.length, 2.0, x, 1 );
69+
if ( isnan( xbuf[ i%(len*2) ] ) ) {
7070
b.fail( 'should not return NaN' );
7171
}
7272
}
7373
b.toc();
74-
if ( isnan( zxbuf[ i%(len*2) ] ) ) {
74+
if ( isnan( xbuf[ i%(len*2) ] ) ) {
7575
b.fail( 'should not return NaN' );
7676
}
7777
b.pass( 'benchmark finished' );

lib/node_modules/@stdlib/blas/base/zdscal/benchmark/benchmark.ndarray.js

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -46,11 +46,11 @@ var options = {
4646
* @returns {Function} benchmark function
4747
*/
4848
function createBenchmark( len ) {
49-
var zxbuf;
50-
var zx;
49+
var xbuf;
50+
var x;
5151

52-
zxbuf = uniform( len*2, -100.0, 100.0, options );
53-
zx = new Complex128Array( zxbuf.buffer );
52+
xbuf = uniform( len*2, -100.0, 100.0, options );
53+
x = new Complex128Array( xbuf.buffer );
5454

5555
return benchmark;
5656

@@ -65,13 +65,13 @@ function createBenchmark( len ) {
6565

6666
b.tic();
6767
for ( i = 0; i < b.iterations; i++ ) {
68-
zdscal( zx.length, 2.0, zx, 1, 0 );
69-
if ( isnan( zxbuf[ i%(len*2) ] ) ) {
68+
zdscal( x.length, 2.0, x, 1, 0 );
69+
if ( isnan( xbuf[ i%(len*2) ] ) ) {
7070
b.fail( 'should not return NaN' );
7171
}
7272
}
7373
b.toc();
74-
if ( isnan( zxbuf[ i%(len*2) ] ) ) {
74+
if ( isnan( xbuf[ i%(len*2) ] ) ) {
7575
b.fail( 'should not return NaN' );
7676
}
7777
b.pass( 'benchmark finished' );

lib/node_modules/@stdlib/blas/base/zdscal/docs/repl.txt

Lines changed: 29 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -1,58 +1,58 @@
11

2-
{{alias}}( N, da, zx, strideZX )
2+
{{alias}}( N, alpha, x, strideX )
33
Scales a double-precision complex floating-point vector by a double-
44
precision floating-point constant.
55

6-
The `N` and stride parameters determine which elements in `zx` are scaled by
7-
`da`.
6+
The `N` and stride parameters determine which elements in `x` are scaled by
7+
`alpha`.
88

99
Indexing is relative to the first index. To introduce an offset, use typed
1010
array views.
1111

12-
If `N` is less than or equal to `0`, the function returns `zx` unchanged.
12+
If `N` is less than or equal to `0`, the function returns `x` unchanged.
1313

1414

1515
Parameters
1616
----------
1717
N: integer
1818
Number of indexed elements.
1919

20-
da: double
20+
alpha: double
2121
Scalar constant.
2222

23-
zx: Complex128Array
23+
x: Complex128Array
2424
Input array.
2525

26-
strideZX: integer
27-
Stride length for `zx`.
26+
strideX: integer
27+
Stride length for `x`.
2828

2929
Returns
3030
-------
31-
zx: Complex128Array
31+
x: Complex128Array
3232
Input array.
3333

3434
Examples
3535
--------
3636
// Standard usage:
37-
> var zx = new {{alias:@stdlib/array/complex128}}( [ 1.0, 2.0, 3.0, 4.0 ] );
38-
> {{alias}}( 2, 2.0, zx, 1 )
37+
> var x = new {{alias:@stdlib/array/complex128}}( [ 1.0, 2.0, 3.0, 4.0 ] );
38+
> {{alias}}( 2, 2.0, x, 1 )
3939
<Complex128Array>[ 2.0, 4.0, 6.0, 8.0 ]
4040

4141
// N and stride parameters:
42-
> zx = new {{alias:@stdlib/array/complex128}}( [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0 ] );
43-
> {{alias}}( 2, 2.0, zx, 2 )
42+
> x = new {{alias:@stdlib/array/complex128}}( [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0 ] );
43+
> {{alias}}( 2, 2.0, x, 2 )
4444
<Complex128Array>[ 2.0, 4.0, 3.0, 4.0, 10.0, 12.0 ]
4545

4646
// Using typed array views:
47-
> var zx0 = new {{alias:@stdlib/array/complex128}}( [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0 ] );
48-
> var zx1 = new {{alias:@stdlib/array/complex128}}( zx0.buffer, zx0.BYTES_PER_ELEMENT*1 );
49-
> {{alias}}( 2, 2.0, zx1, 1 )
47+
> var x0 = new {{alias:@stdlib/array/complex128}}( [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0 ] );
48+
> var x1 = new {{alias:@stdlib/array/complex128}}( x0.buffer, x0.BYTES_PER_ELEMENT*1 );
49+
> {{alias}}( 2, 2.0, x1, 1 )
5050
<Complex128Array>[ 6.0, 8.0, 10.0, 12.0 ]
51-
> zx0
51+
> x0
5252
<Complex128Array>[ 1.0, 2.0, 6.0, 8.0, 10.0, 12.0 ]
5353

5454

55-
{{alias}}.ndarray( N, da, zx, strideZX, offsetZX )
55+
{{alias}}.ndarray( N, alpha, x, strideX, offsetX )
5656
Scales a double-precision complex floating-point vector by a double-
5757
precision floating-point constant using alternative indexing semantics.
5858

@@ -65,33 +65,33 @@
6565
N: integer
6666
Number of indexed elements.
6767

68-
da: number
68+
alpha: number
6969
Scalar constant.
7070

71-
zx: Complex128Array
71+
x: Complex128Array
7272
Input array.
7373

74-
strideZX: integer
75-
Stride length for `zx`.
74+
strideX: integer
75+
Stride length for `x`.
7676

77-
offsetZX: integer
78-
Starting index for `zx`.
77+
offsetX: integer
78+
Starting index for `x`.
7979

8080
Returns
8181
-------
82-
zx: Complex128Array
82+
x: Complex128Array
8383
Input array.
8484

8585
Examples
8686
--------
8787
// Standard usage:
88-
> var zx = new {{alias:@stdlib/array/complex128}}( [ 1.0, 2.0, 3.0, 4.0 ] );
89-
> {{alias}}.ndarray( 2, 2.0, zx, 1, 0 )
88+
> var x = new {{alias:@stdlib/array/complex128}}( [ 1.0, 2.0, 3.0, 4.0 ] );
89+
> {{alias}}.ndarray( 2, 2.0, x, 1, 0 )
9090
<Complex128Array>[ 2.0, 4.0, 6.0, 8.0 ]
9191

9292
// Advanced indexing:
93-
> zx = new {{alias:@stdlib/array/complex128}}( [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0 ] );
94-
> {{alias}}.ndarray( 2, 2.0, zx, 1, 2 )
93+
> x = new {{alias:@stdlib/array/complex128}}( [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0 ] );
94+
> {{alias}}.ndarray( 2, 2.0, x, 1, 2 )
9595
<Complex128Array>[ 1.0, 2.0, 3.0, 4.0, 10.0, 12.0, 14.0, 16.0 ]
9696

9797
See Also

0 commit comments

Comments
 (0)