Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ bench( format( '%s:of', pkg ), function benchmark( b ) {
b.end();
});

bench( format( '%s:len=5', pkg ), function benchmark( b ) {
bench( format( '%s:of:len=5', pkg ), function benchmark( b ) {
var buf;
var arr;
var i;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ bench( format( '%s:of', pkg ), function benchmark( b ) {
b.end();
});

bench( format( '%s:len=5', pkg ), function benchmark( b ) {
bench( format( '%s:of:len=5', pkg ), function benchmark( b ) {
var buf;
var arr;
var i;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -183,10 +183,6 @@ int main( void ) {
print_results( iter, elapsed );
printf( "ok %d benchmark finished\n", count );
}
}
for ( i = MIN; i <= MAX; i++ ) {
len = pow( 10, i );
iter = ITERATIONS / pow( 10, i-1 );
for ( j = 0; j < REPEATS; j++ ) {
count += 1;
printf( "# c::%s:ndarray:len=%d\n", NAME, len );
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ interface Routine {
}

/**
* Compute the square root of the residual sum of squares of two double-precision floating-point strided arrays.
* Computes the square root of the residual sum of squares of two double-precision floating-point strided arrays.
*
* @param N - number of indexed elements
* @param x - first input array
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ interface Routine {
}

/**
* Compute the residual sum of squares of two double-precision floating-point strided arrays using an improved Kahan–Babuška algorithm.
* Computes the residual sum of squares of two double-precision floating-point strided arrays using an improved Kahan–Babuška algorithm.
*
* @param N - number of indexed elements
* @param x - first input array
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ import copy = require( './index' );
copy( zeros( 'generic', sh, ord ) ); // $ExpectType genericndarray<number>
}

// The compiler throws an error if the function is provided a first argument is not an ndarray...
// The compiler throws an error if the function is provided a first argument which is not an ndarray...
{
copy( '10' ); // $ExpectError
copy( 10 ); // $ExpectError
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ import emptyLike = require( './index' );
emptyLike( zeros( 'generic', sh, ord ) ); // $ExpectType typedndarray<number>
}

// The compiler throws an error if the function is provided a first argument is not an ndarray which has a recognized/supported data type...
// The compiler throws an error if the function is provided a first argument which is not an ndarray having a recognized/supported data type...
{
emptyLike( '10' ); // $ExpectError
emptyLike( 10 ); // $ExpectError
Expand Down
3 changes: 2 additions & 1 deletion lib/node_modules/@stdlib/ndarray/base/nans/test/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,8 @@ tape( 'the function throws an error if provided an unrecognized/unsupported data
'Float64',
'Float32',
'FLOAT64',
'FLOAT32'
'FLOAT32',
'GENERIC'
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This change is not necessary, but it also doesn't hurt.

];

for ( i = 0; i < values.length; i++ ) {
Expand Down
Loading