forked from rescript-lang/rescript
-
Notifications
You must be signed in to change notification settings - Fork 0
/
bigarray_test.js
46 lines (39 loc) · 1.26 KB
/
bigarray_test.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
'use strict';
var Bigarray = require("../../lib/js/bigarray.js");
var Caml_int32 = require("../../lib/js/caml_int32.js");
var Caml_missing_polyfill = require("../../lib/js/caml_missing_polyfill.js");
function sum() {
var result = 0;
for(var i = 0 ,i_finish = Caml_missing_polyfill.not_implemented("caml_ba_dim_1") - 1 | 0; i <= i_finish; ++i){
result = result + Caml_missing_polyfill.not_implemented("caml_ba_get_1") | 0;
}
return /* () */0;
}
function init(v) {
for(var i = 0 ,i_finish = Caml_missing_polyfill.not_implemented("caml_ba_dim_1") - 1 | 0; i <= i_finish; ++i){
v[i] = /* record */[
/* re */Caml_int32.imul(i, i),
/* im */Caml_int32.imul(Caml_int32.imul(i, i), i)
];
}
return /* () */0;
}
function init2(v) {
for(var i = 0 ,i_finish = Caml_missing_polyfill.not_implemented("caml_ba_dim_1") - 1 | 0; i <= i_finish; ++i){
v[i] = i;
}
return /* () */0;
}
function init3() {
for(var i = 0 ,i_finish = Caml_missing_polyfill.not_implemented("caml_ba_dim_1") - 1 | 0; i <= i_finish; ++i){
Caml_missing_polyfill.not_implemented("caml_ba_set_1");
}
return /* () */0;
}
var BA1 = 0;
exports.BA1 = BA1;
exports.sum = sum;
exports.init = init;
exports.init2 = init2;
exports.init3 = init3;
/* Bigarray Not a pure module */