Skip to content

Commit a5061f9

Browse files
committed
chore(blas-ext-base-dcusumkbn): manifest.json, package.json, include.gypi & examples now uses current project conventions
1 parent 6d1f158 commit a5061f9

File tree

4 files changed

+46
-13
lines changed

4 files changed

+46
-13
lines changed

lib/node_modules/@stdlib/blas/ext/base/dcusumkbn/examples/index.js

+4-10
Original file line numberDiff line numberDiff line change
@@ -18,20 +18,14 @@
1818

1919
'use strict';
2020

21-
var randu = require( '@stdlib/random/base/randu' );
22-
var round = require( '@stdlib/math/base/special/round' );
21+
var discreteUniform = require( '@stdlib/random/base/discrete-uniform' ).factory;
22+
var filledarrayBy = require( '@stdlib/array/filled-by' );
2323
var Float64Array = require( '@stdlib/array/float64' );
2424
var dcusumkbn = require( './../lib' );
2525

26-
var y;
27-
var x;
28-
var i;
26+
var x = filledarrayBy( 10, 'float64', discreteUniform( 0, 100 ) );
27+
var y = new Float64Array( x.length );
2928

30-
x = new Float64Array( 10 );
31-
y = new Float64Array( x.length );
32-
for ( i = 0; i < x.length; i++ ) {
33-
x[ i ] = round( randu()*100.0 );
34-
}
3529
console.log( x );
3630
console.log( y );
3731

lib/node_modules/@stdlib/blas/ext/base/dcusumkbn/include.gypi

+1-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636

3737
# Source files:
3838
'src_files': [
39-
'<(src_dir)/addon.cpp',
39+
'<(src_dir)/addon.c',
4040
'<!@(node -e "var arr = require(\'@stdlib/utils/library-manifest\')(\'./manifest.json\',{},{\'basedir\':process.cwd(),\'paths\':\'posix\'}).src; for ( var i = 0; i < arr.length; i++ ) { console.log( arr[ i ] ); }")',
4141
],
4242

lib/node_modules/@stdlib/blas/ext/base/dcusumkbn/manifest.json

+38-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
{
2-
"options": {},
2+
"options": {
3+
"task": "build"
4+
},
35
"fields": [
46
{
57
"field": "src",
@@ -24,6 +26,41 @@
2426
],
2527
"confs": [
2628
{
29+
"task": "build",
30+
"src": [
31+
"./src/dcusumkbn.c"
32+
],
33+
"include": [
34+
"./include"
35+
],
36+
"libraries": [
37+
"-lm"
38+
],
39+
"libpath": [],
40+
"dependencies": [
41+
"@stdlib/blas/ext/base/dcusumkbn",
42+
"@stdlib/napi/argv",
43+
"@stdlib/napi/argv-int64",
44+
"@stdlib/napi/argv-strided-float64array",
45+
"@stdlib/napi/export"
46+
]
47+
},
48+
{
49+
"task": "benchmark",
50+
"src": [
51+
"./src/dcusumkbn.c"
52+
],
53+
"include": [
54+
"./include"
55+
],
56+
"libraries": [
57+
"-lm"
58+
],
59+
"libpath": [],
60+
"dependencies": []
61+
},
62+
{
63+
"task": "examples",
2764
"src": [
2865
"./src/dcusumkbn.c"
2966
],

lib/node_modules/@stdlib/blas/ext/base/dcusumkbn/package.json

+3-1
Original file line numberDiff line numberDiff line change
@@ -77,5 +77,7 @@
7777
"double",
7878
"float64array"
7979
],
80-
"__stdlib__": {}
80+
"__stdlib__": {
81+
"wasm": false
82+
}
8183
}

0 commit comments

Comments
 (0)