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 @@ -45,17 +45,17 @@ import { typedndarray, complex64ndarray } from '@stdlib/types/ndarray';
*
* var x = new Complex64Vector( [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0 ] );
* var target = scalar2ndarray( 1, {
* 'dtype': 'generic'
* 'dtype': 'generic'
* });
* var start = scalar2ndarray( 0, {
* 'dtype': 'generic'
* 'dtype': 'generic'
* });
* var end = scalar2ndarray( 2, {
* 'dtype': 'generic'
* 'dtype': 'generic'
* });
*
* var w = zeros( [ 3 ], {
* 'dtype': 'complex64'
* 'dtype': 'complex64'
* });
*
* var out = ccopyWithin( [ x, target, start, end, w ] );
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,17 +45,17 @@ import { typedndarray, complex128ndarray } from '@stdlib/types/ndarray';
*
* var x = new Complex128Vector( [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0 ] );
* var target = scalar2ndarray( 1, {
* 'dtype': 'generic'
* 'dtype': 'generic'
* });
* var start = scalar2ndarray( 0, {
* 'dtype': 'generic'
* 'dtype': 'generic'
* });
* var end = scalar2ndarray( 2, {
* 'dtype': 'generic'
* 'dtype': 'generic'
* });
*
* var w = zeros( [ 3 ], {
* 'dtype': 'complex128'
* 'dtype': 'complex128'
* });
*
* var out = zcopyWithin( [ x, target, start, end, w ] );
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ tape( 'the created function evaluates the logcdf for `x` given a small range `b
for ( i = 0; i < x.length; i++ ) {
logcdf = factory( a[i], b[i] );
y = logcdf( x[i] );
t.strictEqual( isAlmostSameValue( y, expected[i], 18 ), true, 'returns expected value' );
t.strictEqual( isAlmostSameValue( y, expected[ i ], 18 ), true, 'returns expected value' );
}
t.end();
});
Expand All @@ -166,7 +166,7 @@ tape( 'the created function evaluates the logcdf for `x` given a medium range `b
for ( i = 0; i < x.length; i++ ) {
logcdf = factory( a[i], b[i] );
y = logcdf( x[i] );
t.strictEqual( isAlmostSameValue( y, expected[i], 19 ), true, 'returns expected value' );
t.strictEqual( isAlmostSameValue( y, expected[ i ], 19 ), true, 'returns expected value' );
}
t.end();
});
Expand All @@ -187,7 +187,7 @@ tape( 'the created function evaluates the logcdf for `x` given a large range `b
for ( i = 0; i < x.length; i++ ) {
logcdf = factory( a[i], b[i] );
y = logcdf( x[i] );
t.strictEqual( isAlmostSameValue( y, expected[i], 33 ), true, 'returns expected value' );
t.strictEqual( isAlmostSameValue( y, expected[ i ], 33 ), true, 'returns expected value' );
}
t.end();
});
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ tape( 'the function evaluates the logcdf for `x` given a small range `b - a`', f
b = smallRange.b;
for ( i = 0; i < x.length; i++ ) {
y = logcdf( x[i], a[i], b[i] );
t.strictEqual( isAlmostSameValue( y, expected[i], 18 ), true, 'returns expected value' );
t.strictEqual( isAlmostSameValue( y, expected[ i ], 18 ), true, 'returns expected value' );
}
t.end();
});
Expand All @@ -116,7 +116,7 @@ tape( 'the function evaluates the logcdf for `x` given a medium range `b - a`',
b = mediumRange.b;
for ( i = 0; i < x.length; i++ ) {
y = logcdf( x[i], a[i], b[i] );
t.strictEqual( isAlmostSameValue( y, expected[i], 19 ), true, 'returns expected value' );
t.strictEqual( isAlmostSameValue( y, expected[ i ], 19 ), true, 'returns expected value' );
}
t.end();
});
Expand All @@ -135,7 +135,7 @@ tape( 'the function evaluates the logcdf for `x` given a large range `b - a`', f
b = largeRange.b;
for ( i = 0; i < x.length; i++ ) {
y = logcdf( x[i], a[i], b[i] );
t.strictEqual( isAlmostSameValue( y, expected[i], 33 ), true, 'returns expected value' );
t.strictEqual( isAlmostSameValue( y, expected[ i ], 33 ), true, 'returns expected value' );
}
t.end();
});