runmat 0.4.5-dev.1 → 0.4.5-dev.3

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.
Files changed (49) hide show
  1. package/artifacts/stdlib.snapshot +0 -0
  2. package/dist/generated/builtin-examples-catalog.d.ts.map +1 -1
  3. package/dist/generated/builtin-examples-catalog.js +1 -1
  4. package/dist/generated/builtin-examples-catalog.js.map +1 -1
  5. package/dist/generated/builtins/fsolve.d.ts +4 -0
  6. package/dist/generated/builtins/fsolve.d.ts.map +1 -0
  7. package/dist/generated/builtins/fsolve.js +81 -0
  8. package/dist/generated/builtins/fsolve.js.map +1 -0
  9. package/dist/generated/builtins/fzero.d.ts +4 -0
  10. package/dist/generated/builtins/fzero.d.ts.map +1 -0
  11. package/dist/generated/builtins/fzero.js +86 -0
  12. package/dist/generated/builtins/fzero.js.map +1 -0
  13. package/dist/generated/builtins/interp1.d.ts +4 -0
  14. package/dist/generated/builtins/interp1.d.ts.map +1 -0
  15. package/dist/generated/builtins/interp1.js +90 -0
  16. package/dist/generated/builtins/interp1.js.map +1 -0
  17. package/dist/generated/builtins/interp2.d.ts +4 -0
  18. package/dist/generated/builtins/interp2.d.ts.map +1 -0
  19. package/dist/generated/builtins/interp2.js +88 -0
  20. package/dist/generated/builtins/interp2.js.map +1 -0
  21. package/dist/generated/builtins/optimset.d.ts +4 -0
  22. package/dist/generated/builtins/optimset.d.ts.map +1 -0
  23. package/dist/generated/builtins/optimset.js +71 -0
  24. package/dist/generated/builtins/optimset.js.map +1 -0
  25. package/dist/generated/builtins/pchip.d.ts +4 -0
  26. package/dist/generated/builtins/pchip.d.ts.map +1 -0
  27. package/dist/generated/builtins/pchip.js +78 -0
  28. package/dist/generated/builtins/pchip.js.map +1 -0
  29. package/dist/generated/builtins/ppval.d.ts +4 -0
  30. package/dist/generated/builtins/ppval.d.ts.map +1 -0
  31. package/dist/generated/builtins/ppval.js +77 -0
  32. package/dist/generated/builtins/ppval.js.map +1 -0
  33. package/dist/generated/builtins/spline.d.ts +4 -0
  34. package/dist/generated/builtins/spline.d.ts.map +1 -0
  35. package/dist/generated/builtins/spline.js +84 -0
  36. package/dist/generated/builtins/spline.js.map +1 -0
  37. package/dist/generated/builtins-manifest.d.ts.map +1 -1
  38. package/dist/generated/builtins-manifest.js +168 -0
  39. package/dist/generated/builtins-manifest.js.map +1 -1
  40. package/dist/lsp/runmat_lsp.d.ts +2 -2
  41. package/dist/lsp/runmat_lsp.js +4 -4
  42. package/dist/lsp/runmat_lsp_bg.wasm +0 -0
  43. package/dist/lsp/runmat_lsp_bg.wasm.d.ts +2 -2
  44. package/dist/pkg-web/runmat_wasm_web.d.ts +3 -3
  45. package/dist/pkg-web/runmat_wasm_web.js +7 -7
  46. package/dist/pkg-web/runmat_wasm_web_bg.wasm +0 -0
  47. package/dist/pkg-web/runmat_wasm_web_bg.wasm.d.ts +3 -3
  48. package/dist/runtime/stdlib.snapshot +0 -0
  49. package/package.json +1 -1
@@ -0,0 +1,4 @@
1
+ import type { BuiltinDoc } from "../../builtins.js";
2
+ declare const builtinDoc: BuiltinDoc;
3
+ export default builtinDoc;
4
+ //# sourceMappingURL=fsolve.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"fsolve.d.ts","sourceRoot":"","sources":["../../../src/generated/builtins/fsolve.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAEpD,QAAA,MAAM,UAAU,EAAE,UA4EjB,CAAC;AAEF,eAAe,UAAU,CAAC"}
@@ -0,0 +1,81 @@
1
+ // @generated by scripts/generate-builtins.cjs
2
+ // Do not edit by hand.
3
+ const builtinDoc = {
4
+ "title": "fsolve",
5
+ "category": "math/optim",
6
+ "keywords": [
7
+ "fsolve",
8
+ "nonlinear solve",
9
+ "root finding",
10
+ "Jacobian",
11
+ "Levenberg-Marquardt"
12
+ ],
13
+ "summary": "Solve scalar or vector nonlinear equation systems using finite-difference Levenberg-Marquardt iterations.",
14
+ "references": [
15
+ "https://www.mathworks.com/help/optim/ug/fsolve.html"
16
+ ],
17
+ "gpu_support": {
18
+ "elementwise": false,
19
+ "reduction": false,
20
+ "precisions": [],
21
+ "broadcasting": "none",
22
+ "notes": "The nonlinear solver runs on the host. Callback functions may still call GPU-aware builtins."
23
+ },
24
+ "fusion": {
25
+ "elementwise": false,
26
+ "reduction": false,
27
+ "max_inputs": 3,
28
+ "constants": "inline"
29
+ },
30
+ "requires_feature": null,
31
+ "tested": {
32
+ "unit": "builtins::math::optim::fsolve::tests",
33
+ "integration": "runmat-vm/tests/closures.rs::fsolve_accepts_anonymous_vector_function"
34
+ },
35
+ "description": "`x = fsolve(fun, x0)` solves `fun(x) = 0` starting from `x0`. Scalar guesses return scalars; vector and matrix guesses return a result with the same shape as `x0`.",
36
+ "behaviors": [
37
+ "The function handle must return a finite real scalar or vector.",
38
+ "Jacobians are estimated with forward finite differences.",
39
+ "The step is chosen with a Levenberg-Marquardt damping parameter and accepted only when it reduces the residual norm.",
40
+ "Options are supplied as a struct, usually created with `optimset`. `TolX`, `TolFun`, `MaxIter`, `MaxFunEvals`, and `Display` are accepted."
41
+ ],
42
+ "examples": [
43
+ {
44
+ "description": "Solve a two-variable nonlinear system",
45
+ "input": "F = @(x) [x(1)^2 + x(2)^2 - 4; x(1)*x(2) - 1];\nx = fsolve(F, [1; 1])",
46
+ "output": "x =\n 1.9319\n 0.5176"
47
+ },
48
+ {
49
+ "description": "Solve a scalar equation",
50
+ "input": "x = fsolve(@sin, 3)",
51
+ "output": "x =\n 3.1416"
52
+ }
53
+ ],
54
+ "links": [
55
+ {
56
+ "label": "fzero",
57
+ "url": "./fzero"
58
+ },
59
+ {
60
+ "label": "optimset",
61
+ "url": "./optimset"
62
+ },
63
+ {
64
+ "label": "linsolve",
65
+ "url": "./linsolve"
66
+ }
67
+ ],
68
+ "source": {
69
+ "label": "`crates/runmat-runtime/src/builtins/math/optim/fsolve.rs`",
70
+ "url": "https://github.com/runmat-org/runmat/blob/main/crates/runmat-runtime/src/builtins/math/optim/fsolve.rs"
71
+ },
72
+ "key": "fsolve",
73
+ "slug": "fsolve",
74
+ "aliases": [],
75
+ "categoryPath": [
76
+ "math",
77
+ "optim"
78
+ ]
79
+ };
80
+ export default builtinDoc;
81
+ //# sourceMappingURL=fsolve.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"fsolve.js","sourceRoot":"","sources":["../../../src/generated/builtins/fsolve.ts"],"names":[],"mappings":"AAAA,8CAA8C;AAC9C,uBAAuB;AAIvB,MAAM,UAAU,GAAe;IAC7B,OAAO,EAAE,QAAQ;IACjB,UAAU,EAAE,YAAY;IACxB,UAAU,EAAE;QACV,QAAQ;QACR,iBAAiB;QACjB,cAAc;QACd,UAAU;QACV,qBAAqB;KACtB;IACD,SAAS,EAAE,2GAA2G;IACtH,YAAY,EAAE;QACZ,qDAAqD;KACtD;IACD,aAAa,EAAE;QACb,aAAa,EAAE,KAAK;QACpB,WAAW,EAAE,KAAK;QAClB,YAAY,EAAE,EAAE;QAChB,cAAc,EAAE,MAAM;QACtB,OAAO,EAAE,8FAA8F;KACxG;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,sCAAsC;QAC9C,aAAa,EAAE,uEAAuE;KACvF;IACD,aAAa,EAAE,qKAAqK;IACpL,WAAW,EAAE;QACX,iEAAiE;QACjE,0DAA0D;QAC1D,sHAAsH;QACtH,4IAA4I;KAC7I;IACD,UAAU,EAAE;QACV;YACE,aAAa,EAAE,uCAAuC;YACtD,OAAO,EAAE,uEAAuE;YAChF,QAAQ,EAAE,6BAA6B;SACxC;QACD;YACE,aAAa,EAAE,yBAAyB;YACxC,OAAO,EAAE,qBAAqB;YAC9B,QAAQ,EAAE,iBAAiB;SAC5B;KACF;IACD,OAAO,EAAE;QACP;YACE,OAAO,EAAE,OAAO;YAChB,KAAK,EAAE,SAAS;SACjB;QACD;YACE,OAAO,EAAE,UAAU;YACnB,KAAK,EAAE,YAAY;SACpB;QACD;YACE,OAAO,EAAE,UAAU;YACnB,KAAK,EAAE,YAAY;SACpB;KACF;IACD,QAAQ,EAAE;QACR,OAAO,EAAE,2DAA2D;QACpE,KAAK,EAAE,wGAAwG;KAChH;IACD,KAAK,EAAE,QAAQ;IACf,MAAM,EAAE,QAAQ;IAChB,SAAS,EAAE,EAAE;IACb,cAAc,EAAE;QACd,MAAM;QACN,OAAO;KACR;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=fzero.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"fzero.d.ts","sourceRoot":"","sources":["../../../src/generated/builtins/fzero.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAEpD,QAAA,MAAM,UAAU,EAAE,UAiFjB,CAAC;AAEF,eAAe,UAAU,CAAC"}
@@ -0,0 +1,86 @@
1
+ // @generated by scripts/generate-builtins.cjs
2
+ // Do not edit by hand.
3
+ const builtinDoc = {
4
+ "title": "fzero",
5
+ "category": "math/optim",
6
+ "keywords": [
7
+ "fzero",
8
+ "root finding",
9
+ "zero",
10
+ "brent",
11
+ "optimization"
12
+ ],
13
+ "summary": "Find a zero of a scalar nonlinear function using bracket expansion and Brent's method.",
14
+ "references": [
15
+ "https://www.mathworks.com/help/matlab/ref/fzero.html"
16
+ ],
17
+ "gpu_support": {
18
+ "elementwise": false,
19
+ "reduction": false,
20
+ "precisions": [],
21
+ "broadcasting": "none",
22
+ "notes": "The solver runs on the host. Callback functions may still call GPU-aware builtins."
23
+ },
24
+ "fusion": {
25
+ "elementwise": false,
26
+ "reduction": false,
27
+ "max_inputs": 3,
28
+ "constants": "inline"
29
+ },
30
+ "requires_feature": null,
31
+ "tested": {
32
+ "unit": "builtins::math::optim::fzero::tests",
33
+ "integration": "runmat-vm/tests/closures.rs::fzero_accepts_anonymous_function"
34
+ },
35
+ "description": "`x = fzero(fun, x0)` searches near the scalar initial point `x0` for a sign-changing bracket, then refines the zero. `x = fzero(fun, [a b])` uses the supplied two-element bracket directly.",
36
+ "behaviors": [
37
+ "The function handle must return a finite real scalar.",
38
+ "Bracket endpoints must have opposite signs unless one endpoint is already a root.",
39
+ "Options are supplied as a struct, usually created with `optimset`. `TolX`, `MaxIter`, `MaxFunEvals`, and `Display` are accepted.",
40
+ "Anonymous functions, named function handles, and function-handle strings work through RunMat's existing `feval` dispatch path."
41
+ ],
42
+ "examples": [
43
+ {
44
+ "description": "Find the fixed point of cosine",
45
+ "input": "f = @(x) cos(x) - x;\nx = fzero(f, 0.5)",
46
+ "output": "x =\n 0.7391"
47
+ },
48
+ {
49
+ "description": "Use an explicit bracket",
50
+ "input": "x = fzero(@sin, [3 4])",
51
+ "output": "x =\n 3.1416"
52
+ },
53
+ {
54
+ "description": "Set a tighter tolerance",
55
+ "input": "opts = optimset('TolX', 1e-10, 'Display', 'off');\nx = fzero(@sin, [3 4], opts)",
56
+ "output": "x =\n 3.1416"
57
+ }
58
+ ],
59
+ "links": [
60
+ {
61
+ "label": "fsolve",
62
+ "url": "./fsolve"
63
+ },
64
+ {
65
+ "label": "optimset",
66
+ "url": "./optimset"
67
+ },
68
+ {
69
+ "label": "roots",
70
+ "url": "./roots"
71
+ }
72
+ ],
73
+ "source": {
74
+ "label": "`crates/runmat-runtime/src/builtins/math/optim/fzero.rs`",
75
+ "url": "https://github.com/runmat-org/runmat/blob/main/crates/runmat-runtime/src/builtins/math/optim/fzero.rs"
76
+ },
77
+ "key": "fzero",
78
+ "slug": "fzero",
79
+ "aliases": [],
80
+ "categoryPath": [
81
+ "math",
82
+ "optim"
83
+ ]
84
+ };
85
+ export default builtinDoc;
86
+ //# sourceMappingURL=fzero.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"fzero.js","sourceRoot":"","sources":["../../../src/generated/builtins/fzero.ts"],"names":[],"mappings":"AAAA,8CAA8C;AAC9C,uBAAuB;AAIvB,MAAM,UAAU,GAAe;IAC7B,OAAO,EAAE,OAAO;IAChB,UAAU,EAAE,YAAY;IACxB,UAAU,EAAE;QACV,OAAO;QACP,cAAc;QACd,MAAM;QACN,OAAO;QACP,cAAc;KACf;IACD,SAAS,EAAE,wFAAwF;IACnG,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,oFAAoF;KAC9F;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,qCAAqC;QAC7C,aAAa,EAAE,+DAA+D;KAC/E;IACD,aAAa,EAAE,8LAA8L;IAC7M,WAAW,EAAE;QACX,uDAAuD;QACvD,mFAAmF;QACnF,kIAAkI;QAClI,gIAAgI;KACjI;IACD,UAAU,EAAE;QACV;YACE,aAAa,EAAE,gCAAgC;YAC/C,OAAO,EAAE,yCAAyC;YAClD,QAAQ,EAAE,iBAAiB;SAC5B;QACD;YACE,aAAa,EAAE,yBAAyB;YACxC,OAAO,EAAE,wBAAwB;YACjC,QAAQ,EAAE,iBAAiB;SAC5B;QACD;YACE,aAAa,EAAE,yBAAyB;YACxC,OAAO,EAAE,iFAAiF;YAC1F,QAAQ,EAAE,iBAAiB;SAC5B;KACF;IACD,OAAO,EAAE;QACP;YACE,OAAO,EAAE,QAAQ;YACjB,KAAK,EAAE,UAAU;SAClB;QACD;YACE,OAAO,EAAE,UAAU;YACnB,KAAK,EAAE,YAAY;SACpB;QACD;YACE,OAAO,EAAE,OAAO;YAChB,KAAK,EAAE,SAAS;SACjB;KACF;IACD,QAAQ,EAAE;QACR,OAAO,EAAE,0DAA0D;QACnE,KAAK,EAAE,uGAAuG;KAC/G;IACD,KAAK,EAAE,OAAO;IACd,MAAM,EAAE,OAAO;IACf,SAAS,EAAE,EAAE;IACb,cAAc,EAAE;QACd,MAAM;QACN,OAAO;KACR;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=interp1.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"interp1.d.ts","sourceRoot":"","sources":["../../../src/generated/builtins/interp1.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAEpD,QAAA,MAAM,UAAU,EAAE,UAqFjB,CAAC;AAEF,eAAe,UAAU,CAAC"}
@@ -0,0 +1,90 @@
1
+ // @generated by scripts/generate-builtins.cjs
2
+ // Do not edit by hand.
3
+ const builtinDoc = {
4
+ "title": "interp1",
5
+ "category": "math/interpolation",
6
+ "keywords": [
7
+ "interp1",
8
+ "interpolation",
9
+ "linear",
10
+ "nearest",
11
+ "spline",
12
+ "pchip"
13
+ ],
14
+ "summary": "Interpolate one-dimensional sampled data at query points.",
15
+ "gpu_support": {
16
+ "elementwise": false,
17
+ "reduction": false,
18
+ "precisions": [
19
+ "f32",
20
+ "f64"
21
+ ],
22
+ "broadcasting": "matlab",
23
+ "notes": "GPU inputs are gathered to the CPU reference implementation in this release. Linear and nearest interpolation are good future provider-kernel candidates."
24
+ },
25
+ "fusion": {
26
+ "elementwise": false,
27
+ "reduction": false,
28
+ "max_inputs": 3,
29
+ "constants": "inline"
30
+ },
31
+ "description": "`interp1(x, y, xq)` estimates values of a one-dimensional data set at query points `xq`. The default method is linear interpolation; `nearest`, `spline`, and `pchip` are also accepted.",
32
+ "behaviors": [
33
+ "`interp1(y, xq)` uses implicit sample points `1:numel(y)`.",
34
+ "`interp1(x, y, xq, method)` supports `linear`, `nearest`, `spline`, and `pchip`.",
35
+ "Out-of-range query points return `NaN` unless an extrapolation value or `'extrap'` is supplied.",
36
+ "Dense real numeric arrays are supported. GPU inputs gather to the host reference path."
37
+ ],
38
+ "examples": [
39
+ {
40
+ "description": "Linear interpolation",
41
+ "input": "x = [1 2 3];\ny = [10 20 40];\nyq = interp1(x, y, [1.5 2.5])",
42
+ "output": "yq = [15 30]"
43
+ },
44
+ {
45
+ "description": "Spline interpolation",
46
+ "input": "x = [1 2 3];\ny = [1 4 9];\nyq = interp1(x, y, [1.5 2.5], 'spline')",
47
+ "output": "yq = [2.25 6.25]"
48
+ }
49
+ ],
50
+ "syntax": {
51
+ "example": {
52
+ "description": "Syntax",
53
+ "input": "yq = interp1(y, xq)\nyq = interp1(x, y, xq)\nyq = interp1(x, y, xq, method)\nyq = interp1(x, y, xq, method, 'extrap')"
54
+ },
55
+ "points": [
56
+ "`x` is a strictly increasing vector of sample locations. When omitted, RunMat uses `1:numel(y)`.",
57
+ "`y` contains the sampled values. Vector inputs produce vector outputs; matrix inputs are interpolated along the sample dimension.",
58
+ "`xq` contains query points. Scalar queries return scalars, and array queries preserve their shape.",
59
+ "`method` may be `linear`, `nearest`, `spline`, or `pchip`. The default is `linear`.",
60
+ "Out-of-range queries return `NaN` by default. Pass `'extrap'` to extrapolate or pass a scalar fill value."
61
+ ]
62
+ },
63
+ "links": [
64
+ {
65
+ "label": "spline",
66
+ "url": "./spline"
67
+ },
68
+ {
69
+ "label": "pchip",
70
+ "url": "./pchip"
71
+ },
72
+ {
73
+ "label": "interp2",
74
+ "url": "./interp2"
75
+ }
76
+ ],
77
+ "source": {
78
+ "label": "Open an issue",
79
+ "url": "https://github.com/runmat-org/runmat/issues/new/choose"
80
+ },
81
+ "key": "interp1",
82
+ "slug": "interp1",
83
+ "aliases": [],
84
+ "categoryPath": [
85
+ "math",
86
+ "interpolation"
87
+ ]
88
+ };
89
+ export default builtinDoc;
90
+ //# sourceMappingURL=interp1.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"interp1.js","sourceRoot":"","sources":["../../../src/generated/builtins/interp1.ts"],"names":[],"mappings":"AAAA,8CAA8C;AAC9C,uBAAuB;AAIvB,MAAM,UAAU,GAAe;IAC7B,OAAO,EAAE,SAAS;IAClB,UAAU,EAAE,oBAAoB;IAChC,UAAU,EAAE;QACV,SAAS;QACT,eAAe;QACf,QAAQ;QACR,SAAS;QACT,QAAQ;QACR,OAAO;KACR;IACD,SAAS,EAAE,2DAA2D;IACtE,aAAa,EAAE;QACb,aAAa,EAAE,KAAK;QACpB,WAAW,EAAE,KAAK;QAClB,YAAY,EAAE;YACZ,KAAK;YACL,KAAK;SACN;QACD,cAAc,EAAE,QAAQ;QACxB,OAAO,EAAE,2JAA2J;KACrK;IACD,QAAQ,EAAE;QACR,aAAa,EAAE,KAAK;QACpB,WAAW,EAAE,KAAK;QAClB,YAAY,EAAE,CAAC;QACf,WAAW,EAAE,QAAQ;KACtB;IACD,aAAa,EAAE,0LAA0L;IACzM,WAAW,EAAE;QACX,4DAA4D;QAC5D,kFAAkF;QAClF,iGAAiG;QACjG,wFAAwF;KACzF;IACD,UAAU,EAAE;QACV;YACE,aAAa,EAAE,sBAAsB;YACrC,OAAO,EAAE,8DAA8D;YACvE,QAAQ,EAAE,cAAc;SACzB;QACD;YACE,aAAa,EAAE,sBAAsB;YACrC,OAAO,EAAE,qEAAqE;YAC9E,QAAQ,EAAE,kBAAkB;SAC7B;KACF;IACD,QAAQ,EAAE;QACR,SAAS,EAAE;YACT,aAAa,EAAE,QAAQ;YACvB,OAAO,EAAE,uHAAuH;SACjI;QACD,QAAQ,EAAE;YACR,kGAAkG;YAClG,mIAAmI;YACnI,oGAAoG;YACpG,qFAAqF;YACrF,2GAA2G;SAC5G;KACF;IACD,OAAO,EAAE;QACP;YACE,OAAO,EAAE,QAAQ;YACjB,KAAK,EAAE,UAAU;SAClB;QACD;YACE,OAAO,EAAE,OAAO;YAChB,KAAK,EAAE,SAAS;SACjB;QACD;YACE,OAAO,EAAE,SAAS;YAClB,KAAK,EAAE,WAAW;SACnB;KACF;IACD,QAAQ,EAAE;QACR,OAAO,EAAE,eAAe;QACxB,KAAK,EAAE,wDAAwD;KAChE;IACD,KAAK,EAAE,SAAS;IAChB,MAAM,EAAE,SAAS;IACjB,SAAS,EAAE,EAAE;IACb,cAAc,EAAE;QACd,MAAM;QACN,eAAe;KAChB;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=interp2.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"interp2.d.ts","sourceRoot":"","sources":["../../../src/generated/builtins/interp2.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAEpD,QAAA,MAAM,UAAU,EAAE,UAmFjB,CAAC;AAEF,eAAe,UAAU,CAAC"}
@@ -0,0 +1,88 @@
1
+ // @generated by scripts/generate-builtins.cjs
2
+ // Do not edit by hand.
3
+ const builtinDoc = {
4
+ "title": "interp2",
5
+ "category": "math/interpolation",
6
+ "keywords": [
7
+ "interp2",
8
+ "2-D interpolation",
9
+ "bilinear",
10
+ "nearest",
11
+ "meshgrid"
12
+ ],
13
+ "summary": "Interpolate values over a two-dimensional gridded surface.",
14
+ "gpu_support": {
15
+ "elementwise": false,
16
+ "reduction": false,
17
+ "precisions": [
18
+ "f32",
19
+ "f64"
20
+ ],
21
+ "broadcasting": "matlab",
22
+ "notes": "GPU inputs are gathered to the CPU reference implementation in this release. Bilinear and nearest interpolation are intended future provider-kernel targets."
23
+ },
24
+ "fusion": {
25
+ "elementwise": false,
26
+ "reduction": false,
27
+ "max_inputs": 5,
28
+ "constants": "inline"
29
+ },
30
+ "description": "`interp2(X, Y, Z, Xq, Yq)` estimates surface values at query points from gridded data. Vector axes and meshgrid-style coordinate matrices are accepted. `interp2(Z, Xq, Yq)` uses implicit axes based on the rows and columns of `Z`.",
31
+ "behaviors": [
32
+ "Supports `linear` and `nearest` methods in the initial implementation.",
33
+ "Out-of-range query points return `NaN` unless an extrapolation value or `'extrap'` is supplied.",
34
+ "Dense real numeric inputs are supported. GPU inputs gather to the host reference path."
35
+ ],
36
+ "examples": [
37
+ {
38
+ "description": "Bilinear interpolation with implicit axes",
39
+ "input": "Z = [1 2; 3 4];\nzq = interp2(Z, 1.5, 1.5)",
40
+ "output": "zq = 2.5"
41
+ },
42
+ {
43
+ "description": "Interpolation with meshgrid axes",
44
+ "input": "[X, Y] = meshgrid([10 20], [100 200]);\nZ = [1 2; 3 4];\nzq = interp2(X, Y, Z, 15, 150)",
45
+ "output": "zq = 2.5"
46
+ }
47
+ ],
48
+ "syntax": {
49
+ "example": {
50
+ "description": "Syntax",
51
+ "input": "Zq = interp2(Z, Xq, Yq)\nZq = interp2(X, Y, Z, Xq, Yq)\nZq = interp2(X, Y, Z, Xq, Yq, method)"
52
+ },
53
+ "points": [
54
+ "`Z` is a dense 2-D matrix of sampled surface values.",
55
+ "`X` and `Y` may be vector axes or meshgrid-style coordinate matrices matching `Z`. When omitted, implicit column and row axes are used.",
56
+ "`Xq` and `Yq` are scalar or same-size query arrays. Scalar queries broadcast against array queries.",
57
+ "`method` may be `linear` or `nearest` in the initial implementation. The default is `linear`.",
58
+ "Out-of-range queries return `NaN` by default. Pass `'extrap'` to extrapolate or pass a scalar fill value."
59
+ ]
60
+ },
61
+ "links": [
62
+ {
63
+ "label": "interp1",
64
+ "url": "./interp1"
65
+ },
66
+ {
67
+ "label": "meshgrid",
68
+ "url": "./meshgrid"
69
+ },
70
+ {
71
+ "label": "peaks",
72
+ "url": "./peaks"
73
+ }
74
+ ],
75
+ "source": {
76
+ "label": "Open an issue",
77
+ "url": "https://github.com/runmat-org/runmat/issues/new/choose"
78
+ },
79
+ "key": "interp2",
80
+ "slug": "interp2",
81
+ "aliases": [],
82
+ "categoryPath": [
83
+ "math",
84
+ "interpolation"
85
+ ]
86
+ };
87
+ export default builtinDoc;
88
+ //# sourceMappingURL=interp2.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"interp2.js","sourceRoot":"","sources":["../../../src/generated/builtins/interp2.ts"],"names":[],"mappings":"AAAA,8CAA8C;AAC9C,uBAAuB;AAIvB,MAAM,UAAU,GAAe;IAC7B,OAAO,EAAE,SAAS;IAClB,UAAU,EAAE,oBAAoB;IAChC,UAAU,EAAE;QACV,SAAS;QACT,mBAAmB;QACnB,UAAU;QACV,SAAS;QACT,UAAU;KACX;IACD,SAAS,EAAE,4DAA4D;IACvE,aAAa,EAAE;QACb,aAAa,EAAE,KAAK;QACpB,WAAW,EAAE,KAAK;QAClB,YAAY,EAAE;YACZ,KAAK;YACL,KAAK;SACN;QACD,cAAc,EAAE,QAAQ;QACxB,OAAO,EAAE,8JAA8J;KACxK;IACD,QAAQ,EAAE;QACR,aAAa,EAAE,KAAK;QACpB,WAAW,EAAE,KAAK;QAClB,YAAY,EAAE,CAAC;QACf,WAAW,EAAE,QAAQ;KACtB;IACD,aAAa,EAAE,uOAAuO;IACtP,WAAW,EAAE;QACX,wEAAwE;QACxE,iGAAiG;QACjG,wFAAwF;KACzF;IACD,UAAU,EAAE;QACV;YACE,aAAa,EAAE,2CAA2C;YAC1D,OAAO,EAAE,4CAA4C;YACrD,QAAQ,EAAE,UAAU;SACrB;QACD;YACE,aAAa,EAAE,kCAAkC;YACjD,OAAO,EAAE,yFAAyF;YAClG,QAAQ,EAAE,UAAU;SACrB;KACF;IACD,QAAQ,EAAE;QACR,SAAS,EAAE;YACT,aAAa,EAAE,QAAQ;YACvB,OAAO,EAAE,+FAA+F;SACzG;QACD,QAAQ,EAAE;YACR,sDAAsD;YACtD,yIAAyI;YACzI,qGAAqG;YACrG,+FAA+F;YAC/F,2GAA2G;SAC5G;KACF;IACD,OAAO,EAAE;QACP;YACE,OAAO,EAAE,SAAS;YAClB,KAAK,EAAE,WAAW;SACnB;QACD;YACE,OAAO,EAAE,UAAU;YACnB,KAAK,EAAE,YAAY;SACpB;QACD;YACE,OAAO,EAAE,OAAO;YAChB,KAAK,EAAE,SAAS;SACjB;KACF;IACD,QAAQ,EAAE;QACR,OAAO,EAAE,eAAe;QACxB,KAAK,EAAE,wDAAwD;KAChE;IACD,KAAK,EAAE,SAAS;IAChB,MAAM,EAAE,SAAS;IACjB,SAAS,EAAE,EAAE;IACb,cAAc,EAAE;QACd,MAAM;QACN,eAAe;KAChB;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=optimset.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"optimset.d.ts","sourceRoot":"","sources":["../../../src/generated/builtins/optimset.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": "optimset",
5
+ "category": "math/optim",
6
+ "keywords": [
7
+ "optimset",
8
+ "options",
9
+ "TolX",
10
+ "TolFun",
11
+ "MaxIter",
12
+ "Display"
13
+ ],
14
+ "summary": "Create or update an optimization options structure for fzero and fsolve.",
15
+ "references": [
16
+ "https://www.mathworks.com/help/matlab/ref/optimset.html"
17
+ ],
18
+ "gpu_support": {
19
+ "elementwise": false,
20
+ "reduction": false,
21
+ "precisions": [],
22
+ "broadcasting": "none",
23
+ "notes": "Options are host metadata."
24
+ },
25
+ "fusion": {
26
+ "elementwise": false,
27
+ "reduction": false,
28
+ "max_inputs": 0,
29
+ "constants": "inline"
30
+ },
31
+ "requires_feature": null,
32
+ "tested": {
33
+ "unit": "builtins::math::optim::optimset::tests"
34
+ },
35
+ "description": "`opts = optimset(name, value, ...)` creates a struct of optimization options. `opts = optimset(old, name, value, ...)` copies an existing options struct and applies overrides.",
36
+ "behaviors": [
37
+ "Option names are case-insensitive for the builtins that consume them.",
38
+ "`TolX`, `TolFun`, `MaxIter`, `MaxFunEvals`, and `Display` are canonicalized when constructed with `optimset`.",
39
+ "Unknown option names are preserved so future solvers can read them."
40
+ ],
41
+ "examples": [
42
+ {
43
+ "description": "Create options for fzero",
44
+ "input": "opts = optimset('TolX', 1e-10, 'Display', 'off');\nx = fzero(@sin, [3 4], opts)",
45
+ "output": "x =\n 3.1416"
46
+ }
47
+ ],
48
+ "links": [
49
+ {
50
+ "label": "fzero",
51
+ "url": "./fzero"
52
+ },
53
+ {
54
+ "label": "fsolve",
55
+ "url": "./fsolve"
56
+ }
57
+ ],
58
+ "source": {
59
+ "label": "`crates/runmat-runtime/src/builtins/math/optim/optimset.rs`",
60
+ "url": "https://github.com/runmat-org/runmat/blob/main/crates/runmat-runtime/src/builtins/math/optim/optimset.rs"
61
+ },
62
+ "key": "optimset",
63
+ "slug": "optimset",
64
+ "aliases": [],
65
+ "categoryPath": [
66
+ "math",
67
+ "optim"
68
+ ]
69
+ };
70
+ export default builtinDoc;
71
+ //# sourceMappingURL=optimset.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"optimset.js","sourceRoot":"","sources":["../../../src/generated/builtins/optimset.ts"],"names":[],"mappings":"AAAA,8CAA8C;AAC9C,uBAAuB;AAIvB,MAAM,UAAU,GAAe;IAC7B,OAAO,EAAE,UAAU;IACnB,UAAU,EAAE,YAAY;IACxB,UAAU,EAAE;QACV,UAAU;QACV,SAAS;QACT,MAAM;QACN,QAAQ;QACR,SAAS;QACT,SAAS;KACV;IACD,SAAS,EAAE,0EAA0E;IACrF,YAAY,EAAE;QACZ,yDAAyD;KAC1D;IACD,aAAa,EAAE;QACb,aAAa,EAAE,KAAK;QACpB,WAAW,EAAE,KAAK;QAClB,YAAY,EAAE,EAAE;QAChB,cAAc,EAAE,MAAM;QACtB,OAAO,EAAE,4BAA4B;KACtC;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,wCAAwC;KACjD;IACD,aAAa,EAAE,iLAAiL;IAChM,WAAW,EAAE;QACX,uEAAuE;QACvE,+GAA+G;QAC/G,qEAAqE;KACtE;IACD,UAAU,EAAE;QACV;YACE,aAAa,EAAE,0BAA0B;YACzC,OAAO,EAAE,iFAAiF;YAC1F,QAAQ,EAAE,iBAAiB;SAC5B;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,6DAA6D;QACtE,KAAK,EAAE,0GAA0G;KAClH;IACD,KAAK,EAAE,UAAU;IACjB,MAAM,EAAE,UAAU;IAClB,SAAS,EAAE,EAAE;IACb,cAAc,EAAE;QACd,MAAM;QACN,OAAO;KACR;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=pchip.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"pchip.d.ts","sourceRoot":"","sources":["../../../src/generated/builtins/pchip.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAEpD,QAAA,MAAM,UAAU,EAAE,UAyEjB,CAAC;AAEF,eAAe,UAAU,CAAC"}
@@ -0,0 +1,78 @@
1
+ // @generated by scripts/generate-builtins.cjs
2
+ // Do not edit by hand.
3
+ const builtinDoc = {
4
+ "title": "pchip",
5
+ "category": "math/interpolation",
6
+ "keywords": [
7
+ "pchip",
8
+ "piecewise cubic hermite",
9
+ "shape preserving",
10
+ "interpolation"
11
+ ],
12
+ "summary": "Shape-preserving piecewise cubic Hermite interpolation.",
13
+ "gpu_support": {
14
+ "elementwise": false,
15
+ "reduction": false,
16
+ "precisions": [
17
+ "f32",
18
+ "f64"
19
+ ],
20
+ "broadcasting": "matlab",
21
+ "notes": "GPU inputs are gathered to the CPU reference implementation."
22
+ },
23
+ "fusion": {
24
+ "elementwise": false,
25
+ "reduction": false,
26
+ "max_inputs": 3,
27
+ "constants": "inline"
28
+ },
29
+ "description": "`pchip(x, y)` builds a shape-preserving cubic Hermite interpolant. `pchip(x, y, xq)` evaluates it at query points.",
30
+ "behaviors": [
31
+ "Returns the same pp-structure shape used by `spline`.",
32
+ "Uses monotonicity-preserving slopes so monotone data does not overshoot between samples.",
33
+ "Dense real numeric inputs are supported in the initial implementation."
34
+ ],
35
+ "examples": [
36
+ {
37
+ "description": "Shape-preserving interpolation",
38
+ "input": "x = [1 2 3];\ny = [1 4 9];\nyq = pchip(x, y, [1.5 2.5])",
39
+ "output": "yq = [2.21875 6.21875]"
40
+ }
41
+ ],
42
+ "syntax": {
43
+ "example": {
44
+ "description": "Syntax",
45
+ "input": "pp = pchip(x, y)\nyq = pchip(x, y, xq)"
46
+ },
47
+ "points": [
48
+ "`x` is a strictly increasing vector of sample locations.",
49
+ "`y` contains the sampled values to interpolate.",
50
+ "`pchip(x, y)` returns a piecewise-polynomial structure compatible with `ppval`.",
51
+ "`pchip(x, y, xq)` evaluates the shape-preserving interpolant directly at query points.",
52
+ "PCHIP is usually preferred over spline interpolation when monotonicity and avoiding overshoot matter."
53
+ ]
54
+ },
55
+ "links": [
56
+ {
57
+ "label": "interp1",
58
+ "url": "./interp1"
59
+ },
60
+ {
61
+ "label": "ppval",
62
+ "url": "./ppval"
63
+ }
64
+ ],
65
+ "source": {
66
+ "label": "Open an issue",
67
+ "url": "https://github.com/runmat-org/runmat/issues/new/choose"
68
+ },
69
+ "key": "pchip",
70
+ "slug": "pchip",
71
+ "aliases": [],
72
+ "categoryPath": [
73
+ "math",
74
+ "interpolation"
75
+ ]
76
+ };
77
+ export default builtinDoc;
78
+ //# sourceMappingURL=pchip.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"pchip.js","sourceRoot":"","sources":["../../../src/generated/builtins/pchip.ts"],"names":[],"mappings":"AAAA,8CAA8C;AAC9C,uBAAuB;AAIvB,MAAM,UAAU,GAAe;IAC7B,OAAO,EAAE,OAAO;IAChB,UAAU,EAAE,oBAAoB;IAChC,UAAU,EAAE;QACV,OAAO;QACP,yBAAyB;QACzB,kBAAkB;QAClB,eAAe;KAChB;IACD,SAAS,EAAE,yDAAyD;IACpE,aAAa,EAAE;QACb,aAAa,EAAE,KAAK;QACpB,WAAW,EAAE,KAAK;QAClB,YAAY,EAAE;YACZ,KAAK;YACL,KAAK;SACN;QACD,cAAc,EAAE,QAAQ;QACxB,OAAO,EAAE,8DAA8D;KACxE;IACD,QAAQ,EAAE;QACR,aAAa,EAAE,KAAK;QACpB,WAAW,EAAE,KAAK;QAClB,YAAY,EAAE,CAAC;QACf,WAAW,EAAE,QAAQ;KACtB;IACD,aAAa,EAAE,oHAAoH;IACnI,WAAW,EAAE;QACX,uDAAuD;QACvD,0FAA0F;QAC1F,wEAAwE;KACzE;IACD,UAAU,EAAE;QACV;YACE,aAAa,EAAE,gCAAgC;YAC/C,OAAO,EAAE,yDAAyD;YAClE,QAAQ,EAAE,wBAAwB;SACnC;KACF;IACD,QAAQ,EAAE;QACR,SAAS,EAAE;YACT,aAAa,EAAE,QAAQ;YACvB,OAAO,EAAE,wCAAwC;SAClD;QACD,QAAQ,EAAE;YACR,0DAA0D;YAC1D,iDAAiD;YACjD,iFAAiF;YACjF,wFAAwF;YACxF,uGAAuG;SACxG;KACF;IACD,OAAO,EAAE;QACP;YACE,OAAO,EAAE,SAAS;YAClB,KAAK,EAAE,WAAW;SACnB;QACD;YACE,OAAO,EAAE,OAAO;YAChB,KAAK,EAAE,SAAS;SACjB;KACF;IACD,QAAQ,EAAE;QACR,OAAO,EAAE,eAAe;QACxB,KAAK,EAAE,wDAAwD;KAChE;IACD,KAAK,EAAE,OAAO;IACd,MAAM,EAAE,OAAO;IACf,SAAS,EAAE,EAAE;IACb,cAAc,EAAE;QACd,MAAM;QACN,eAAe;KAChB;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=ppval.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ppval.d.ts","sourceRoot":"","sources":["../../../src/generated/builtins/ppval.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAEpD,QAAA,MAAM,UAAU,EAAE,UAwEjB,CAAC;AAEF,eAAe,UAAU,CAAC"}