-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.js
68 lines (63 loc) · 2.1 KB
/
index.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
'use strict';
Object.defineProperty(exports, '__esModule', { value: true });
const { AccurateMonitor } = require('./AccurateMonitor');
const M = new AccurateMonitor;
const R = './build/Release/';
Object.defineProperty(exports, 'mathp', { value: `${R}math` });
Object.defineProperty(exports, 'hellop', { value: `${R}hello` });
Object.defineProperty(exports, 'arraysp', { value: `${R}arrays` });
exports.math = require(exports.mathp);
exports.hello = require(exports.hellop);
const { ArrayUtil } = require(exports.arraysp);
const AU_default = ArrayUtil(!0);
Object.defineProperties(ArrayUtil, {
'sample': {
value: AU_default.sample.bind(this && this.constructor === ArrayUtil ? this : AU_default),
enumerable: !0,
},
'shuffle': {
value: AU_default.shuffle.bind(this && this.constructor === ArrayUtil ? this : AU_default),
enumerable: !0,
},
'sumAll': {
value: AU_default.sumAll.bind(this && this.constructor === ArrayUtil ? this : AU_default),
enumerable: !0,
},
'dot': {
value: AU_default.dot.bind(this && this.constructor === ArrayUtil ? this : AU_default),
enumerable: !0,
},
'dotExp': {
value: (...args) => {
M.set();
const v = AU_default.nativedotexp.bind(this && this.constructor === ArrayUtil ? this : AU_default)(...args);
console.log(M.report());
return v;
},
enumerable: !0,
},
'wrappedDotExp': {
value: (...args) => {
M.set();
const v = AU_default.dotexp.bind(this && this.constructor === ArrayUtil ? this : AU_default)(...args);
console.log(M.report());
return v;
},
enumerable: !0,
},
'inverse': {
value: (...args) => {
M.set();
const v = AU_default.nativeinverse.bind(this && this.constructor === ArrayUtil ? this : AU_default)(...args);
console.log(M.report());
return v;
},
enumerable: !0,
},
'generate_diag_mat': {
value: (x = 2, n = 100) => [...new Array(n)].map(() => ([...new Array(n).fill(0)])).map((row, i) => (row[i] = x, row)),
enumerable: !0,
},
});
Object.defineProperty(exports, 'ArrayUtil', { value: ArrayUtil });
exports.arrays = ArrayUtil;