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 @@ -677,7 +677,7 @@ interface Namespace {
* var x = new Float64Vector( [ 1.0, -2.0, 3.0, -4.0, 5.0 ] );
*
* var y = ns.idamax( [ x ] );
* // returns 4.0
* // returns 4
*/
idamax: typeof idamax;

Expand Down Expand Up @@ -721,7 +721,7 @@ interface Namespace {
* var x = new Float32Vector( [ 1.0, -2.0, 3.0, -4.0, 5.0 ] );
*
* var y = ns.isamax( [ x ] );
* // returns 4.0
* // returns 4
*/
isamax: typeof isamax;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
'use strict';

/**
* BLAS level 1 routine to Find the index of the first element having the maximum absolute value for all elements in a one-dimensional ndarray.
* BLAS level 1 routine to find the index of the first element having the maximum absolute value for all elements in a one-dimensional ndarray.
*
* @module @stdlib/blas/base/ndarray/igamax
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@

var bench = require( '@stdlib/bench' );
var uniform = require( '@stdlib/random/uniform' );
var isnanf = require( '@stdlib/math/base/assert/is-nanf' );
var isnan = require( '@stdlib/math/base/assert/is-nan' );
var pow = require( '@stdlib/math/base/special/pow' );
var format = require( '@stdlib/string/format' );
var pkg = require( './../package.json' ).name;
Expand Down Expand Up @@ -62,12 +62,12 @@ function createBenchmark( len ) {
b.tic();
for ( i = 0; i < b.iterations; i++ ) {
z = isamax( [ x ] );
if ( isnanf( z ) ) {
if ( isnan( z ) ) {
b.fail( 'should not return NaN' );
}
}
b.toc();
if ( isnanf( z ) ) {
if ( isnan( z ) ) {
b.fail( 'should not return NaN' );
}
b.pass( 'benchmark finished' );
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ import { float32ndarray } from '@stdlib/types/ndarray';
* var x = new Float32Vector( [ 1.0, -2.0, 3.0, -4.0, 5.0 ] );
*
* var y = isamax( [ x ] );
* // returns 4.0
* // returns 4
*/
declare function isamax( arrays: [ float32ndarray ] ): number;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ function rffti( N, workspace, strideW, offsetW ) {

// When a sub-sequence is a single data point, the FFT is the identity, so no initialization necessary...
if ( N === 1 ) {
return;
return workspace;
}
// Resolve the starting indices for storing twiddle factors and factorization results:
offsetT = offsetW + ( N*strideW ); // index offset for twiddle factors
Expand Down
Loading