Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
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 @@ -74,15 +74,17 @@ tape( 'the function computes the Bessel function of the first kind of order one
besselj1By( x.length, x, 1, y, 1, accessor );
t.deepEqual( y, expected, 'deep equal' );

x = new Array( 5 ); // sparse array
x = [];
x.length = 5; // sparse array
Comment thread
kgryte marked this conversation as resolved.
Outdated
y = [ 0.0, 0.0, 0.0, 0.0, 0.0 ];

expected = [ 0.0, 0.0, 0.0, 0.0, 0.0 ];

besselj1By( x.length, x, 1, y, 1, accessor );
t.deepEqual( y, expected, 'deep equal' );

x = new Array( 5 ); // sparse array
x = [];
x.length = 5; // sparse array
Comment thread
kgryte marked this conversation as resolved.
Outdated
x[ 2 ] = rand();
y = [ 0.0, 0.0, 0.0, 0.0, 0.0 ];

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,17 @@

'use strict';

var join = require( 'path' ).join;
var tryRequire = require( '@stdlib/utils/try-require' );
var Float64Array = require( '@stdlib/array/float64' );
var Float32Array = require( '@stdlib/array/float32' );
Comment thread
kgryte marked this conversation as resolved.
Outdated

var add;

// Try loading the add-on:
var add = tryRequire( join( __dirname, 'addon.node' ) );
try {
add = require( './addon.node' );
} catch ( err ) {
add = err;
}

/**
* Main execution sequence.
Expand Down
Loading