Skip to content

Commit 607adbe

Browse files
committed
chore: minor clean-up
--- type: pre_commit_static_analysis_report description: Results of running static analysis checks when committing changes. report: - task: lint_filenames status: passed - task: lint_editorconfig status: passed - task: lint_markdown status: na - task: lint_package_json status: na - task: lint_repl_help status: passed - task: lint_javascript_src status: na - task: lint_javascript_cli status: na - task: lint_javascript_examples status: na - task: lint_javascript_tests status: na - task: lint_javascript_benchmarks status: passed - task: lint_python status: na - task: lint_r status: na - task: lint_c_src status: na - task: lint_c_examples status: na - task: lint_c_benchmarks status: na - task: lint_c_tests_fixtures status: na - task: lint_shell status: na - task: lint_typescript_declarations status: passed - task: lint_typescript_tests status: passed - task: lint_license_headers status: passed ---
1 parent 54363ed commit 607adbe

File tree

4 files changed

+8
-9
lines changed

4 files changed

+8
-9
lines changed

lib/node_modules/@stdlib/ndarray/base/from-array/benchmark/benchmark.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ bench( pkg+':dtype=complex128', function benchmark( b ) {
8383

8484
b.tic();
8585
for ( i = 0; i < b.iterations; i++ ) {
86-
x = array2ndarray( buf, 'complex128', 'row-major' );
86+
x = array2ndarray( buf, 'row-major' );
8787
if ( x.length !== 1 ) {
8888
b.fail( 'should have length 1' );
8989
}
@@ -105,7 +105,7 @@ bench( pkg+':dtype=complex64', function benchmark( b ) {
105105

106106
b.tic();
107107
for ( i = 0; i < b.iterations; i++ ) {
108-
x = array2ndarray( buf, 'complex64', 'row-major' );
108+
x = array2ndarray( buf, 'row-major' );
109109
if ( x.length !== 1 ) {
110110
b.fail( 'should have length 1' );
111111
}

lib/node_modules/@stdlib/ndarray/base/from-array/docs/repl.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11

22
{{alias}}( buf, order )
3-
Returns a zero-dimensional ndarray containing a provided scalar value.
3+
Converts an array to a one-dimensional ndarray.
44

55
Parameters
66
----------

lib/node_modules/@stdlib/ndarray/base/from-array/docs/types/index.d.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ declare function array2ndarray( buf: Int8Array, order: Order ): int8ndarray;
173173
* @example
174174
* var Uint32Array = require( '@stdlib/array/uint32' );
175175
*
176-
* var arr = new Int32Array( [ 1, 2, 3, 4 ] );
176+
* var arr = new Uint32Array( [ 1, 2, 3, 4 ] );
177177
*
178178
* var x = array2ndarray( arr, 'row-major' );
179179
* // returns <ndarray>
@@ -193,7 +193,7 @@ declare function array2ndarray( buf: Uint32Array, order: Order ): uint32ndarray;
193193
* @example
194194
* var Uint16Array = require( '@stdlib/array/uint16' );
195195
*
196-
* var arr = new Int16Array( [ 1, 2, 3, 4 ] );
196+
* var arr = new Uint16Array( [ 1, 2, 3, 4 ] );
197197
*
198198
* var x = array2ndarray( arr, 'row-major' );
199199
* // returns <ndarray>
@@ -213,7 +213,7 @@ declare function array2ndarray( buf: Uint16Array, order: Order ): uint16ndarray;
213213
* @example
214214
* var Uint8Array = require( '@stdlib/array/uint8' );
215215
*
216-
* var arr = new Int8Array( [ 1, 2, 3, 4 ] );
216+
* var arr = new Uint8Array( [ 1, 2, 3, 4 ] );
217217
*
218218
* var x = array2ndarray( arr, 'row-major' );
219219
* // returns <ndarray>
@@ -233,7 +233,7 @@ declare function array2ndarray( buf: Uint8Array, order: Order ): uint8ndarray;
233233
* @example
234234
* var Uint8ClampedArray = require( '@stdlib/array/uint8c' );
235235
*
236-
* var arr = new Int8Array( [ 1, 2, 3, 4 ] );
236+
* var arr = new Uint8ClampedArray( [ 1, 2, 3, 4 ] );
237237
*
238238
* var x = array2ndarray( arr, 'row-major' );
239239
* // returns <ndarray>

lib/node_modules/@stdlib/ndarray/base/from-array/docs/types/test.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ import array2ndarray = require( './index' );
3838
array2ndarray( zeros( 1, 'generic' ), 'row-major' ); // $ExpectType genericndarray<number>
3939
}
4040

41-
// The compiler throws an error if the function is provided a third argument which is not a recognized/supported order...
41+
// The compiler throws an error if the function is provided a second argument which is not a recognized/supported order...
4242
{
4343
array2ndarray( zeros( 1, 'float64' ), '10' ); // $ExpectError
4444
array2ndarray( zeros( 1, 'float64' ), 5 ); // $ExpectError
@@ -54,6 +54,5 @@ import array2ndarray = require( './index' );
5454
{
5555
array2ndarray(); // $ExpectError
5656
array2ndarray( zeros( 1, 'float64' ) ); // $ExpectError
57-
array2ndarray( zeros( 1, 'float64' ) ); // $ExpectError
5857
array2ndarray( zeros( 1, 'float64' ), 'row-major', {} ); // $ExpectError
5958
}

0 commit comments

Comments
 (0)