Skip to content

refactor: update blas/ext/base/ssumkbn2 to follow current project conventions #1749

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

Closed
wants to merge 8 commits into from
Prev Previous commit
Next Next commit
fix: resolved the changes recommended
  • Loading branch information
vr-varad committed Mar 12, 2024
commit d88150c647788567542c461a9893eb7ad7992d14
4 changes: 3 additions & 1 deletion lib/node_modules/@stdlib/bench/harness/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,9 @@
"test": "./test"
},
"types": "./docs/types",
"scripts": {},
"scripts": {
"test": "tape ./test/test.benchmark.js"
},
"homepage": "https://github.com/stdlib-js/stdlib",
"repository": {
"type": "git",
Expand Down
2 changes: 1 addition & 1 deletion lib/node_modules/@stdlib/blas/ext/base/ssumkbn2/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ var discreteUniform = require( '@stdlib/random/base/discrete-uniform' ).factory;
var filledarrayBy = require( '@stdlib/array/filled-by' );
var ssumkbn2 = require( '@stdlib/blas/ext/base/ssumkbn2' );

var x = filledarrayBy( 10, 'float64', discreteUniform( -100, 100 ) );
var x = filledarrayBy( 10, 'float32', discreteUniform( -100, 100 ) );
console.log( x );

var v = ssumkbn2( x.length, x, 1 );
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ var discreteUniform = require( '@stdlib/random/base/discrete-uniform' ).factory;
var filledarrayBy = require( '@stdlib/array/filled-by' );
var ssumkbn2 = require( './../lib' );

var x = filledarrayBy( 10, 'float64', discreteUniform( 0, 100 ) );
var x = filledarrayBy( 10, 'float32', discreteUniform( 0, 100 ) );
console.log( x );

var v = ssumkbn2( x.length, x, 1 );
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@ var addon = require( './ssumkbn2.native.js' );
*
* @example
* var Float32Array = require( '@stdlib/array/float32' );
* var floor = require( '@stdlib/math/base/special/floor' );
*
* var x = new Float32Array( [ 2.0, 1.0, 2.0, -2.0, -2.0, 2.0, 3.0, 4.0 ] );
*
Expand All @@ -47,8 +46,11 @@ var addon = require( './ssumkbn2.native.js' );
*/
function ssumkbn2( N, x, stride, offset ) {
var view;

offset = minViewBufferIndex( N, stride, offset );

view = offsetView( x, offset );

return addon( N, view, stride );
}

Expand Down
58 changes: 29 additions & 29 deletions lib/node_modules/@stdlib/blas/ext/base/ssumkbn2/manifest.json
Original file line number Diff line number Diff line change
@@ -1,40 +1,40 @@
{
"options": {},
"fields": [
{
"field": "src",
"resolve": true,
"relative": true
},
{
"field": "include",
"resolve": true,
"relative": true
},
{
"field": "libraries",
"resolve": false,
"relative": false
},
{
"field": "libpath",
"resolve": true,
"relative": false
}
{
"field": "src",
"resolve": true,
"relative": true
},
{
"field": "include",
"resolve": true,
"relative": true
},
{
"field": "libraries",
"resolve": false,
"relative": false
},
{
"field": "libpath",
"resolve": true,
"relative": false
}
],
"confs": [
{
"src": ["./src/ssumkbn2.c"],
"include": ["./include"],
"libraries": ["-lm"],
"libpath": [],
"dependencies": [
{
"src": ["./src/ssumkbn2.c"],
"include": ["./include"],
"libraries": ["-lm"],
"libpath": [],
"dependencies": [
"@stdlib/napi/export",
"@stdlib/napi/argv",
"@stdlib/napi/argv-int64",
"@stdlib/napi/argv-strided-float32array"
]
}
]
}
}
]
}