runmat 0.4.5 → 0.4.6-dev.1
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.
- package/artifacts/stdlib.snapshot +0 -0
- package/dist/generated/builtin-examples-catalog.d.ts.map +1 -1
- package/dist/generated/builtin-examples-catalog.js +1 -1
- package/dist/generated/builtin-examples-catalog.js.map +1 -1
- package/dist/generated/builtins/exprnd.d.ts +4 -0
- package/dist/generated/builtins/exprnd.d.ts.map +1 -0
- package/dist/generated/builtins/exprnd.js +125 -0
- package/dist/generated/builtins/exprnd.js.map +1 -0
- package/dist/generated/builtins/normrnd.d.ts +4 -0
- package/dist/generated/builtins/normrnd.d.ts.map +1 -0
- package/dist/generated/builtins/normrnd.js +125 -0
- package/dist/generated/builtins/normrnd.js.map +1 -0
- package/dist/generated/builtins/ode15s.d.ts +4 -0
- package/dist/generated/builtins/ode15s.d.ts.map +1 -0
- package/dist/generated/builtins/ode15s.js +71 -0
- package/dist/generated/builtins/ode15s.js.map +1 -0
- package/dist/generated/builtins/ode23.d.ts +4 -0
- package/dist/generated/builtins/ode23.d.ts.map +1 -0
- package/dist/generated/builtins/ode23.js +71 -0
- package/dist/generated/builtins/ode23.js.map +1 -0
- package/dist/generated/builtins/ode45.d.ts +4 -0
- package/dist/generated/builtins/ode45.d.ts.map +1 -0
- package/dist/generated/builtins/ode45.js +71 -0
- package/dist/generated/builtins/ode45.js.map +1 -0
- package/dist/generated/builtins/unifrnd.d.ts +4 -0
- package/dist/generated/builtins/unifrnd.d.ts.map +1 -0
- package/dist/generated/builtins/unifrnd.js +124 -0
- package/dist/generated/builtins/unifrnd.js.map +1 -0
- package/dist/generated/builtins-manifest.d.ts.map +1 -1
- package/dist/generated/builtins-manifest.js +129 -0
- package/dist/generated/builtins-manifest.js.map +1 -1
- package/dist/lsp/runmat_lsp.d.ts +2 -2
- package/dist/lsp/runmat_lsp.js +4 -4
- package/dist/lsp/runmat_lsp_bg.wasm +0 -0
- package/dist/lsp/runmat_lsp_bg.wasm.d.ts +2 -2
- package/dist/pkg-web/runmat_wasm_web.d.ts +4 -4
- package/dist/pkg-web/runmat_wasm_web.js +10 -10
- package/dist/pkg-web/runmat_wasm_web_bg.wasm +0 -0
- package/dist/pkg-web/runmat_wasm_web_bg.wasm.d.ts +4 -4
- package/dist/runtime/stdlib.snapshot +0 -0
- package/package.json +1 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"exprnd.d.ts","sourceRoot":"","sources":["../../../src/generated/builtins/exprnd.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAEpD,QAAA,MAAM,UAAU,EAAE,UAwHjB,CAAC;AAEF,eAAe,UAAU,CAAC"}
|
|
@@ -0,0 +1,125 @@
|
|
|
1
|
+
// @generated by scripts/generate-builtins.cjs
|
|
2
|
+
// Do not edit by hand.
|
|
3
|
+
const builtinDoc = {
|
|
4
|
+
"title": "exprnd",
|
|
5
|
+
"category": "stats/random",
|
|
6
|
+
"keywords": [
|
|
7
|
+
"exprnd",
|
|
8
|
+
"exponential",
|
|
9
|
+
"random",
|
|
10
|
+
"distribution",
|
|
11
|
+
"statistics",
|
|
12
|
+
"queueing",
|
|
13
|
+
"poisson"
|
|
14
|
+
],
|
|
15
|
+
"summary": "Exponentially-distributed random numbers with mean mu.",
|
|
16
|
+
"references": [],
|
|
17
|
+
"gpu_support": {
|
|
18
|
+
"elementwise": false,
|
|
19
|
+
"reduction": false,
|
|
20
|
+
"precisions": [
|
|
21
|
+
"f64"
|
|
22
|
+
],
|
|
23
|
+
"broadcasting": "none",
|
|
24
|
+
"notes": "Uses the provider random_exponential hook (Philox CSPRNG + inverse-transform sampling) when an F64-precision provider is active. F32 providers and providers without the hook fall back to host generation."
|
|
25
|
+
},
|
|
26
|
+
"fusion": {
|
|
27
|
+
"elementwise": false,
|
|
28
|
+
"reduction": false,
|
|
29
|
+
"max_inputs": 0,
|
|
30
|
+
"constants": "none"
|
|
31
|
+
},
|
|
32
|
+
"requires_feature": null,
|
|
33
|
+
"tested": {
|
|
34
|
+
"unit": "builtins::stats::random::exprnd::tests",
|
|
35
|
+
"integration": null
|
|
36
|
+
},
|
|
37
|
+
"description": "`exprnd` draws pseudorandom samples from the exponential distribution with mean `mu` (equivalently, rate parameter `lambda = 1/mu`). It is part of the **Statistics and Machine Learning Toolbox** family in MATLAB and Octave's `statistics` package. RunMat implements it via inverse transform sampling: `r = -mu * ln(U)` where `U ~ Uniform(0, 1)`.",
|
|
38
|
+
"behaviors": [
|
|
39
|
+
"`exprnd(mu)` returns a scalar double drawn from `Exp(mu)`.",
|
|
40
|
+
"`exprnd(mu, n)` returns an `n × n` matrix of samples.",
|
|
41
|
+
"`exprnd(mu, m, n)` returns an `m × n` matrix of samples.",
|
|
42
|
+
"`exprnd(mu, sz)` accepts a size vector and returns an array with shape `sz`.",
|
|
43
|
+
"`mu` must be a positive scalar; `exprnd` errors if `mu <= 0`.",
|
|
44
|
+
"All outputs are double precision regardless of input type."
|
|
45
|
+
],
|
|
46
|
+
"examples": [
|
|
47
|
+
{
|
|
48
|
+
"description": "Single sample from Exp(2)",
|
|
49
|
+
"input": "rng(0);\nr = exprnd(2)"
|
|
50
|
+
},
|
|
51
|
+
{
|
|
52
|
+
"description": "Matrix of arrival times for a Poisson process (lambda = 2)",
|
|
53
|
+
"input": "rng(0);\nlambda = 2;\nintervals = exprnd(1/lambda, 1, 5)"
|
|
54
|
+
},
|
|
55
|
+
{
|
|
56
|
+
"description": "M/M/1 queueing simulation fragment",
|
|
57
|
+
"input": "rng(0);\nlambda = 2; mu_svc = 2.5; Tsim = 100;\nt = 0; arrivals = 0;\nwhile t < Tsim\n t = t + exprnd(1/lambda);\n arrivals = arrivals + 1;\nend\narrivals"
|
|
58
|
+
},
|
|
59
|
+
{
|
|
60
|
+
"description": "Specifying dimensions with a size vector",
|
|
61
|
+
"input": "rng(0);\nT = exprnd(1, [2 3])"
|
|
62
|
+
}
|
|
63
|
+
],
|
|
64
|
+
"faqs": [
|
|
65
|
+
{
|
|
66
|
+
"question": "What is the relationship between mu and lambda?",
|
|
67
|
+
"answer": "The exponential distribution can be parameterised by its mean `mu` or its rate `lambda`. They are reciprocals: `mu = 1/lambda`. `exprnd(mu)` is equivalent to `exprnd(1/lambda)`."
|
|
68
|
+
},
|
|
69
|
+
{
|
|
70
|
+
"question": "What is the workaround if exprnd is unavailable?",
|
|
71
|
+
"answer": "`exprnd(mu)` is mathematically equivalent to `-mu * log(rand())`. You can substitute `-log(rand())/lambda` inline until `exprnd` is available."
|
|
72
|
+
},
|
|
73
|
+
{
|
|
74
|
+
"question": "Why must mu be positive?",
|
|
75
|
+
"answer": "A non-positive mean is undefined for the exponential distribution. `exprnd` raises an error if `mu <= 0` to catch common parameter mistakes early."
|
|
76
|
+
},
|
|
77
|
+
{
|
|
78
|
+
"question": "What use cases does exprnd support?",
|
|
79
|
+
"answer": "Common uses include queueing theory (M/M/1, M/G/1 inter-arrival and service times), reliability engineering (time-to-failure models), Poisson process simulation, and Monte Carlo sampling."
|
|
80
|
+
},
|
|
81
|
+
{
|
|
82
|
+
"question": "Does exprnd fuse with other operations?",
|
|
83
|
+
"answer": "No. Random generation is excluded from fusion planning to preserve statistical properties."
|
|
84
|
+
},
|
|
85
|
+
{
|
|
86
|
+
"question": "How do I control reproducibility?",
|
|
87
|
+
"answer": "Use `rng` before calling `exprnd` to seed the global generator."
|
|
88
|
+
}
|
|
89
|
+
],
|
|
90
|
+
"links": [
|
|
91
|
+
{
|
|
92
|
+
"label": "normrnd",
|
|
93
|
+
"url": "./normrnd"
|
|
94
|
+
},
|
|
95
|
+
{
|
|
96
|
+
"label": "unifrnd",
|
|
97
|
+
"url": "./unifrnd"
|
|
98
|
+
},
|
|
99
|
+
{
|
|
100
|
+
"label": "rand",
|
|
101
|
+
"url": "./rand"
|
|
102
|
+
},
|
|
103
|
+
{
|
|
104
|
+
"label": "randn",
|
|
105
|
+
"url": "./randn"
|
|
106
|
+
},
|
|
107
|
+
{
|
|
108
|
+
"label": "rng",
|
|
109
|
+
"url": "./rng"
|
|
110
|
+
}
|
|
111
|
+
],
|
|
112
|
+
"source": {
|
|
113
|
+
"label": "`crates/runmat-runtime/src/builtins/stats/random/exprnd.rs`",
|
|
114
|
+
"url": "https://github.com/runmat-org/runmat/blob/main/crates/runmat-runtime/src/builtins/stats/random/exprnd.rs"
|
|
115
|
+
},
|
|
116
|
+
"key": "exprnd",
|
|
117
|
+
"slug": "exprnd",
|
|
118
|
+
"aliases": [],
|
|
119
|
+
"categoryPath": [
|
|
120
|
+
"stats",
|
|
121
|
+
"random"
|
|
122
|
+
]
|
|
123
|
+
};
|
|
124
|
+
export default builtinDoc;
|
|
125
|
+
//# sourceMappingURL=exprnd.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"exprnd.js","sourceRoot":"","sources":["../../../src/generated/builtins/exprnd.ts"],"names":[],"mappings":"AAAA,8CAA8C;AAC9C,uBAAuB;AAIvB,MAAM,UAAU,GAAe;IAC7B,OAAO,EAAE,QAAQ;IACjB,UAAU,EAAE,cAAc;IAC1B,UAAU,EAAE;QACV,QAAQ;QACR,aAAa;QACb,QAAQ;QACR,cAAc;QACd,YAAY;QACZ,UAAU;QACV,SAAS;KACV;IACD,SAAS,EAAE,wDAAwD;IACnE,YAAY,EAAE,EAAE;IAChB,aAAa,EAAE;QACb,aAAa,EAAE,KAAK;QACpB,WAAW,EAAE,KAAK;QAClB,YAAY,EAAE;YACZ,KAAK;SACN;QACD,cAAc,EAAE,MAAM;QACtB,OAAO,EAAE,6MAA6M;KACvN;IACD,QAAQ,EAAE;QACR,aAAa,EAAE,KAAK;QACpB,WAAW,EAAE,KAAK;QAClB,YAAY,EAAE,CAAC;QACf,WAAW,EAAE,MAAM;KACpB;IACD,kBAAkB,EAAE,IAAI;IACxB,QAAQ,EAAE;QACR,MAAM,EAAE,wCAAwC;QAChD,aAAa,EAAE,IAAI;KACp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E,QAAQ;IACf,MAAM,EAAE,QAAQ;IAChB,SAAS,EAAE,EAAE;IACb,cAAc,EAAE;QACd,OAAO;QACP,QAAQ;KACT;CACF,CAAC;AAEF,eAAe,UAAU,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"normrnd.d.ts","sourceRoot":"","sources":["../../../src/generated/builtins/normrnd.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAEpD,QAAA,MAAM,UAAU,EAAE,UAwHjB,CAAC;AAEF,eAAe,UAAU,CAAC"}
|
|
@@ -0,0 +1,125 @@
|
|
|
1
|
+
// @generated by scripts/generate-builtins.cjs
|
|
2
|
+
// Do not edit by hand.
|
|
3
|
+
const builtinDoc = {
|
|
4
|
+
"title": "normrnd",
|
|
5
|
+
"category": "stats/random",
|
|
6
|
+
"keywords": [
|
|
7
|
+
"normrnd",
|
|
8
|
+
"normal",
|
|
9
|
+
"gaussian",
|
|
10
|
+
"random",
|
|
11
|
+
"distribution",
|
|
12
|
+
"statistics"
|
|
13
|
+
],
|
|
14
|
+
"summary": "Normally-distributed random numbers with mean mu and standard deviation sigma.",
|
|
15
|
+
"references": [],
|
|
16
|
+
"gpu_support": {
|
|
17
|
+
"elementwise": false,
|
|
18
|
+
"reduction": false,
|
|
19
|
+
"precisions": [
|
|
20
|
+
"f64"
|
|
21
|
+
],
|
|
22
|
+
"broadcasting": "none",
|
|
23
|
+
"notes": "Uses the provider random_normrnd hook (Philox CSPRNG + Box-Muller sampling) when an F64-precision provider is active. F32 providers and providers without the hook fall back to host generation."
|
|
24
|
+
},
|
|
25
|
+
"fusion": {
|
|
26
|
+
"elementwise": false,
|
|
27
|
+
"reduction": false,
|
|
28
|
+
"max_inputs": 0,
|
|
29
|
+
"constants": "none"
|
|
30
|
+
},
|
|
31
|
+
"requires_feature": null,
|
|
32
|
+
"tested": {
|
|
33
|
+
"unit": "builtins::stats::random::normrnd::tests",
|
|
34
|
+
"integration": null
|
|
35
|
+
},
|
|
36
|
+
"description": "`normrnd` draws pseudorandom samples from the normal distribution with mean `mu` and standard deviation `sigma`. It is part of the **Statistics and Machine Learning Toolbox** family in MATLAB and Octave's `statistics` package. RunMat implements it by generating standard normal variates and scaling them as `r = mu + sigma * Z` where `Z ~ N(0, 1)`.",
|
|
37
|
+
"behaviors": [
|
|
38
|
+
"`normrnd(mu, sigma)` returns a scalar double drawn from `N(mu, sigma^2)`.",
|
|
39
|
+
"`normrnd(mu, sigma, n)` returns an `n × n` matrix of samples.",
|
|
40
|
+
"`normrnd(mu, sigma, m, n)` returns an `m × n` matrix of samples.",
|
|
41
|
+
"`normrnd(mu, sigma, sz)` accepts a size vector and returns an array with shape `sz`.",
|
|
42
|
+
"`mu` and `sigma` must be scalar numeric values.",
|
|
43
|
+
"`sigma` must be non-negative; `normrnd` errors if `sigma < 0`.",
|
|
44
|
+
"All outputs are double precision regardless of input type."
|
|
45
|
+
],
|
|
46
|
+
"examples": [
|
|
47
|
+
{
|
|
48
|
+
"description": "Single sample from N(0, 1)",
|
|
49
|
+
"input": "rng(0);\nr = normrnd(0, 1)"
|
|
50
|
+
},
|
|
51
|
+
{
|
|
52
|
+
"description": "Matrix of Gaussian noise with mean 10 and standard deviation 2",
|
|
53
|
+
"input": "rng(0);\nX = normrnd(10, 2, 2, 3)"
|
|
54
|
+
},
|
|
55
|
+
{
|
|
56
|
+
"description": "Simulating normally-distributed measurement errors",
|
|
57
|
+
"input": "rng(0);\ntrueValue = 100;\nsigma = 0.5;\nmeasurements = trueValue + normrnd(0, sigma, 1, 5)"
|
|
58
|
+
},
|
|
59
|
+
{
|
|
60
|
+
"description": "Specifying dimensions with a size vector",
|
|
61
|
+
"input": "rng(0);\nT = normrnd(5, 1.5, [2 3])"
|
|
62
|
+
}
|
|
63
|
+
],
|
|
64
|
+
"faqs": [
|
|
65
|
+
{
|
|
66
|
+
"question": "What do mu and sigma mean?",
|
|
67
|
+
"answer": "`mu` is the distribution mean and `sigma` is the standard deviation. The variance is `sigma^2`, so `normrnd(mu, sigma)` draws from `N(mu, sigma^2)`."
|
|
68
|
+
},
|
|
69
|
+
{
|
|
70
|
+
"question": "What is the workaround if normrnd is unavailable?",
|
|
71
|
+
"answer": "`normrnd(mu, sigma)` is mathematically equivalent to `mu + sigma * randn()`. For arrays, use `mu + sigma * randn(sz)` with the same requested size."
|
|
72
|
+
},
|
|
73
|
+
{
|
|
74
|
+
"question": "Can sigma be zero?",
|
|
75
|
+
"answer": "Yes. `sigma = 0` is allowed and returns deterministic samples equal to `mu`. Negative standard deviations are undefined and raise an error."
|
|
76
|
+
},
|
|
77
|
+
{
|
|
78
|
+
"question": "What use cases does normrnd support?",
|
|
79
|
+
"answer": "Common uses include Gaussian noise generation, measurement error simulation, confidence interval experiments, Monte Carlo sampling, and normally-distributed model residuals."
|
|
80
|
+
},
|
|
81
|
+
{
|
|
82
|
+
"question": "Does normrnd fuse with other operations?",
|
|
83
|
+
"answer": "No. Random generation is excluded from fusion planning to preserve statistical properties."
|
|
84
|
+
},
|
|
85
|
+
{
|
|
86
|
+
"question": "How do I control reproducibility?",
|
|
87
|
+
"answer": "Use `rng` before calling `normrnd` to seed the global generator."
|
|
88
|
+
}
|
|
89
|
+
],
|
|
90
|
+
"links": [
|
|
91
|
+
{
|
|
92
|
+
"label": "exprnd",
|
|
93
|
+
"url": "./exprnd"
|
|
94
|
+
},
|
|
95
|
+
{
|
|
96
|
+
"label": "unifrnd",
|
|
97
|
+
"url": "./unifrnd"
|
|
98
|
+
},
|
|
99
|
+
{
|
|
100
|
+
"label": "rand",
|
|
101
|
+
"url": "./rand"
|
|
102
|
+
},
|
|
103
|
+
{
|
|
104
|
+
"label": "randn",
|
|
105
|
+
"url": "./randn"
|
|
106
|
+
},
|
|
107
|
+
{
|
|
108
|
+
"label": "rng",
|
|
109
|
+
"url": "./rng"
|
|
110
|
+
}
|
|
111
|
+
],
|
|
112
|
+
"source": {
|
|
113
|
+
"label": "`crates/runmat-runtime/src/builtins/stats/random/normrnd.rs`",
|
|
114
|
+
"url": "https://github.com/runmat-org/runmat/blob/main/crates/runmat-runtime/src/builtins/stats/random/normrnd.rs"
|
|
115
|
+
},
|
|
116
|
+
"key": "normrnd",
|
|
117
|
+
"slug": "normrnd",
|
|
118
|
+
"aliases": [],
|
|
119
|
+
"categoryPath": [
|
|
120
|
+
"stats",
|
|
121
|
+
"random"
|
|
122
|
+
]
|
|
123
|
+
};
|
|
124
|
+
export default builtinDoc;
|
|
125
|
+
//# sourceMappingURL=normrnd.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"normrnd.js","sourceRoot":"","sources":["../../../src/generated/builtins/normrnd.ts"],"names":[],"mappings":"AAAA,8CAA8C;AAC9C,uBAAuB;AAIvB,MAAM,UAAU,GAAe;IAC7B,OAAO,EAAE,SAAS;IAClB,UAAU,EAAE,cAAc;IAC1B,UAAU,EAAE;QACV,SAAS;QACT,QAAQ;QACR,UAAU;QACV,QAAQ;QACR,cAAc;QACd,YAAY;KACb;IACD,SAAS,EAAE,gFAAgF;IAC3F,YAAY,EAAE,EAAE;IAChB,aAAa,EAAE;QACb,aAAa,EAAE,KAAK;QACpB,WAAW,EAAE,KAAK;QAClB,YAAY,EAAE;YACZ,KAAK;SACN;QACD,cAAc,EAAE,MAAM;QACtB,OAAO,EAAE,kMAAkM;KAC5M;IACD,QAAQ,EAAE;QACR,aAAa,EAAE,KAAK;QACpB,WAAW,EAAE,KAAK;QAClB,YAAY,EAAE,CAAC;QACf,WAAW,EAAE,MAAM;KACpB;IACD,kBAAkB,EAAE,IAAI;IACxB,QAAQ,EAAE;QACR,MAAM,EAAE,yCAAyC;QACjD,aAAa,EAAE,IAAI;KACpB;IACD,aAAa,EAAE,8VAA8V;IAC7W,WAAW,EAAE;QACX,2EAA2E;QAC3E,+DAA+D;QAC/D,kEAAkE;QAClE,sFAAsF;QACtF,iDAAiD;QACjD,gEAAgE;QAChE,4DAA4D;KAC7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|
@@ -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 @@
|
|
|
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 @@
|
|
|
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"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"unifrnd.d.ts","sourceRoot":"","sources":["../../../src/generated/builtins/unifrnd.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAEpD,QAAA,MAAM,UAAU,EAAE,UAuHjB,CAAC;AAEF,eAAe,UAAU,CAAC"}
|