Skip to content

Commit bea7d35

Browse files
committed
Auto-generated commit
1 parent 7c720e7 commit bea7d35

File tree

11 files changed

+21
-20
lines changed

11 files changed

+21
-20
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -758,6 +758,7 @@ A total of 43 issues were closed in this release:
758758

759759
<details>
760760

761+
- [`7eb18f2`](https://github.com/stdlib-js/stdlib/commit/7eb18f24166f78119540ec88e652e5643a5d2518) - **chore:** minor clean-up _(by Philipp Burckhardt)_
761762
- [`9221bdb`](https://github.com/stdlib-js/stdlib/commit/9221bdb56bac8544a387c8b8f74ae69ae5ec2961) - **feat:** add `toTransposed` to namespace _(by Athan Reines)_
762763
- [`5606366`](https://github.com/stdlib-js/stdlib/commit/560636601a3ebbc74e58ba18752ba832c3548215) - **feat:** add `ndarray/base/to-transposed` [(#10499)](https://github.com/stdlib-js/stdlib/pull/10499) _(by Muhammad Haris, Athan Reines)_
763764
- [`01a25b3`](https://github.com/stdlib-js/stdlib/commit/01a25b340fc172d9754d027cc09330e0be32babb) - **feat:** add `unflattenShape` to namespace _(by Athan Reines)_

broadcast-scalar/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ var broadcastScalar = require( '@stdlib/ndarray/broadcast-scalar' );
119119
// Get a list of data types:
120120
var dt = dtypes( 'integer_and_generic' );
121121

122-
// Generate zero-dimensional arrays...
122+
// Generate two-dimensional arrays...
123123
var x;
124124
var i;
125125
for ( i = 0; i < dt.length; i++ ) {

broadcast-scalar/docs/types/index.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ declare function broadcastScalar( value: number, shape: ArrayLike<number>, optio
8484
*
8585
* @example
8686
* var getDType = require( '@stdlib/ndarray/dtype' );
87-
* var Complex64 = require( '@stdlib/complex/float64/ctor' );
87+
* var Complex64 = require( '@stdlib/complex/float32/ctor' );
8888
*
8989
* var v = new Complex64( 1.0, 2.0 );
9090
*

broadcast-scalar/lib/main.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -68,8 +68,8 @@ var DEFAULT_BOOL = defaults.get( 'dtypes.boolean' );
6868
* @param {*} [options.dtype] - output array data type
6969
* @param {string} [options.order="row-major"] - memory layout (either row-major or column-major)
7070
* @param {boolean} [options.readonly=false] - boolean indicating whether an array should be read-only
71-
* @param {TypeError} - first argument must be an array of nonnegative integers
72-
* @throws {TypeError} second argument must be an object
71+
* @throws {TypeError} second argument must be an array of nonnegative integers
72+
* @throws {TypeError} third argument must be an object
7373
* @throws {TypeError} must provide valid options
7474
* @returns {ndarray} ndarray
7575
*
@@ -97,7 +97,7 @@ function broadcastScalar( value, shape, options ) {
9797
'readonly': false
9898
};
9999
if ( !isNonNegativeIntegerArray( shape ) && !isEmptyCollection( shape ) ) {
100-
throw new TypeError( format( 'invalid argument. First argument must be an array of nonnegative integers. Value: `%s`.', shape ) );
100+
throw new TypeError( format( 'invalid argument. Second argument must be an array of nonnegative integers. Value: `%s`.', shape ) );
101101
}
102102
if ( arguments.length > 2 ) {
103103
options = arguments[ 2 ];

broadcast-scalar/test/test.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ tape( 'the function throws an error if provided a second argument which is not a
6161
var i;
6262

6363
values = [
64-
[ -1, 2, 3],
64+
[ -1, 2, 3 ],
6565
[ -1, -2, -3 ],
6666
'5',
6767
5,
@@ -90,7 +90,7 @@ tape( 'the function throws an error if provided a second argument which is not a
9090
var i;
9191

9292
values = [
93-
[ -1, 2, 3],
93+
[ -1, 2, 3 ],
9494
[ -1, -2, -3 ],
9595
'5',
9696
5,

from-scalar-like/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ var scalar2ndarrayLike = require( '@stdlib/ndarray/from-scalar-like' );
4242

4343
#### scalar2ndarrayLike( x, value\[, options] )
4444

45-
Converts a scalar value to a zero-dimensional [ndarray][@stdlib/ndarray/ctor] having the same [data-type][@stdlib/ndarray/dtypes] as a provided [ndarray][@stdlib/ndarray/ctor]
45+
Converts a scalar value to a zero-dimensional [ndarray][@stdlib/ndarray/ctor] having the same [data-type][@stdlib/ndarray/dtypes] as a provided [ndarray][@stdlib/ndarray/ctor].
4646

4747
```javascript
4848
var Float64Array = require( '@stdlib/array/float64' );

from-scalar-like/docs/repl.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@
4747
--------
4848
> var x = {{alias:@stdlib/ndarray/array}}( [ 1.0, 2.0, 3.0 ] )
4949
<ndarray>[ 1.0, 2.0, 3.0 ]
50-
> var x = {{alias}}( x, 1.0 )
50+
> var y = {{alias}}( x, 1.0 )
5151
<ndarray>[ 1.0 ]
5252

5353
See Also

from-scalar-like/test/test.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -298,13 +298,13 @@ tape( 'the function returns a zero-dimensional ndarray (default, complex64)', fu
298298
v = new Complex64( 1.0, 2.0 );
299299

300300
arr = scalar2ndarrayLike( x, v );
301-
expected = new Complex64Array( [ 1.0, 2.0 ] );
301+
expected = new Float32Array( [ 1.0, 2.0 ] );
302302

303303
t.strictEqual( instanceOf( arr, ndarray ), true, 'returns expected value' );
304304
t.strictEqual( String( getDType( arr ) ), 'complex64', 'returns expected value' );
305305
t.deepEqual( getShape( arr ), [], 'returns expected value' );
306306
t.strictEqual( instanceOf( getData( arr ), Complex64Array ), true, 'returns expected value' );
307-
t.deepEqual( reinterpret64( String( getDType( arr ) ), 0 ), expected, 'returns expected value' );
307+
t.deepEqual( reinterpret64( getData( arr ), 0 ), expected, 'returns expected value' );
308308
t.strictEqual( getOrder( arr ), 'row-major', 'returns expected value' );
309309
t.strictEqual( numel( arr ), 1, 'returns expected value' );
310310

to-reversed-dimension/docs/types/test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,13 +67,13 @@ import toReversedDimension = require( './index' );
6767
{
6868
const x = empty( [ 2, 2 ] );
6969

70-
toReversedDimension( x, { 'dim': '5'} ); // $ExpectError
70+
toReversedDimension( x, { 'dim': '5' } ); // $ExpectError
7171
toReversedDimension( x, { 'dim': true } ); // $ExpectError
7272
toReversedDimension( x, { 'dim': false } ); // $ExpectError
7373
toReversedDimension( x, { 'dim': null } ); // $ExpectError
7474
toReversedDimension( x, { 'dim': [ '5' ] } ); // $ExpectError
7575
toReversedDimension( x, { 'dim': {} } ); // $ExpectError
76-
toReversedDimension( x, { 'dim': ( x: number ): number => x} ); // $ExpectError
76+
toReversedDimension( x, { 'dim': ( x: number ): number => x } ); // $ExpectError
7777
}
7878

7979
// The compiler throws an error if the function is provided an unsupported number of arguments...

to-reversed-dimension/lib/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
* var array = require( '@stdlib/ndarray/array' );
2828
* var toReversedDimension = require( '@stdlib/ndarray/to-reversed-dimension' );
2929
*
30-
*var x = array( [ [ 1.0, 2.0 ], [ 3.0, 4.0 ] ] );
30+
* var x = array( [ [ 1.0, 2.0 ], [ 3.0, 4.0 ] ] );
3131
* // returns <ndarray>[ [ 1.0, 2.0 ], [ 3.0, 4.0 ] ]
3232
*
3333
* var y = toReversedDimension( x );

0 commit comments

Comments
 (0)