Skip to content

Commit 720d863

Browse files
authored
Merge branch 'develop' into array/base-toFilled
2 parents dd4f94d + c5fad82 commit 720d863

284 files changed

Lines changed: 13323 additions & 359 deletions

File tree

Some content is hidden

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

lib/node_modules/@stdlib/_tools/eslint/rules/eol-open-bracket-spacing/lib/main.js

Lines changed: 17 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -79,44 +79,49 @@ function main( context ) {
7979
var prevToken;
8080
var elem;
8181
var args;
82+
var v;
8283

8384
if (
8485
( node.type === 'CallExpression' || node.type === 'NewExpression' ) &&
8586
node.arguments.length > 0
8687
) {
8788
args = node.arguments;
89+
v = args[ 0 ];
8890
if (
89-
args[ 0 ].type === 'ObjectExpression' &&
90-
args[ 0 ].properties.length > 0
91+
v &&
92+
v.type === 'ObjectExpression' &&
93+
v.properties.length > 0
9194
) {
92-
prevToken = source.getTokenBefore( args[ 0 ] );
93-
tokenAfter = source.getFirstToken( args[ 0 ] );
95+
prevToken = source.getTokenBefore( v );
96+
tokenAfter = source.getFirstToken( v );
9497
if (
9598
prevToken.loc.end.line === tokenAfter.loc.end.line &&
9699
source.isSpaceBetween( prevToken, tokenAfter )
97100
) {
98101
report( node, prevToken, tokenAfter );
99102
}
100103
} else if (
101-
args[ 0 ].type === 'ArrayExpression' &&
102-
args[ 0 ].elements.length > 0
104+
v &&
105+
v.type === 'ArrayExpression' &&
106+
v.elements.length > 0
103107
) {
104-
elem = args[ 0 ].elements[ 0 ];
108+
elem = v.elements[ 0 ];
105109
if (
110+
elem &&
106111
elem.type === 'ObjectExpression' &&
107112
elem.properties.length > 0
108113
) {
109-
prevToken = source.getTokenBefore( args[ 0 ] );
110-
tokenAfter = source.getFirstToken( args[ 0 ] );
114+
prevToken = source.getTokenBefore( v );
115+
tokenAfter = source.getFirstToken( v );
111116
if (
112117
prevToken.loc.end.line === tokenAfter.loc.end.line &&
113118
source.isSpaceBetween( prevToken, tokenAfter )
114119
) {
115120
report( node, prevToken, tokenAfter );
116121
}
117122
} else {
118-
prevToken = source.getTokenBefore( args[ 0 ] );
119-
tokenAfter = source.getFirstToken( args[ 0 ] );
123+
prevToken = source.getTokenBefore( v );
124+
tokenAfter = source.getFirstToken( v );
120125
nextToken = source.getTokenAfter( tokenAfter );
121126
if (
122127
tokenAfter.loc.end.line !== nextToken.loc.end.line &&
@@ -135,6 +140,7 @@ function main( context ) {
135140
) {
136141
elem = node.elements[ 0 ];
137142
if (
143+
elem &&
138144
elem.type === 'ObjectExpression' &&
139145
elem.properties.length > 0
140146
) {

lib/node_modules/@stdlib/_tools/eslint/rules/line-closing-bracket-spacing/lib/main.js

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -86,8 +86,9 @@ function main( context ) {
8686
node.arguments.length > 0
8787
) {
8888
args = node.arguments;
89-
lastElem = args[ args.length - 1 ];
89+
lastElem = args[ args.length-1 ];
9090
if (
91+
lastElem &&
9192
lastElem.type === 'ObjectExpression' &&
9293
lastElem.properties.length > 0
9394
) {
@@ -100,11 +101,13 @@ function main( context ) {
100101
report( node, prevToken, tokenAfter );
101102
}
102103
} else if (
104+
lastElem &&
103105
lastElem.type === 'ArrayExpression' &&
104106
lastElem.elements.length > 0
105107
) {
106-
elem = lastElem.elements[ lastElem.elements.length - 1 ];
108+
elem = lastElem.elements[ lastElem.elements.length-1 ];
107109
if (
110+
elem &&
108111
elem.type === 'ObjectExpression' &&
109112
elem.properties.length > 0
110113
) {
@@ -135,8 +138,9 @@ function main( context ) {
135138
node.type === 'ArrayExpression' &&
136139
node.elements.length > 0
137140
) {
138-
elem = node.elements[ node.elements.length - 1 ];
141+
elem = node.elements[ node.elements.length-1 ];
139142
if (
143+
elem &&
140144
elem.type === 'ObjectExpression' &&
141145
elem.properties.length > 0
142146
) {

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

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

4848
- <span class="signature">[`caxpy( N, alpha, x, strideX, y, strideY )`][@stdlib/blas/base/caxpy]</span><span class="delimiter">: </span><span class="description">scale a single-precision complex floating-point vector by a single-precision complex floating-point constant and add the result to a single-precision complex floating-point vector.</span>
49-
- <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">[`ccopy( N, x, strideX, y, strideY )`][@stdlib/blas/base/ccopy]</span><span class="delimiter">: </span><span class="description">copy values from one single-precision complex floating-point vector to another single-precision complex floating-point vector.</span>
5050
- <span class="signature">[`cscal( N, alpha, x, 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>
5151
- <span class="signature">[`csrot( N, x, strideX, y, strideY, c, s )`][@stdlib/blas/base/csrot]</span><span class="delimiter">: </span><span class="description">apply a plane rotation.</span>
5252
- <span class="signature">[`csscal( N, alpha, x, strideX )`][@stdlib/blas/base/csscal]</span><span class="delimiter">: </span><span class="description">scale a single-precision complex floating-point vector by a single-precision floating-point constant.</span>
53-
- <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>
53+
- <span class="signature">[`cswap( N, x, strideX, y, strideY )`][@stdlib/blas/base/cswap]</span><span class="delimiter">: </span><span class="description">interchange two single-precision complex floating-point vectors.</span>
5454
- <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>
5555
- <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>
5656
- <span class="signature">[`dcopy( N, x, strideX, y, strideY )`][@stdlib/blas/base/dcopy]</span><span class="delimiter">: </span><span class="description">copy values from `x` into `y`.</span>
@@ -62,7 +62,7 @@ var o = blas;
6262
- <span class="signature">[`dscal( N, alpha, x, stride )`][@stdlib/blas/base/dscal]</span><span class="delimiter">: </span><span class="description">multiply a double-precision floating-point vector `x` by a constant `alpha`.</span>
6363
- <span class="signature">[`dsdot( N, x, strideX, y, strideY )`][@stdlib/blas/base/dsdot]</span><span class="delimiter">: </span><span class="description">calculate the dot product with extended accumulation and result of two single-precision floating-point vectors.</span>
6464
- <span class="signature">[`dswap( N, x, strideX, y, strideY )`][@stdlib/blas/base/dswap]</span><span class="delimiter">: </span><span class="description">interchange two double-precision floating-point vectors.</span>
65-
- <span class="signature">[`dznrm2( N, x, strideX )`][@stdlib/blas/base/dznrm2]</span><span class="delimiter">: </span><span class="description">compute the L2-norm of a complex double-precision floating-point vector.</span>
65+
- <span class="signature">[`dznrm2( N, x, strideX )`][@stdlib/blas/base/dznrm2]</span><span class="delimiter">: </span><span class="description">compute the L2-norm of a double-precision complex floating-point vector.</span>
6666
- <span class="signature">[`gasum( N, x, stride )`][@stdlib/blas/base/gasum]</span><span class="delimiter">: </span><span class="description">compute the sum of absolute values (_L1_ norm).</span>
6767
- <span class="signature">[`gaxpy( N, alpha, x, strideX, y, strideY )`][@stdlib/blas/base/gaxpy]</span><span class="delimiter">: </span><span class="description">multiply `x` by a constant `alpha` and add the result to `y`.</span>
6868
- <span class="signature">[`gcopy( N, x, strideX, y, strideY )`][@stdlib/blas/base/gcopy]</span><span class="delimiter">: </span><span class="description">copy values from `x` into `y`.</span>
@@ -76,7 +76,7 @@ var o = blas;
7676
- <span class="signature">[`sasum( N, x, stride )`][@stdlib/blas/base/sasum]</span><span class="delimiter">: </span><span class="description">compute the sum of absolute values (_L1_ norm).</span>
7777
- <span class="signature">[`saxpy( N, alpha, x, strideX, y, strideY )`][@stdlib/blas/base/saxpy]</span><span class="delimiter">: </span><span class="description">multiply a vector `x` by a constant `alpha` and add the result to `y`.</span>
7878
- <span class="signature">[`scasum( N, x, strideX )`][@stdlib/blas/base/scasum]</span><span class="delimiter">: </span><span class="description">compute the sum of the absolute values of the real and imaginary components of a single-precision complex floating-point vector.</span>
79-
- <span class="signature">[`scnrm2( N, x, strideX )`][@stdlib/blas/base/scnrm2]</span><span class="delimiter">: </span><span class="description">compute the L2-norm of a complex single-precision floating-point vector.</span>
79+
- <span class="signature">[`scnrm2( N, x, strideX )`][@stdlib/blas/base/scnrm2]</span><span class="delimiter">: </span><span class="description">compute the L2-norm of a single-precision complex floating-point vector.</span>
8080
- <span class="signature">[`scopy( N, x, strideX, y, strideY )`][@stdlib/blas/base/scopy]</span><span class="delimiter">: </span><span class="description">copy values from `x` into `y`.</span>
8181
- <span class="signature">[`sdot( N, x, strideX, y, strideY )`][@stdlib/blas/base/sdot]</span><span class="delimiter">: </span><span class="description">calculate the dot product of two single-precision floating-point vectors.</span>
8282
- <span class="signature">[`sdsdot( N, scalar, x, strideX, y, strideY )`][@stdlib/blas/base/sdsdot]</span><span class="delimiter">: </span><span class="description">calculate the dot product of two single-precision floating-point vectors with extended accumulation.</span>
@@ -87,11 +87,11 @@ var o = blas;
8787
- <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>
8888
- <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>
8989
- <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>
90-
- <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>
90+
- <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 double-precision complex floating-point vector to another double-precision complex floating-point vector.</span>
9191
- <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>
9292
- <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>
9393
- <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>
94-
- <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>
94+
- <span class="signature">[`zswap( N, x, strideX, y, strideY )`][@stdlib/blas/base/zswap]</span><span class="delimiter">: </span><span class="description">interchange two double-precision complex floating-point vectors.</span>
9595

9696
</div>
9797

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ limitations under the License.
2020

2121
# ccopy
2222

23-
> Copy values from one complex single-precision floating-point vector to another complex single-precision floating-point vector.
23+
> Copy values from one single-precision complex floating-point vector to another single-precision complex floating-point vector.
2424
2525
<section class="usage">
2626

@@ -303,7 +303,7 @@ int main( void ) {
303303
304304
## See Also
305305
306-
- <span class="package-name">[`@stdlib/blas/base/cswap`][@stdlib/blas/base/cswap]</span><span class="delimiter">: </span><span class="description">interchange two complex single-precision floating-point vectors.</span>
306+
- <span class="package-name">[`@stdlib/blas/base/cswap`][@stdlib/blas/base/cswap]</span><span class="delimiter">: </span><span class="description">interchange two single-precision complex floating-point vectors.</span>
307307
308308
</section>
309309

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

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

22
{{alias}}( N, x, strideX, y, strideY )
3-
Copies values from one complex single-precision floating-point vector to
4-
another complex single-precision floating-point vector.
3+
Copies values from one single-precision complex floating-point vector to
4+
another single-precision complex floating-point vector.
55

66
The `N` and stride parameters determine how values from `x` are copied into
77
`y`.
@@ -59,8 +59,8 @@
5959

6060

6161
{{alias}}.ndarray( N, x, strideX, offsetX, y, strideY, offsetY )
62-
Copies values from one complex single-precision floating-point vector to
63-
another complex single-precision floating-point vector using alternative
62+
Copies values from one single-precision complex floating-point vector to
63+
another single-precision complex floating-point vector using alternative
6464
indexing semantics.
6565

6666
While typed array views mandate a view offset based on the underlying

lib/node_modules/@stdlib/blas/base/ccopy/docs/types/index.d.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ import { Complex64Array } from '@stdlib/types/array';
2727
*/
2828
interface Routine {
2929
/**
30-
* Copies values from one complex single-precision floating-point vector to another complex single-precision floating-point vector.
30+
* Copies values from one single-precision complex floating-point vector to another single-precision complex floating-point vector.
3131
*
3232
* @param N - number of indexed elements
3333
* @param x - input array
@@ -48,7 +48,7 @@ interface Routine {
4848
( N: number, x: Complex64Array, strideX: number, y: Complex64Array, strideY: number ): Complex64Array;
4949

5050
/**
51-
* Copies values from one complex single-precision floating-point vector to another complex single-precision floating-point vector using alternative indexing semantics.
51+
* Copies values from one single-precision complex floating-point vector to another single-precision complex floating-point vector using alternative indexing semantics.
5252
*
5353
* @param N - number of indexed elements
5454
* @param x - input array
@@ -72,7 +72,7 @@ interface Routine {
7272
}
7373

7474
/**
75-
* Copies values from one complex single-precision floating-point vector to another complex single-precision floating-point vector.
75+
* Copies values from one single-precision complex floating-point vector to another single-precision complex floating-point vector.
7676
*
7777
* @param N - number of indexed elements
7878
* @param x - input array

lib/node_modules/@stdlib/blas/base/ccopy/include/stdlib/blas/base/ccopy.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,12 +32,12 @@ extern "C" {
3232
#endif
3333

3434
/**
35-
* Copies values from one complex single-precision floating-point vector to another complex single-precision floating-point vector.
35+
* Copies values from one single-precision complex floating-point vector to another single-precision complex floating-point vector.
3636
*/
3737
void API_SUFFIX(c_ccopy)( const CBLAS_INT N, const void *X, const CBLAS_INT strideX, void *Y, const CBLAS_INT strideY );
3838

3939
/**
40-
* Copies values from one complex single-precision floating-point vector to another complex single-precision floating-point vector using alternative indexing semantics.
40+
* Copies values from one single-precision complex floating-point vector to another single-precision complex floating-point vector using alternative indexing semantics.
4141
*/
4242
void API_SUFFIX(c_ccopy_ndarray)( const CBLAS_INT N, const void *X, const CBLAS_INT strideX, const CBLAS_INT offsetX, void *Y, const CBLAS_INT strideY, const CBLAS_INT offsetY );
4343

lib/node_modules/@stdlib/blas/base/ccopy/include/stdlib/blas/base/ccopy_cblas.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ extern "C" {
3232
#endif
3333

3434
/**
35-
* Copies values from one complex single-precision floating-point vector to another complex single-precision floating-point vector.
35+
* Copies values from one single-precision complex floating-point vector to another single-precision complex floating-point vector.
3636
*/
3737
void API_SUFFIX(cblas_ccopy)( const CBLAS_INT N, const void *X, const CBLAS_INT strideX, void *Y, const CBLAS_INT strideY );
3838

lib/node_modules/@stdlib/blas/base/ccopy/include/stdlib/blas/base/ccopy_fortran.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ extern "C" {
3030
#endif
3131

3232
/**
33-
* Copies values from one complex single-precision floating-point vector to another complex single-precision floating-point vector.
33+
* Copies values from one single-precision complex floating-point vector to another single-precision complex floating-point vector.
3434
*/
3535
void ccopy( const CBLAS_INT *, const void *, const CBLAS_INT *, void *, const CBLAS_INT * );
3636

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ var ndarray = require( './ndarray.js' );
2727
// MAIN //
2828

2929
/**
30-
* Copies values from one complex single-precision floating-point vector to another complex single-precision floating-point vector.
30+
* Copies values from one single-precision complex floating-point vector to another single-precision complex floating-point vector.
3131
*
3232
* @param {PositiveInteger} N - number of indexed elements
3333
* @param {Complex64Array} x - input array

0 commit comments

Comments
 (0)