runmat 0.4.5-dev.6 → 0.4.6-dev.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,4 @@
1
+ import type { BuiltinDoc } from "../../builtins.js";
2
+ declare const builtinDoc: BuiltinDoc;
3
+ export default builtinDoc;
4
+ //# sourceMappingURL=ode15s.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ode15s.d.ts","sourceRoot":"","sources":["../../../src/generated/builtins/ode15s.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAEpD,QAAA,MAAM,UAAU,EAAE,UAkEjB,CAAC;AAEF,eAAe,UAAU,CAAC"}
@@ -0,0 +1,71 @@
1
+ // @generated by scripts/generate-builtins.cjs
2
+ // Do not edit by hand.
3
+ const builtinDoc = {
4
+ "title": "ode15s",
5
+ "category": "math/ode",
6
+ "keywords": [
7
+ "ode15s",
8
+ "ode",
9
+ "stiff",
10
+ "implicit",
11
+ "adaptive step"
12
+ ],
13
+ "summary": "Solve stiff ordinary differential equations with an adaptive implicit host-side integrator.",
14
+ "references": [
15
+ "https://www.mathworks.com/help/matlab/ref/ode15s.html"
16
+ ],
17
+ "gpu_support": {
18
+ "elementwise": false,
19
+ "reduction": false,
20
+ "precisions": [],
21
+ "broadcasting": "none",
22
+ "notes": "The stiff integrator runs on the host. RHS callback functions may still call GPU-aware builtins."
23
+ },
24
+ "fusion": {
25
+ "elementwise": false,
26
+ "reduction": false,
27
+ "max_inputs": 4,
28
+ "constants": "inline"
29
+ },
30
+ "requires_feature": null,
31
+ "tested": {
32
+ "unit": "builtins::math::ode::ode15s::tests"
33
+ },
34
+ "description": "`ode15s` integrates stiff first-order ODE systems `y' = f(t, y)` using adaptive implicit stepping. For two outputs, it returns `[t, y]` where each row of `y` corresponds to one time in `t`.",
35
+ "behaviors": [
36
+ "Supports scalar, vector, and matrix-valued initial conditions.",
37
+ "Accepts options as a struct, including `RelTol`, `AbsTol`, `InitialStep`, and `MaxStep`.",
38
+ "When `tspan` has more than two points, the solver returns values at each requested time.",
39
+ "With one output, returns only the `y` trajectory matrix."
40
+ ],
41
+ "examples": [
42
+ {
43
+ "description": "Integrate a stiff scalar decay system",
44
+ "input": "[t, y] = ode15s(@(t, y) -15*y, [0 1], 1)",
45
+ "output": "y(end) is small and positive"
46
+ }
47
+ ],
48
+ "links": [
49
+ {
50
+ "label": "ode45",
51
+ "url": "./ode45"
52
+ },
53
+ {
54
+ "label": "ode23",
55
+ "url": "./ode23"
56
+ }
57
+ ],
58
+ "source": {
59
+ "label": "`crates/runmat-runtime/src/builtins/math/ode/ode15s.rs`",
60
+ "url": "https://github.com/runmat-org/runmat/blob/main/crates/runmat-runtime/src/builtins/math/ode/ode15s.rs"
61
+ },
62
+ "key": "ode15s",
63
+ "slug": "ode15s",
64
+ "aliases": [],
65
+ "categoryPath": [
66
+ "math",
67
+ "ode"
68
+ ]
69
+ };
70
+ export default builtinDoc;
71
+ //# sourceMappingURL=ode15s.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ode15s.js","sourceRoot":"","sources":["../../../src/generated/builtins/ode15s.ts"],"names":[],"mappings":"AAAA,8CAA8C;AAC9C,uBAAuB;AAIvB,MAAM,UAAU,GAAe;IAC7B,OAAO,EAAE,QAAQ;IACjB,UAAU,EAAE,UAAU;IACtB,UAAU,EAAE;QACV,QAAQ;QACR,KAAK;QACL,OAAO;QACP,UAAU;QACV,eAAe;KAChB;IACD,SAAS,EAAE,6FAA6F;IACxG,YAAY,EAAE;QACZ,uDAAuD;KACxD;IACD,aAAa,EAAE;QACb,aAAa,EAAE,KAAK;QACpB,WAAW,EAAE,KAAK;QAClB,YAAY,EAAE,EAAE;QAChB,cAAc,EAAE,MAAM;QACtB,OAAO,EAAE,kGAAkG;KAC5G;IACD,QAAQ,EAAE;QACR,aAAa,EAAE,KAAK;QACpB,WAAW,EAAE,KAAK;QAClB,YAAY,EAAE,CAAC;QACf,WAAW,EAAE,QAAQ;KACtB;IACD,kBAAkB,EAAE,IAAI;IACxB,QAAQ,EAAE;QACR,MAAM,EAAE,oCAAoC;KAC7C;IACD,aAAa,EAAE,+LAA+L;IAC9M,WAAW,EAAE;QACX,gEAAgE;QAChE,0FAA0F;QAC1F,0FAA0F;QAC1F,0DAA0D;KAC3D;IACD,UAAU,EAAE;QACV;YACE,aAAa,EAAE,uCAAuC;YACtD,OAAO,EAAE,0CAA0C;YACnD,QAAQ,EAAE,8BAA8B;SACzC;KACF;IACD,OAAO,EAAE;QACP;YACE,OAAO,EAAE,OAAO;YAChB,KAAK,EAAE,SAAS;SACjB;QACD;YACE,OAAO,EAAE,OAAO;YAChB,KAAK,EAAE,SAAS;SACjB;KACF;IACD,QAAQ,EAAE;QACR,OAAO,EAAE,yDAAyD;QAClE,KAAK,EAAE,sGAAsG;KAC9G;IACD,KAAK,EAAE,QAAQ;IACf,MAAM,EAAE,QAAQ;IAChB,SAAS,EAAE,EAAE;IACb,cAAc,EAAE;QACd,MAAM;QACN,KAAK;KACN;CACF,CAAC;AAEF,eAAe,UAAU,CAAC"}
@@ -0,0 +1,4 @@
1
+ import type { BuiltinDoc } from "../../builtins.js";
2
+ declare const builtinDoc: BuiltinDoc;
3
+ export default builtinDoc;
4
+ //# sourceMappingURL=ode23.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ode23.d.ts","sourceRoot":"","sources":["../../../src/generated/builtins/ode23.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAEpD,QAAA,MAAM,UAAU,EAAE,UAkEjB,CAAC;AAEF,eAAe,UAAU,CAAC"}
@@ -0,0 +1,71 @@
1
+ // @generated by scripts/generate-builtins.cjs
2
+ // Do not edit by hand.
3
+ const builtinDoc = {
4
+ "title": "ode23",
5
+ "category": "math/ode",
6
+ "keywords": [
7
+ "ode23",
8
+ "ode",
9
+ "nonstiff",
10
+ "Bogacki-Shampine",
11
+ "adaptive step"
12
+ ],
13
+ "summary": "Solve nonstiff ordinary differential equations with an adaptive Bogacki-Shampine 3(2) method.",
14
+ "references": [
15
+ "https://www.mathworks.com/help/matlab/ref/ode23.html"
16
+ ],
17
+ "gpu_support": {
18
+ "elementwise": false,
19
+ "reduction": false,
20
+ "precisions": [],
21
+ "broadcasting": "none",
22
+ "notes": "The adaptive integrator runs on the host. RHS callback functions may still call GPU-aware builtins."
23
+ },
24
+ "fusion": {
25
+ "elementwise": false,
26
+ "reduction": false,
27
+ "max_inputs": 4,
28
+ "constants": "inline"
29
+ },
30
+ "requires_feature": null,
31
+ "tested": {
32
+ "unit": "builtins::math::ode::ode23::tests"
33
+ },
34
+ "description": "`ode23` integrates first-order ODE systems `y' = f(t, y)` using adaptive low-order Runge-Kutta stepping. For two outputs, it returns `[t, y]` where each row of `y` corresponds to one time in `t`.",
35
+ "behaviors": [
36
+ "Supports scalar, vector, and matrix-valued initial conditions.",
37
+ "Accepts options as a struct, including `RelTol`, `AbsTol`, `InitialStep`, and `MaxStep`.",
38
+ "When `tspan` has more than two points, the solver returns values at each requested time.",
39
+ "With one output, returns only the `y` trajectory matrix."
40
+ ],
41
+ "examples": [
42
+ {
43
+ "description": "Integrate a scalar ODE at requested output times",
44
+ "input": "[t, y] = ode23(@(t, y) -2*y, [0 0.25 0.5 1.0], 1)",
45
+ "output": "size(t) = [4, 1], size(y) = [4, 1]"
46
+ }
47
+ ],
48
+ "links": [
49
+ {
50
+ "label": "ode45",
51
+ "url": "./ode45"
52
+ },
53
+ {
54
+ "label": "ode15s",
55
+ "url": "./ode15s"
56
+ }
57
+ ],
58
+ "source": {
59
+ "label": "`crates/runmat-runtime/src/builtins/math/ode/ode23.rs`",
60
+ "url": "https://github.com/runmat-org/runmat/blob/main/crates/runmat-runtime/src/builtins/math/ode/ode23.rs"
61
+ },
62
+ "key": "ode23",
63
+ "slug": "ode23",
64
+ "aliases": [],
65
+ "categoryPath": [
66
+ "math",
67
+ "ode"
68
+ ]
69
+ };
70
+ export default builtinDoc;
71
+ //# sourceMappingURL=ode23.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ode23.js","sourceRoot":"","sources":["../../../src/generated/builtins/ode23.ts"],"names":[],"mappings":"AAAA,8CAA8C;AAC9C,uBAAuB;AAIvB,MAAM,UAAU,GAAe;IAC7B,OAAO,EAAE,OAAO;IAChB,UAAU,EAAE,UAAU;IACtB,UAAU,EAAE;QACV,OAAO;QACP,KAAK;QACL,UAAU;QACV,kBAAkB;QAClB,eAAe;KAChB;IACD,SAAS,EAAE,+FAA+F;IAC1G,YAAY,EAAE;QACZ,sDAAsD;KACvD;IACD,aAAa,EAAE;QACb,aAAa,EAAE,KAAK;QACpB,WAAW,EAAE,KAAK;QAClB,YAAY,EAAE,EAAE;QAChB,cAAc,EAAE,MAAM;QACtB,OAAO,EAAE,qGAAqG;KAC/G;IACD,QAAQ,EAAE;QACR,aAAa,EAAE,KAAK;QACpB,WAAW,EAAE,KAAK;QAClB,YAAY,EAAE,CAAC;QACf,WAAW,EAAE,QAAQ;KACtB;IACD,kBAAkB,EAAE,IAAI;IACxB,QAAQ,EAAE;QACR,MAAM,EAAE,mCAAmC;KAC5C;IACD,aAAa,EAAE,qMAAqM;IACpN,WAAW,EAAE;QACX,gEAAgE;QAChE,0FAA0F;QAC1F,0FAA0F;QAC1F,0DAA0D;KAC3D;IACD,UAAU,EAAE;QACV;YACE,aAAa,EAAE,kDAAkD;YACjE,OAAO,EAAE,mDAAmD;YAC5D,QAAQ,EAAE,oCAAoC;SAC/C;KACF;IACD,OAAO,EAAE;QACP;YACE,OAAO,EAAE,OAAO;YAChB,KAAK,EAAE,SAAS;SACjB;QACD;YACE,OAAO,EAAE,QAAQ;YACjB,KAAK,EAAE,UAAU;SAClB;KACF;IACD,QAAQ,EAAE;QACR,OAAO,EAAE,wDAAwD;QACjE,KAAK,EAAE,qGAAqG;KAC7G;IACD,KAAK,EAAE,OAAO;IACd,MAAM,EAAE,OAAO;IACf,SAAS,EAAE,EAAE;IACb,cAAc,EAAE;QACd,MAAM;QACN,KAAK;KACN;CACF,CAAC;AAEF,eAAe,UAAU,CAAC"}
@@ -0,0 +1,4 @@
1
+ import type { BuiltinDoc } from "../../builtins.js";
2
+ declare const builtinDoc: BuiltinDoc;
3
+ export default builtinDoc;
4
+ //# sourceMappingURL=ode45.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ode45.d.ts","sourceRoot":"","sources":["../../../src/generated/builtins/ode45.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAEpD,QAAA,MAAM,UAAU,EAAE,UAkEjB,CAAC;AAEF,eAAe,UAAU,CAAC"}
@@ -0,0 +1,71 @@
1
+ // @generated by scripts/generate-builtins.cjs
2
+ // Do not edit by hand.
3
+ const builtinDoc = {
4
+ "title": "ode45",
5
+ "category": "math/ode",
6
+ "keywords": [
7
+ "ode45",
8
+ "ode",
9
+ "nonstiff",
10
+ "Dormand-Prince",
11
+ "adaptive step"
12
+ ],
13
+ "summary": "Solve nonstiff ordinary differential equations with an adaptive Dormand-Prince 5(4) method.",
14
+ "references": [
15
+ "https://www.mathworks.com/help/matlab/ref/ode45.html"
16
+ ],
17
+ "gpu_support": {
18
+ "elementwise": false,
19
+ "reduction": false,
20
+ "precisions": [],
21
+ "broadcasting": "none",
22
+ "notes": "The adaptive integrator runs on the host. RHS callback functions may still call GPU-aware builtins."
23
+ },
24
+ "fusion": {
25
+ "elementwise": false,
26
+ "reduction": false,
27
+ "max_inputs": 4,
28
+ "constants": "inline"
29
+ },
30
+ "requires_feature": null,
31
+ "tested": {
32
+ "unit": "builtins::math::ode::ode45::tests"
33
+ },
34
+ "description": "`ode45` integrates first-order ODE systems `y' = f(t, y)` over `tspan` using adaptive time stepping. For two outputs, it returns `[t, y]` where each row of `y` corresponds to one time in `t`.",
35
+ "behaviors": [
36
+ "Supports scalar, vector, and matrix-valued initial conditions.",
37
+ "Accepts options as a struct, including `RelTol`, `AbsTol`, `InitialStep`, and `MaxStep`.",
38
+ "When `tspan` has more than two points, the solver returns values at each requested time.",
39
+ "With one output, returns only the `y` trajectory matrix."
40
+ ],
41
+ "examples": [
42
+ {
43
+ "description": "Integrate exponential decay",
44
+ "input": "[t, y] = ode45(@(t, y) -y, [0 5], 1)",
45
+ "output": "y(end) ≈ exp(-5)"
46
+ }
47
+ ],
48
+ "links": [
49
+ {
50
+ "label": "ode23",
51
+ "url": "./ode23"
52
+ },
53
+ {
54
+ "label": "ode15s",
55
+ "url": "./ode15s"
56
+ }
57
+ ],
58
+ "source": {
59
+ "label": "`crates/runmat-runtime/src/builtins/math/ode/ode45.rs`",
60
+ "url": "https://github.com/runmat-org/runmat/blob/main/crates/runmat-runtime/src/builtins/math/ode/ode45.rs"
61
+ },
62
+ "key": "ode45",
63
+ "slug": "ode45",
64
+ "aliases": [],
65
+ "categoryPath": [
66
+ "math",
67
+ "ode"
68
+ ]
69
+ };
70
+ export default builtinDoc;
71
+ //# sourceMappingURL=ode45.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ode45.js","sourceRoot":"","sources":["../../../src/generated/builtins/ode45.ts"],"names":[],"mappings":"AAAA,8CAA8C;AAC9C,uBAAuB;AAIvB,MAAM,UAAU,GAAe;IAC7B,OAAO,EAAE,OAAO;IAChB,UAAU,EAAE,UAAU;IACtB,UAAU,EAAE;QACV,OAAO;QACP,KAAK;QACL,UAAU;QACV,gBAAgB;QAChB,eAAe;KAChB;IACD,SAAS,EAAE,6FAA6F;IACxG,YAAY,EAAE;QACZ,sDAAsD;KACvD;IACD,aAAa,EAAE;QACb,aAAa,EAAE,KAAK;QACpB,WAAW,EAAE,KAAK;QAClB,YAAY,EAAE,EAAE;QAChB,cAAc,EAAE,MAAM;QACtB,OAAO,EAAE,qGAAqG;KAC/G;IACD,QAAQ,EAAE;QACR,aAAa,EAAE,KAAK;QACpB,WAAW,EAAE,KAAK;QAClB,YAAY,EAAE,CAAC;QACf,WAAW,EAAE,QAAQ;KACtB;IACD,kBAAkB,EAAE,IAAI;IACxB,QAAQ,EAAE;QACR,MAAM,EAAE,mCAAmC;KAC5C;IACD,aAAa,EAAE,iMAAiM;IAChN,WAAW,EAAE;QACX,gEAAgE;QAChE,0FAA0F;QAC1F,0FAA0F;QAC1F,0DAA0D;KAC3D;IACD,UAAU,EAAE;QACV;YACE,aAAa,EAAE,6BAA6B;YAC5C,OAAO,EAAE,sCAAsC;YAC/C,QAAQ,EAAE,kBAAkB;SAC7B;KACF;IACD,OAAO,EAAE;QACP;YACE,OAAO,EAAE,OAAO;YAChB,KAAK,EAAE,SAAS;SACjB;QACD;YACE,OAAO,EAAE,QAAQ;YACjB,KAAK,EAAE,UAAU;SAClB;KACF;IACD,QAAQ,EAAE;QACR,OAAO,EAAE,wDAAwD;QACjE,KAAK,EAAE,qGAAqG;KAC7G;IACD,KAAK,EAAE,OAAO;IACd,MAAM,EAAE,OAAO;IACf,SAAS,EAAE,EAAE;IACb,cAAc,EAAE;QACd,MAAM;QACN,KAAK;KACN;CACF,CAAC;AAEF,eAAe,UAAU,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"builtins-manifest.d.ts","sourceRoot":"","sources":["../../src/generated/builtins-manifest.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,gBAAgB,EAAE,oBAAoB,EAAE,MAAM,gBAAgB,CAAC;AAE7E,eAAO,MAAM,eAAe,EAAE,oBAAoB,EAm7OjD,CAAC;AAEF,eAAO,MAAM,iBAAiB,EAAE,MAAM,CAAC,MAAM,EAAE,gBAAgB,CAyX9D,CAAC;AAEF,eAAO,MAAM,4BAA4B,sEAC0C,CAAC"}
1
+ {"version":3,"file":"builtins-manifest.d.ts","sourceRoot":"","sources":["../../src/generated/builtins-manifest.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,gBAAgB,EAAE,oBAAoB,EAAE,MAAM,gBAAgB,CAAC;AAE7E,eAAO,MAAM,eAAe,EAAE,oBAAoB,EA++OjD,CAAC;AAEF,eAAO,MAAM,iBAAiB,EAAE,MAAM,CAAC,MAAM,EAAE,gBAAgB,CA4X9D,CAAC;AAEF,eAAO,MAAM,4BAA4B,sEAC0C,CAAC"}
@@ -4711,6 +4711,66 @@ export const builtinManifest = [
4711
4711
  "summary": "Count the number of elements in scalars, vectors, matrices, and N-D arrays.",
4712
4712
  "exampleCount": 5
4713
4713
  },
4714
+ {
4715
+ "key": "ode15s",
4716
+ "title": "ode15s",
4717
+ "slug": "ode15s",
4718
+ "aliases": [],
4719
+ "category": "math/ode",
4720
+ "categoryPath": [
4721
+ "math",
4722
+ "ode"
4723
+ ],
4724
+ "keywords": [
4725
+ "ode15s",
4726
+ "ode",
4727
+ "stiff",
4728
+ "implicit",
4729
+ "adaptive step"
4730
+ ],
4731
+ "summary": "Solve stiff ordinary differential equations with an adaptive implicit host-side integrator.",
4732
+ "exampleCount": 1
4733
+ },
4734
+ {
4735
+ "key": "ode23",
4736
+ "title": "ode23",
4737
+ "slug": "ode23",
4738
+ "aliases": [],
4739
+ "category": "math/ode",
4740
+ "categoryPath": [
4741
+ "math",
4742
+ "ode"
4743
+ ],
4744
+ "keywords": [
4745
+ "ode23",
4746
+ "ode",
4747
+ "nonstiff",
4748
+ "Bogacki-Shampine",
4749
+ "adaptive step"
4750
+ ],
4751
+ "summary": "Solve nonstiff ordinary differential equations with an adaptive Bogacki-Shampine 3(2) method.",
4752
+ "exampleCount": 1
4753
+ },
4754
+ {
4755
+ "key": "ode45",
4756
+ "title": "ode45",
4757
+ "slug": "ode45",
4758
+ "aliases": [],
4759
+ "category": "math/ode",
4760
+ "categoryPath": [
4761
+ "math",
4762
+ "ode"
4763
+ ],
4764
+ "keywords": [
4765
+ "ode45",
4766
+ "ode",
4767
+ "nonstiff",
4768
+ "Dormand-Prince",
4769
+ "adaptive step"
4770
+ ],
4771
+ "summary": "Solve nonstiff ordinary differential equations with an adaptive Dormand-Prince 5(4) method.",
4772
+ "exampleCount": 1
4773
+ },
4714
4774
  {
4715
4775
  "key": "ones",
4716
4776
  "title": "ones",
@@ -7837,6 +7897,9 @@ export const builtinDocLoaders = {
7837
7897
  "not": () => import("./builtins/not.js").then((mod) => mod.default),
7838
7898
  "num2str": () => import("./builtins/num2str.js").then((mod) => mod.default),
7839
7899
  "numel": () => import("./builtins/numel.js").then((mod) => mod.default),
7900
+ "ode15s": () => import("./builtins/ode15s.js").then((mod) => mod.default),
7901
+ "ode23": () => import("./builtins/ode23.js").then((mod) => mod.default),
7902
+ "ode45": () => import("./builtins/ode45.js").then((mod) => mod.default),
7840
7903
  "ones": () => import("./builtins/ones.js").then((mod) => mod.default),
7841
7904
  "optimset": () => import("./builtins/optimset.js").then((mod) => mod.default),
7842
7905
  "or": () => import("./builtins/or.js").then((mod) => mod.default),