Skip to content

feat: add blas/base/dznrm2 #2271

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 18 commits into from
Jul 9, 2024
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 @@ -21,7 +21,7 @@
// MODULES //

var startsWith = require( '@stdlib/string/starts-with' );
var endsWith = require('@stdlib/string/ends-with');
var endsWith = require( '@stdlib/string/ends-with' );
var contains = require( '@stdlib/assert/contains' );


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ var parseJSDoc = require( 'doctrine' ).parse;
var remark = require( 'remark' );
var remarkLint = require( 'remark-lint' );
var remarkPlugin = require( 'remark-lint-fenced-code-marker' );
var repeat = require('@stdlib/string/repeat');
var repeat = require( '@stdlib/string/repeat' );
var isObject = require( '@stdlib/assert/is-object' );
var findJSDoc = require( '@stdlib/_tools/eslint/utils/find-jsdoc' );

Expand Down
6 changes: 3 additions & 3 deletions lib/node_modules/@stdlib/_tools/scripts/transform.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,11 @@

var logger = require( 'debug' );
var readFileSync = require( '@stdlib/fs/read-file' ).sync;
var startsWith = require('@stdlib/string/starts-with');
var contains = require('@stdlib/assert/contains');
var startsWith = require( '@stdlib/string/starts-with' );
var contains = require( '@stdlib/assert/contains' );
var replace = require( '@stdlib/string/replace' );
var pkg2id = require( '@stdlib/error/tools/pkg2id' );
var msg2id = require( '@stdlib/error/tools/msg2id');
var msg2id = require( '@stdlib/error/tools/msg2id' );
var ENV = require( '@stdlib/process/env' );


Expand Down Expand Up @@ -243,7 +243,7 @@
]))
]);
debug( 'Adding `require` call to `@stdlib/error-tools-fmtprodmsg`...' );
j( root.find( j.Declaration ).at( 0 ).get() ).insertBefore( formatRequire );

Check warning on line 246 in lib/node_modules/@stdlib/_tools/scripts/transform.js

View workflow job for this annotation

GitHub Actions / Lint Changed Files

This line has a length of 96. Maximum allowed is 80
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
var bench = require( '@stdlib/bench' );
var pow = require( '@stdlib/math/base/special/pow' );
var isArray = require( '@stdlib/assert/is-array' );
var filled = require('@stdlib/array/base/filled');
var filled = require( '@stdlib/array/base/filled' );
var pkg = require( './../package.json' ).name;
var cuany = require( './../lib' );

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
var bench = require( '@stdlib/bench' );
var pow = require( '@stdlib/math/base/special/pow' );
var isArray = require( '@stdlib/assert/is-array' );
var filled = require('@stdlib/array/base/filled');
var filled = require( '@stdlib/array/base/filled' );
var pkg = require( './../package.json' ).name;
var cuany = require( './../lib' );

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
var bench = require( '@stdlib/bench' );
var pow = require( '@stdlib/math/base/special/pow' );
var isArray = require( '@stdlib/assert/is-array' );
var filled = require('@stdlib/array/base/filled');
var filled = require( '@stdlib/array/base/filled' );
var pkg = require( './../package.json' ).name;
var cuevery = require( './../lib' );

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
var bench = require( '@stdlib/bench' );
var pow = require( '@stdlib/math/base/special/pow' );
var isArray = require( '@stdlib/assert/is-array' );
var filled = require('@stdlib/array/base/filled');
var filled = require( '@stdlib/array/base/filled' );
var pkg = require( './../package.json' ).name;
var cuevery = require( './../lib' );

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
var bench = require( '@stdlib/bench' );
var pow = require( '@stdlib/math/base/special/pow' );
var isArray = require( '@stdlib/assert/is-array' );
var filled = require('@stdlib/array/base/filled');
var filled = require( '@stdlib/array/base/filled' );
var pkg = require( './../package.json' ).name;
var cunone = require( './../lib' );

Expand Down
2 changes: 1 addition & 1 deletion lib/node_modules/@stdlib/array/base/take-map/lib/assign.js
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,7 @@ function complexMap( x, indices, mode, out, stride, offset, clbk ) {
* function clbk( val ){
return val;
}
* var arr = assignMap( x, indices, 'throw', out, 1, 0, clbk);
* var arr = assignMap( x, indices, 'throw', out, 1, 0, clbk );
* // arr is [ 4, 2, 3, 1 ]
*
* var bool = ( arr === out );
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
var bench = require( '@stdlib/bench' );
var isInteger = require( '@stdlib/assert/is-integer' ).isPrimitive;
var pkg = require( './../package.json' ).name;
var BooleanArray = require('./../lib');
var BooleanArray = require( './../lib' );


// MAIN //
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
var bench = require( '@stdlib/bench' );
var isInteger = require( '@stdlib/assert/is-integer' ).isPrimitive;
var pkg = require( './../package.json' ).name;
var BooleanArray = require('./../lib');
var BooleanArray = require( './../lib' );


// MAIN //
Expand Down
2 changes: 1 addition & 1 deletion lib/node_modules/@stdlib/array/bool/test/test.every.js
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ tape( 'the method supports providing an execution context', function test( t ) {
bool = arr.every( predicate, ctx );

t.strictEqual( bool, true, 'returns expected value' );
t.strictEqual( ctx.count, 4, 'returns expected value');
t.strictEqual( ctx.count, 4, 'returns expected value' );

t.end();

Expand Down
4 changes: 2 additions & 2 deletions lib/node_modules/@stdlib/array/bool/test/test.find.js
Original file line number Diff line number Diff line change
Expand Up @@ -161,8 +161,8 @@ tape( 'the method supports providing an execution context', function test( t ) {
arr = new BooleanArray( [ true, true, false, true, false ] );
v = arr.find( predicate, ctx );

t.strictEqual( v, false, 'returns expected value');
t.strictEqual( ctx.count, 3, 'returns expected value');
t.strictEqual( v, false, 'returns expected value' );
t.strictEqual( ctx.count, 3, 'returns expected value' );

t.end();

Expand Down
4 changes: 2 additions & 2 deletions lib/node_modules/@stdlib/array/bool/test/test.find_last.js
Original file line number Diff line number Diff line change
Expand Up @@ -161,8 +161,8 @@ tape( 'the method supports providing an execution context', function test( t ) {
arr = new BooleanArray( [ true, true, false, true, false ] );
v = arr.findLast( predicate, ctx );

t.strictEqual( v, true, 'returns expected value');
t.strictEqual( ctx.count, 2, 'returns expected value');
t.strictEqual( v, true, 'returns expected value' );
t.strictEqual( ctx.count, 2, 'returns expected value' );

t.end();

Expand Down
2 changes: 1 addition & 1 deletion lib/node_modules/@stdlib/array/bool/test/test.map.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ var identity = require( '@stdlib/utils/identity-function' );
var reinterpretBool = require( '@stdlib/strided/base/reinterpret-boolean' );
var instanceOf = require( '@stdlib/assert/instance-of' );
var Uint8Array = require( '@stdlib/array/uint8' );
var BooleanArray = require('./../lib');
var BooleanArray = require( './../lib' );


// TESTS //
Expand Down
4 changes: 2 additions & 2 deletions lib/node_modules/@stdlib/array/bool/test/test.some.js
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ tape( 'the method supports providing an execution context', function test( t ) {
bool = arr.some( predicate, ctx );

t.strictEqual( bool, true, 'returns expected value' );
t.strictEqual( ctx.count, 2, 'returns expected value');
t.strictEqual( ctx.count, 2, 'returns expected value' );

t.end();

Expand All @@ -184,7 +184,7 @@ tape( 'the method stops executing upon encountering the first element which pass
bool = arr.some( predicate, ctx );

t.strictEqual( bool, true, 'returns expected value' );
t.strictEqual( ctx.count, 2, 'returns expected value');
t.strictEqual( ctx.count, 2, 'returns expected value' );

t.end();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
var bench = require( '@stdlib/bench' );
var pow = require( '@stdlib/math/base/special/pow' );
var Complex128 = require( '@stdlib/complex/float64/ctor' );
var isComplex128Array = require('@stdlib/assert/is-complex128array');
var isComplex128Array = require( '@stdlib/assert/is-complex128array' );
var pkg = require( './../package.json' ).name;
var Complex128Array = require( './../lib' );

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
var bench = require( '@stdlib/bench' );
var pow = require( '@stdlib/math/base/special/pow' );
var Complex128 = require( '@stdlib/complex/float64/ctor' );
var isIteratorLike = require('@stdlib/assert/is-iterator-like');
var isIteratorLike = require( '@stdlib/assert/is-iterator-like' );
var pkg = require( './../package.json' ).name;
var Complex128Array = require( './../lib' );

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ var bench = require( '@stdlib/bench' );
var isComplex128Array = require( '@stdlib/assert/is-complex128array' );
var realf = require( '@stdlib/complex/realf' );
var imagf = require( '@stdlib/complex/imagf' );
var Complex128 = require('@stdlib/complex/float64/ctor');
var Complex128 = require( '@stdlib/complex/float64/ctor' );
var pkg = require( './../package.json' ).name;
var Complex128Array = require( './../lib' );

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
var bench = require( '@stdlib/bench' );
var pow = require( '@stdlib/math/base/special/pow' );
var Complex128 = require( '@stdlib/complex/float64/ctor' );
var isIteratorLike = require('@stdlib/assert/is-iterator-like');
var isIteratorLike = require( '@stdlib/assert/is-iterator-like' );
var pkg = require( './../package.json' ).name;
var Complex128Array = require( './../lib' );

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ tape( 'the method supports providing an execution context', function test( t ) {
bool = arr.every( predicate, ctx );

t.strictEqual( bool, true, 'returns expected value' );
t.strictEqual( ctx.count, 3, 'returns expected value');
t.strictEqual( ctx.count, 3, 'returns expected value' );

t.end();

Expand Down
6 changes: 3 additions & 3 deletions lib/node_modules/@stdlib/array/complex128/test/test.find.js
Original file line number Diff line number Diff line change
Expand Up @@ -164,9 +164,9 @@ tape( 'the method supports providing an execution context', function test( t ) {
arr = new Complex128Array( [ 1.0, -1.0, 2.0, -2.0, 3.0, 3.0 ] );
z = arr.find( predicate, ctx );

t.strictEqual( real( z ), 3.0, 'returns expected value');
t.strictEqual( imag( z ), 3.0, 'returns expected value');
t.strictEqual( ctx.count, 3, 'returns expected value');
t.strictEqual( real( z ), 3.0, 'returns expected value' );
t.strictEqual( imag( z ), 3.0, 'returns expected value' );
t.strictEqual( ctx.count, 3, 'returns expected value' );

t.end();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -164,9 +164,9 @@ tape( 'the method supports providing an execution context', function test( t ) {
arr = new Complex128Array( [ 1.0, -1.0, 2.0, -2.0, 3.0, 3.0 ] );
z = arr.findLast( predicate, ctx );

t.strictEqual( real( z ), 3.0, 'returns expected value');
t.strictEqual( imag( z ), 3.0, 'returns expected value');
t.strictEqual( ctx.count, 1, 'returns expected value');
t.strictEqual( real( z ), 3.0, 'returns expected value' );
t.strictEqual( imag( z ), 3.0, 'returns expected value' );
t.strictEqual( ctx.count, 1, 'returns expected value' );

t.end();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ var tape = require( 'tape' );
var hasOwnProp = require( '@stdlib/assert/has-own-property' );
var isFunction = require( '@stdlib/assert/is-function' );
var reinterpret128 = require( '@stdlib/strided/base/reinterpret-complex128' );
var isComplex128 = require('@stdlib/assert/is-complex128');
var isComplex128 = require( '@stdlib/assert/is-complex128' );
var Complex128Array = require( './../lib' );


Expand Down
2 changes: 1 addition & 1 deletion lib/node_modules/@stdlib/array/complex128/test/test.map.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ var reinterpret128 = require( '@stdlib/strided/base/reinterpret-complex128' );
var instanceOf = require( '@stdlib/assert/instance-of' );
var real = require( '@stdlib/complex/real' );
var imag = require( '@stdlib/complex/imag' );
var Complex128 = require('@stdlib/complex/float64/ctor');
var Complex128 = require( '@stdlib/complex/float64/ctor' );
var Float64Array = require( '@stdlib/array/float64' );
var Complex128Array = require( './../lib' );

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
var bench = require( '@stdlib/bench' );
var pow = require( '@stdlib/math/base/special/pow' );
var Complex64 = require( '@stdlib/complex/float32/ctor' );
var isComplex64Array = require('@stdlib/assert/is-complex64array');
var isComplex64Array = require( '@stdlib/assert/is-complex64array' );
var pkg = require( './../package.json' ).name;
var Complex64Array = require( './../lib' );

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
var bench = require( '@stdlib/bench' );
var pow = require( '@stdlib/math/base/special/pow' );
var Complex64 = require( '@stdlib/complex/float32/ctor' );
var isIteratorLike = require('@stdlib/assert/is-iterator-like');
var isIteratorLike = require( '@stdlib/assert/is-iterator-like' );
var pkg = require( './../package.json' ).name;
var Complex64Array = require( './../lib' );

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ var bench = require( '@stdlib/bench' );
var isComplex64Array = require( '@stdlib/assert/is-complex64array' );
var realf = require( '@stdlib/complex/realf' );
var imagf = require( '@stdlib/complex/imagf' );
var Complex64 = require('@stdlib/complex/float32/ctor');
var Complex64 = require( '@stdlib/complex/float32/ctor' );
var pkg = require( './../package.json' ).name;
var Complex64Array = require( './../lib' );

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@

var bench = require( '@stdlib/bench' );
var caddf = require( '@stdlib/math/base/ops/caddf' );
var isComplexLike = require('@stdlib/assert/is-complex-like');
var isComplexLike = require( '@stdlib/assert/is-complex-like' );
var pkg = require( './../package.json' ).name;
var Complex64Array = require( './../lib' );

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
var bench = require( '@stdlib/bench' );
var pow = require( '@stdlib/math/base/special/pow' );
var caddf = require( '@stdlib/math/base/ops/caddf' );
var isComplexLike = require('@stdlib/assert/is-complex-like');
var isComplexLike = require( '@stdlib/assert/is-complex-like' );
var Complex64 = require( '@stdlib/complex/float32/ctor' );
var pkg = require( './../package.json' ).name;
var Complex64Array = require( './../lib' );
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
var bench = require( '@stdlib/bench' );
var pow = require( '@stdlib/math/base/special/pow' );
var Complex64 = require( '@stdlib/complex/float32/ctor' );
var isIteratorLike = require('@stdlib/assert/is-iterator-like');
var isIteratorLike = require( '@stdlib/assert/is-iterator-like' );
var pkg = require( './../package.json' ).name;
var Complex64Array = require( './../lib' );

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ tape( 'the method supports providing an execution context', function test( t ) {
bool = arr.every( predicate, ctx );

t.strictEqual( bool, true, 'returns expected value' );
t.strictEqual( ctx.count, 3, 'returns expected value');
t.strictEqual( ctx.count, 3, 'returns expected value' );

t.end();

Expand Down
6 changes: 3 additions & 3 deletions lib/node_modules/@stdlib/array/complex64/test/test.find.js
Original file line number Diff line number Diff line change
Expand Up @@ -164,9 +164,9 @@ tape( 'the method supports providing an execution context', function test( t ) {
arr = new Complex64Array( [ 1.0, -1.0, 2.0, -2.0, 3.0, 3.0 ] );
z = arr.find( predicate, ctx );

t.strictEqual( realf( z ), 3, 'returns expected value');
t.strictEqual( imagf( z ), 3, 'returns expected value');
t.strictEqual( ctx.count, 3, 'returns expected value');
t.strictEqual( realf( z ), 3, 'returns expected value' );
t.strictEqual( imagf( z ), 3, 'returns expected value' );
t.strictEqual( ctx.count, 3, 'returns expected value' );

t.end();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -164,9 +164,9 @@ tape( 'the method supports providing an execution context', function test( t ) {
arr = new Complex64Array( [ 1.0, -1.0, 2.0, -2.0, 3.0, 3.0 ] );
z = arr.findLast( predicate, ctx );

t.strictEqual( realf( z ), 3, 'returns expected value');
t.strictEqual( imagf( z ), 3, 'returns expected value');
t.strictEqual( ctx.count, 1, 'returns expected value');
t.strictEqual( realf( z ), 3, 'returns expected value' );
t.strictEqual( imagf( z ), 3, 'returns expected value' );
t.strictEqual( ctx.count, 1, 'returns expected value' );

t.end();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ var tape = require( 'tape' );
var hasOwnProp = require( '@stdlib/assert/has-own-property' );
var isFunction = require( '@stdlib/assert/is-function' );
var reinterpret64 = require( '@stdlib/strided/base/reinterpret-complex64' );
var isComplex64 = require('@stdlib/assert/is-complex64');
var isComplex64 = require( '@stdlib/assert/is-complex64' );
var Complex64Array = require( './../lib' );


Expand Down
2 changes: 1 addition & 1 deletion lib/node_modules/@stdlib/array/complex64/test/test.map.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ var reinterpret64 = require( '@stdlib/strided/base/reinterpret-complex64' );
var instanceOf = require( '@stdlib/assert/instance-of' );
var realf = require( '@stdlib/complex/realf' );
var imagf = require( '@stdlib/complex/imagf' );
var Complex64 = require('@stdlib/complex/float32/ctor');
var Complex64 = require( '@stdlib/complex/float32/ctor' );
var Float32Array = require( '@stdlib/array/float32' );
var Complex64Array = require( './../lib' );

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ var caddf = require( '@stdlib/math/base/ops/caddf' );
var instanceOf = require( '@stdlib/assert/instance-of' );
var realf = require( '@stdlib/complex/realf' );
var imagf = require( '@stdlib/complex/imagf' );
var Complex64 = require('@stdlib/complex/float32/ctor');
var Complex64 = require( '@stdlib/complex/float32/ctor' );
var Complex64Array = require( './../lib' );


Expand Down
4 changes: 2 additions & 2 deletions lib/node_modules/@stdlib/array/complex64/test/test.some.js
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ tape( 'the method supports providing an execution context', function test( t ) {
bool = arr.some( predicate, ctx );

t.strictEqual( bool, true, 'returns expected value' );
t.strictEqual( ctx.count, 3, 'returns expected value');
t.strictEqual( ctx.count, 3, 'returns expected value' );

t.end();

Expand All @@ -186,7 +186,7 @@ tape( 'the method stops executing upon encountering the first element which pass
bool = arr.some( predicate, ctx );

t.strictEqual( bool, true, 'returns expected value' );
t.strictEqual( ctx.count, 1, 'returns expected value');
t.strictEqual( ctx.count, 1, 'returns expected value' );

t.end();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1526,7 +1526,7 @@ tape( 'the function returns a linearly spaced array (real; dtype=float64)', func
t.strictEqual( actual, out, 'returns expected value' );
t.deepEqual( actual, expected, 'returns expected value' );

out = new Float64Array( 6);
out = new Float64Array( 6 );
actual = linspace( x1, x2, out, opts );
expected = new Float64Array( [ x1, -3.0, -1.0, 1.0, 3.0, x2 ] );
t.strictEqual( isFloat64Array( actual ), true, 'returns expected value' );
Expand Down
Loading
Loading