nexde 0.9.3__tar.gz
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.
- nexde-0.9.3/LICENSE +21 -0
- nexde-0.9.3/PKG-INFO +235 -0
- nexde-0.9.3/README.md +197 -0
- nexde-0.9.3/pyproject.toml +48 -0
- nexde-0.9.3/setup.cfg +4 -0
- nexde-0.9.3/setup.py +12 -0
- nexde-0.9.3/src/nexde/__init__.py +46 -0
- nexde-0.9.3/src/nexde/__main__.py +3 -0
- nexde-0.9.3/src/nexde/_checkpoint.py +88 -0
- nexde-0.9.3/src/nexde/_compat.py +16 -0
- nexde-0.9.3/src/nexde/_cpu_jets.cpp +1035 -0
- nexde-0.9.3/src/nexde/_dgm.py +87 -0
- nexde-0.9.3/src/nexde/_fourier.py +341 -0
- nexde-0.9.3/src/nexde/_fractional_affine.py +140 -0
- nexde-0.9.3/src/nexde/_gpu_jets.py +210 -0
- nexde-0.9.3/src/nexde/_gpu_mesh.py +92 -0
- nexde-0.9.3/src/nexde/_lbfgs.py +138 -0
- nexde-0.9.3/src/nexde/_meshgraph.py +397 -0
- nexde-0.9.3/src/nexde/_multifidelity.py +123 -0
- nexde-0.9.3/src/nexde/_nuts.py +100 -0
- nexde-0.9.3/src/nexde/_operator.py +216 -0
- nexde-0.9.3/src/nexde/_repeat_worker.py +78 -0
- nexde-0.9.3/src/nexde/_version.py +1 -0
- nexde-0.9.3/src/nexde/adaptive_quadrature.py +125 -0
- nexde-0.9.3/src/nexde/backend.py +227 -0
- nexde-0.9.3/src/nexde/builders.py +88 -0
- nexde-0.9.3/src/nexde/cli.py +169 -0
- nexde-0.9.3/src/nexde/constraints.py +158 -0
- nexde-0.9.3/src/nexde/data/beam.json +11 -0
- nexde-0.9.3/src/nexde/data/bundle.json +11 -0
- nexde-0.9.3/src/nexde/data/coupled-heat.json +36 -0
- nexde-0.9.3/src/nexde/data/cubature.json +17 -0
- nexde-0.9.3/src/nexde/data/cuda_jets/nexde_cuda_forward_1.ptx +107 -0
- nexde-0.9.3/src/nexde/data/cuda_jets/nexde_cuda_forward_1_1_1.ptx +119 -0
- nexde-0.9.3/src/nexde/data/cuda_jets/nexde_cuda_forward_2.ptx +114 -0
- nexde-0.9.3/src/nexde/data/cuda_jets/nexde_cuda_forward_2_1_1.ptx +126 -0
- nexde-0.9.3/src/nexde/data/cuda_jets/nexde_cuda_forward_2_1_1_1_2.ptx +137 -0
- nexde-0.9.3/src/nexde/data/cuda_jets/nexde_cuda_forward_2_1_1_1_2_2_2.ptx +147 -0
- nexde-0.9.3/src/nexde/data/cuda_jets/nexde_cuda_forward_2_1_1_2_2.ptx +136 -0
- nexde-0.9.3/src/nexde/data/cuda_jets/nexde_cuda_forward_2_1_2.ptx +127 -0
- nexde-0.9.3/src/nexde/data/cuda_jets/nexde_cuda_forward_2_1_2_2_2.ptx +137 -0
- nexde-0.9.3/src/nexde/data/cuda_jets/nexde_cuda_forward_2_2_2.ptx +126 -0
- nexde-0.9.3/src/nexde/data/cuda_jets/nexde_cuda_forward_3_1_1_2_2_3_3.ptx +153 -0
- nexde-0.9.3/src/nexde/data/cuda_jets/nexde_cuda_forward_univariate_3.ptx +132 -0
- nexde-0.9.3/src/nexde/data/cuda_jets/nexde_cuda_forward_univariate_4.ptx +152 -0
- nexde-0.9.3/src/nexde/data/cuda_jets/nexde_cuda_pullback_1.ptx +75 -0
- nexde-0.9.3/src/nexde/data/cuda_jets/nexde_cuda_pullback_1_1_1.ptx +93 -0
- nexde-0.9.3/src/nexde/data/cuda_jets/nexde_cuda_pullback_2.ptx +86 -0
- nexde-0.9.3/src/nexde/data/cuda_jets/nexde_cuda_pullback_2_1_1.ptx +104 -0
- nexde-0.9.3/src/nexde/data/cuda_jets/nexde_cuda_pullback_2_1_1_1_2.ptx +123 -0
- nexde-0.9.3/src/nexde/data/cuda_jets/nexde_cuda_pullback_2_1_1_1_2_2_2.ptx +140 -0
- nexde-0.9.3/src/nexde/data/cuda_jets/nexde_cuda_pullback_2_1_1_2_2.ptx +121 -0
- nexde-0.9.3/src/nexde/data/cuda_jets/nexde_cuda_pullback_2_1_2.ptx +104 -0
- nexde-0.9.3/src/nexde/data/cuda_jets/nexde_cuda_pullback_2_1_2_2_2.ptx +121 -0
- nexde-0.9.3/src/nexde/data/cuda_jets/nexde_cuda_pullback_2_2_2.ptx +104 -0
- nexde-0.9.3/src/nexde/data/cuda_jets/nexde_cuda_pullback_3_1_1_2_2_3_3.ptx +149 -0
- nexde-0.9.3/src/nexde/data/cuda_jets/nexde_cuda_pullback_univariate_3.ptx +117 -0
- nexde-0.9.3/src/nexde/data/cuda_jets/nexde_cuda_pullback_univariate_4.ptx +155 -0
- nexde-0.9.3/src/nexde/data/dgm.json +13 -0
- nexde-0.9.3/src/nexde/data/disk.json +14 -0
- nexde-0.9.3/src/nexde/data/fokker-planck.json +22 -0
- nexde-0.9.3/src/nexde/data/hard-periodic.json +10 -0
- nexde-0.9.3/src/nexde/data/heat.json +34 -0
- nexde-0.9.3/src/nexde/data/interface.json +19 -0
- nexde-0.9.3/src/nexde/data/inverse-field.json +15 -0
- nexde-0.9.3/src/nexde/data/inverse.json +16 -0
- nexde-0.9.3/src/nexde/data/mesh.json +15 -0
- nexde-0.9.3/src/nexde/data/moving.json +18 -0
- nexde-0.9.3/src/nexde/data/multifidelity.json +16 -0
- nexde-0.9.3/src/nexde/data/operator.json +12 -0
- nexde-0.9.3/src/nexde/data/periodic.json +13 -0
- nexde-0.9.3/src/nexde/data/poisson.json +39 -0
- nexde-0.9.3/src/nexde/data/schema.json +545 -0
- nexde-0.9.3/src/nexde/data/spherical.json +15 -0
- nexde-0.9.3/src/nexde/data/stochastic-moments.json +18 -0
- nexde-0.9.3/src/nexde/data/stochastic.json +9 -0
- nexde-0.9.3/src/nexde/density.py +121 -0
- nexde-0.9.3/src/nexde/expression.py +488 -0
- nexde-0.9.3/src/nexde/formulation.py +110 -0
- nexde-0.9.3/src/nexde/fourier.py +319 -0
- nexde-0.9.3/src/nexde/geometry.py +407 -0
- nexde-0.9.3/src/nexde/jets.py +387 -0
- nexde-0.9.3/src/nexde/losses.py +56 -0
- nexde-0.9.3/src/nexde/mcp_server.py +92 -0
- nexde-0.9.3/src/nexde/mesh.py +253 -0
- nexde-0.9.3/src/nexde/mesh_operator.py +300 -0
- nexde-0.9.3/src/nexde/nonlocal_ops.py +256 -0
- nexde-0.9.3/src/nexde/posterior.py +295 -0
- nexde-0.9.3/src/nexde/prediction.py +47 -0
- nexde-0.9.3/src/nexde/problem.py +1228 -0
- nexde-0.9.3/src/nexde/py.typed +0 -0
- nexde-0.9.3/src/nexde/repeats.py +232 -0
- nexde-0.9.3/src/nexde/sampling.py +452 -0
- nexde-0.9.3/src/nexde/solver.py +1560 -0
- nexde-0.9.3/src/nexde/stochastic.py +322 -0
- nexde-0.9.3/src/nexde/tooling.py +302 -0
- nexde-0.9.3/src/nexde.egg-info/PKG-INFO +235 -0
- nexde-0.9.3/src/nexde.egg-info/SOURCES.txt +134 -0
- nexde-0.9.3/src/nexde.egg-info/dependency_links.txt +1 -0
- nexde-0.9.3/src/nexde.egg-info/entry_points.txt +3 -0
- nexde-0.9.3/src/nexde.egg-info/requires.txt +41 -0
- nexde-0.9.3/src/nexde.egg-info/top_level.txt +3 -0
- nexde-0.9.3/src/pinnfit/__init__.py +8 -0
- nexde-0.9.3/src/pinnfit/__main__.py +3 -0
- nexde-0.9.3/src/pinnfit/cli.py +6 -0
- nexde-0.9.3/src/pinnrun/__init__.py +8 -0
- nexde-0.9.3/src/pinnrun/__main__.py +3 -0
- nexde-0.9.3/src/pinnrun/cli.py +6 -0
- nexde-0.9.3/tests/test_adaptive_quadrature.py +112 -0
- nexde-0.9.3/tests/test_composable_solver.py +93 -0
- nexde-0.9.3/tests/test_cuda_benchmark.py +40 -0
- nexde-0.9.3/tests/test_cuda_xla_scan.py +37 -0
- nexde-0.9.3/tests/test_dgm.py +111 -0
- nexde-0.9.3/tests/test_examples.py +121 -0
- nexde-0.9.3/tests/test_extended_solver.py +135 -0
- nexde-0.9.3/tests/test_fokker_planck.py +115 -0
- nexde-0.9.3/tests/test_fourier_operator.py +181 -0
- nexde-0.9.3/tests/test_fractional_affine.py +96 -0
- nexde-0.9.3/tests/test_fractional_time.py +32 -0
- nexde-0.9.3/tests/test_geometry_and_objectives.py +274 -0
- nexde-0.9.3/tests/test_gradient_weighting.py +150 -0
- nexde-0.9.3/tests/test_matched_benchmark.py +54 -0
- nexde-0.9.3/tests/test_mesh_operator.py +387 -0
- nexde-0.9.3/tests/test_mlx_submission.py +48 -0
- nexde-0.9.3/tests/test_multifidelity.py +197 -0
- nexde-0.9.3/tests/test_operator.py +184 -0
- nexde-0.9.3/tests/test_posterior.py +173 -0
- nexde-0.9.3/tests/test_public_tools.py +210 -0
- nexde-0.9.3/tests/test_quadrature_fields.py +56 -0
- nexde-0.9.3/tests/test_repeats.py +89 -0
- nexde-0.9.3/tests/test_sampling.py +102 -0
- nexde-0.9.3/tests/test_solver.py +641 -0
- nexde-0.9.3/tests/test_stochastic.py +106 -0
- nexde-0.9.3/tests/test_stochastic_moments.py +111 -0
- nexde-0.9.3/tests/test_warm_start.py +79 -0
- nexde-0.9.3/tests/test_workflows.py +291 -0
nexde-0.9.3/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Lakshay Chawla and NeXDE contributors
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
nexde-0.9.3/PKG-INFO
ADDED
|
@@ -0,0 +1,235 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: nexde
|
|
3
|
+
Version: 0.9.3
|
|
4
|
+
Summary: NeXDE physics-informed neural solvers for differential equations
|
|
5
|
+
License-Expression: MIT
|
|
6
|
+
Project-URL: Homepage, https://github.com/Lakshay-13/NeXDE
|
|
7
|
+
Project-URL: Source, https://github.com/Lakshay-13/NeXDE
|
|
8
|
+
Project-URL: Issues, https://github.com/Lakshay-13/NeXDE/issues
|
|
9
|
+
Project-URL: Documentation, https://github.com/Lakshay-13/NeXDE/blob/main/docs/python.md
|
|
10
|
+
Project-URL: Changelog, https://github.com/Lakshay-13/NeXDE/blob/main/CHANGELOG.md
|
|
11
|
+
Requires-Python: >=3.10
|
|
12
|
+
Description-Content-Type: text/markdown
|
|
13
|
+
License-File: LICENSE
|
|
14
|
+
Requires-Dist: numpy>=1.26
|
|
15
|
+
Requires-Dist: cloudpickle>=3.1
|
|
16
|
+
Provides-Extra: metal
|
|
17
|
+
Requires-Dist: mlx>=0.27; (sys_platform == "darwin" and platform_machine == "arm64") and extra == "metal"
|
|
18
|
+
Provides-Extra: cuda12
|
|
19
|
+
Requires-Dist: mlx[cuda12]>=0.32.5; sys_platform == "linux" and extra == "cuda12"
|
|
20
|
+
Provides-Extra: cuda13
|
|
21
|
+
Requires-Dist: mlx[cuda13]>=0.32.5; sys_platform == "linux" and extra == "cuda13"
|
|
22
|
+
Provides-Extra: torch
|
|
23
|
+
Requires-Dist: torch>=2.4; extra == "torch"
|
|
24
|
+
Provides-Extra: xla
|
|
25
|
+
Requires-Dist: jax>=0.4.38; extra == "xla"
|
|
26
|
+
Provides-Extra: xla-cuda12
|
|
27
|
+
Requires-Dist: jax[cuda12]>=0.4.38; sys_platform == "linux" and extra == "xla-cuda12"
|
|
28
|
+
Provides-Extra: ray
|
|
29
|
+
Requires-Dist: ray>=2.43; extra == "ray"
|
|
30
|
+
Provides-Extra: qmc
|
|
31
|
+
Requires-Dist: scipy>=1.15; extra == "qmc"
|
|
32
|
+
Provides-Extra: mcp
|
|
33
|
+
Requires-Dist: mcp<2,>=1.26; extra == "mcp"
|
|
34
|
+
Provides-Extra: test
|
|
35
|
+
Requires-Dist: pytest>=8; extra == "test"
|
|
36
|
+
Requires-Dist: jsonschema>=4.23; extra == "test"
|
|
37
|
+
Dynamic: license-file
|
|
38
|
+
|
|
39
|
+
# NeXDE
|
|
40
|
+
|
|
41
|
+

|
|
42
|
+
|
|
43
|
+
**Physics-informed neural solvers with native differentiation for CPU, Apple Metal, and NVIDIA CUDA.**
|
|
44
|
+
|
|
45
|
+
Fit differential equations directly from their residuals, initial and boundary conditions, and available observations. NeXDE can approximate a field without labeled solution data, estimate unknown parameters from measurements, or learn one model for a family of problems. Define the problem in Python or JSON, then evaluate the callable field and check its error on independent points.
|
|
46
|
+
|
|
47
|
+
## Install
|
|
48
|
+
|
|
49
|
+
Install from the public repository while the first PyPI release is pending.
|
|
50
|
+
|
|
51
|
+
```sh
|
|
52
|
+
python -m pip install "nexde @ git+https://github.com/Lakshay-13/NeXDE.git"
|
|
53
|
+
python -c "import nexde; print(nexde.__version__)"
|
|
54
|
+
```
|
|
55
|
+
|
|
56
|
+
The distribution, import, and CLI are all named `nexde`. A source checkout also supports `python -m pip install ".[test]"` and the device extras below. [PyPI release setup](https://github.com/Lakshay-13/NeXDE/blob/main/docs/releasing.md)
|
|
57
|
+
|
|
58
|
+
## Define and fit a problem
|
|
59
|
+
|
|
60
|
+
### Coupled PDEs
|
|
61
|
+
|
|
62
|
+
Fit two temperature fields that diffuse along a rod and exchange heat. Pass one residual per equation and name the output fields. The initial condition applies both residuals at `t=0`. The hard factors impose zero temperature at both ends for all times.
|
|
63
|
+
|
|
64
|
+
```python
|
|
65
|
+
from nexde import Condition, solver_2d
|
|
66
|
+
|
|
67
|
+
system = solver_2d(
|
|
68
|
+
(0, 1), (0, 1), axes=("x", "t"), fields=("u", "v"),
|
|
69
|
+
equations=[
|
|
70
|
+
"D(u,t) - D(u,x,x)/pi**2 - 0.5*(v-u)",
|
|
71
|
+
"D(v,t) - D(v,x,x)/pi**2 - 0.5*(u-v)",
|
|
72
|
+
],
|
|
73
|
+
conditions=[Condition.initial({"t": "low"}, ["u - sin(pi*x)", "v"])],
|
|
74
|
+
hard_constraints={name: {"factor": "x*(1-x)"} for name in ("u", "v")},
|
|
75
|
+
train_generator="halton",
|
|
76
|
+
training={"hidden": [20, 20], "interior": 256, "optimizer": "lbfgs"},
|
|
77
|
+
)
|
|
78
|
+
|
|
79
|
+
fit = system.fit(200, seed=21)
|
|
80
|
+
print(fit([[0.5, 0.5]])) # approximately [[0.4872, 0.1193]]
|
|
81
|
+
```
|
|
82
|
+
|
|
83
|
+
The full example uses separate generators for training and validation and checks each field at independent points. Use `nexde example coupled-heat` for the equivalent JSON problem. [Runnable coupled PDE](https://github.com/Lakshay-13/NeXDE/blob/main/examples/coupled_heat.py) · [JSON problem](https://github.com/Lakshay-13/NeXDE/blob/main/src/nexde/data/coupled-heat.json)
|
|
84
|
+
|
|
85
|
+
### ODEs and repeated fits
|
|
86
|
+
|
|
87
|
+
This ODE imposes `u(0) = 1` and checks the fitted field against the analytic solution `1 + 2*x`. Wrap calls that launch multiple workers in the usual Python main guard when running from a script.
|
|
88
|
+
|
|
89
|
+
```python
|
|
90
|
+
from nexde import Condition, solver_1d
|
|
91
|
+
|
|
92
|
+
|
|
93
|
+
def main():
|
|
94
|
+
problem = solver_1d(
|
|
95
|
+
(0, 1),
|
|
96
|
+
equations="D(u,x) - 2",
|
|
97
|
+
conditions=[Condition.initial({"x": "low"}, "u - 1")],
|
|
98
|
+
train_generator={"type": "gauss_legendre", "shape": 12},
|
|
99
|
+
validation_generator={"type": "grid", "shape": 64},
|
|
100
|
+
reference="1 + 2*x",
|
|
101
|
+
training={"hidden": [], "optimizer": "lbfgs", "accuracy_target": 1e-5},
|
|
102
|
+
)
|
|
103
|
+
fits = problem.fit(35, repeats=3, workers=2, seed=19)
|
|
104
|
+
print(fits[0]([[0.25], [0.50]])) # approximately [[1.5], [2.0]]
|
|
105
|
+
print(fits[0].report["validation"])
|
|
106
|
+
fits[0].save("solution.npz")
|
|
107
|
+
|
|
108
|
+
|
|
109
|
+
if __name__ == "__main__":
|
|
110
|
+
main()
|
|
111
|
+
```
|
|
112
|
+
|
|
113
|
+
Use `solver_2d` or `solver_nd` for space–time and higher-dimensional systems, `bundle_solver` to bind inputs over ranges, or `solve(example("inverse"))` to get started with a packaged inverse ODE. Terms can use mixed and higher derivatives, custom callbacks, hard constraints, and independent generators. Repeats also accept explicit `seeds` and choose multiprocessing or optional Ray through `executor`. [Runnable Python examples](https://github.com/Lakshay-13/NeXDE/blob/main/examples/public_solvers.py) · [Repeat settings](https://github.com/Lakshay-13/NeXDE/blob/main/docs/python.md#repeat-a-fit) · [Python API](https://github.com/Lakshay-13/NeXDE/blob/main/docs/python.md)
|
|
114
|
+
|
|
115
|
+
| Workflow | Public entry point or example |
|
|
116
|
+
|---|---|
|
|
117
|
+
| Forward and inverse ODEs/PDEs, coupled fields, unknown coefficients | [Dimension-specific solvers](https://github.com/Lakshay-13/NeXDE/blob/main/examples/public_solvers.py) · [Coupled heat](https://github.com/Lakshay-13/NeXDE/blob/main/examples/coupled_heat.py) · [Inverse coefficient field](https://github.com/Lakshay-13/NeXDE/blob/main/src/nexde/data/inverse-field.json) |
|
|
118
|
+
| Bundle solutions, parameterized forcing, spherical coordinates | [Bundle API](https://github.com/Lakshay-13/NeXDE/blob/main/examples/public_solvers.py) · [Function inputs](https://github.com/Lakshay-13/NeXDE/blob/main/examples/sensor_bundle.py) · [Spherical shell](https://github.com/Lakshay-13/NeXDE/blob/main/src/nexde/data/spherical.json) |
|
|
119
|
+
| Complex domains, interfaces, conditions, adaptive and nonlocal residuals | [Interface](https://github.com/Lakshay-13/NeXDE/blob/main/src/nexde/data/interface.json) · [Collocation generators](https://github.com/Lakshay-13/NeXDE/blob/main/examples/collocation_generators.py) · [Nonlocal equations](https://github.com/Lakshay-13/NeXDE/blob/main/examples/nonlocal_equations.py) · [Adaptive quadrature](https://github.com/Lakshay-13/NeXDE/blob/main/examples/adaptive_quadrature.py) |
|
|
120
|
+
| DeepONet, Fourier and unstructured mesh operators | [DeepONet](https://github.com/Lakshay-13/NeXDE/blob/main/examples/neural_operator.py) · [Fourier](https://github.com/Lakshay-13/NeXDE/blob/main/examples/fourier_operator.py) · [Mesh](https://github.com/Lakshay-13/NeXDE/blob/main/examples/mesh_operator.py) |
|
|
121
|
+
| Multi-fidelity, stochastic paths and posterior uncertainty | [Multi-fidelity](https://github.com/Lakshay-13/NeXDE/blob/main/examples/multifidelity.py) · [Stochastic paths](https://github.com/Lakshay-13/NeXDE/blob/main/examples/stochastic_process.py) · [Bayesian inverse problem](https://github.com/Lakshay-13/NeXDE/blob/main/examples/bayesian_inverse.py) |
|
|
122
|
+
|
|
123
|
+
The feature matrix compares public workflows and known gaps against DeepXDE, NeuroDiffEq, PINA, TorchPhysics, NVIDIA PhysicsNeMo, PINNx, and NeuralPDE.jl. It links to tests and worked examples. [Feature matrix](https://github.com/Lakshay-13/NeXDE/blob/main/docs/feature-matrix.md)
|
|
124
|
+
|
|
125
|
+
## Choose a device
|
|
126
|
+
|
|
127
|
+
| `device=` | Runtime | Precision |
|
|
128
|
+
|---|---|---|
|
|
129
|
+
| `"cpu"` | NumPy and an optional C++ derivative extension | float64 default, float32 |
|
|
130
|
+
| `"cpu-xla"` | JAX/XLA via `'.[xla]'` | float64 default, float32 |
|
|
131
|
+
| `"metal"` | MLX and native Metal kernels via `'.[metal]'` on Apple silicon | float32 |
|
|
132
|
+
| `"mps"` | MPS-enabled PyTorch via `'.[torch]'` | float32 |
|
|
133
|
+
| `"cuda"` | CUDA-enabled PyTorch; `compile=True` enables compilation | float32 default, float64 |
|
|
134
|
+
| `"cuda-mlx"` | MLX and native CUDA kernels via `'.[cuda12]'` or `'.[cuda13]'` on Linux | float32 |
|
|
135
|
+
| `"cuda-xla"` | JAX/XLA via `'.[xla-cuda12]'` or a compatible CUDA build | float32 default, float64 |
|
|
136
|
+
|
|
137
|
+
Run `nexde device-info --device metal` to check a route. An explicit GPU request produces a device error if its runtime is unavailable. [Device verification and precision](https://github.com/Lakshay-13/NeXDE/blob/main/benchmarks/README.md#installed-device-checks)
|
|
138
|
+
|
|
139
|
+
With MLX 0.32.5 and later, NeXDE uses full float32 matrix multiplication within each fit and prediction. For older MLX versions on Metal, launch Python with `MLX_ENABLE_TF32=0` to request the same precision. [MLX numerical precision](https://ml-explore.github.io/mlx/build/html/usage/precision.html)
|
|
140
|
+
|
|
141
|
+
## What makes it fast
|
|
142
|
+
|
|
143
|
+
The solver builds a derivative plan from the equations and propagates the required partials through the network. One native reverse pass accumulates the parameter gradients for the weighted residuals. The plan can fuse common derivatives into C++, Metal, and CUDA kernels and batch optimizer updates on compiled routes. Mesh operators batch the local stencil solves during preparation. On Linux CPU, message passing works on blocks of complete meshes to keep the intermediate arrays smaller. L-BFGS reuses the accepted value and gradient in a deterministic fit. JAX/XLA is available for CPU and CUDA, and MLX powers the Apple Metal route.
|
|
144
|
+
|
|
145
|
+
A matched DeepXDE ablation replaced its derivative interface with direct PyTorch. That saved 0.7% of warm fit time on CPU and 1.8% on Metal. Under the same model, points, initialization, and optimizer, NeXDE’s earlier native solver took 42.2% and 76.9% less warm fit time than the direct PyTorch control, respectively. The result supports derivative and training execution as the main source of the measured gap in that experiment. [Ablation](https://github.com/Lakshay-13/NeXDE/blob/main/benchmarks/deepxde-ablation.md)
|
|
146
|
+
|
|
147
|
+
## Compare libraries
|
|
148
|
+
|
|
149
|
+
The comparison charges startup, setup, compilation, fitting, and validation to fresh time. Warm fit and time to a common independent error target are reported separately. The fitting tables show final common loss and held-out error, including slower runs and missed accuracy gates. [Benchmark index](https://github.com/Lakshay-13/NeXDE/blob/main/benchmarks/README.md)
|
|
150
|
+
|
|
151
|
+
The 0.9.3.dev35 representative replay used 35.3% less fresh time on Apple CPU and 33.6% less on Apple Metal. Each qualified all 39 paired fits. CUDA qualified 38 of 39 fixed-budget pairs and missed its suite gates. PINNx led the CUDA warm clock on all 39 pairs. [Per-case timing, losses, memory, and raw records](https://github.com/Lakshay-13/NeXDE/blob/main/benchmarks/representative-dev35.md)
|
|
152
|
+
|
|
153
|
+
### DeepXDE, NeuroDiffEq, and five other released libraries
|
|
154
|
+
|
|
155
|
+
The installed 0.9.3.dev27 replay on Apple CPU used 71.5–81.8% less fresh time and 50.3–54.6% less warm fit time than DeepXDE and NeuroDiffEq across Poisson and heat. All 12 pairs passed the accuracy checks. [Latest timings, final losses, and held-out results](https://github.com/Lakshay-13/NeXDE/blob/main/benchmarks/published-cpu-dev27.md)
|
|
156
|
+
|
|
157
|
+
These matched runs used NeXDE 0.8.0 on an Apple M3 Max CPU. The networks, float64 points, initial weights, and 1,500 Adam updates match within each pair. Times, final losses, and held-out errors give NeXDE / comparator. Time changes are the median of three paired changes, with a minus sign indicating less time for NeXDE. All 42 pairs passed the accuracy checks. [Versions, protocol, and raw runs](https://github.com/Lakshay-13/NeXDE/blob/main/benchmarks/published-cpu.md#published-library-measurements)
|
|
158
|
+
|
|
159
|
+
| Example | Library | Fresh s | Warm fit s | Fresh / warm change | Final loss | Held-out relative L2 |
|
|
160
|
+
|---|---|---:|---:|---:|---:|---:|
|
|
161
|
+
| 2D Poisson (1,024) | DeepXDE | 1.688 / 9.565 | 1.542 / 3.176 | −82.4% / −50.8% | 0.0218 / 0.0218 | 1.540% / 1.541% |
|
|
162
|
+
| 2D Poisson (1,024) | NeuroDiffEq | 1.690 / 8.880 | 1.544 / 3.367 | −80.8% / −53.7% | 0.0218 / 0.0217 | 1.540% / 1.540% |
|
|
163
|
+
| 2D Poisson (1,024) | PINA | 1.704 / 7.864 | 1.535 / 3.583 | −78.2% / −57.1% | 0.0218 / 0.0217 | 1.540% / 1.540% |
|
|
164
|
+
| 2D Poisson (1,024) | TorchPhysics | 3.044 / 8.012 | 2.828 / 3.164 | −62.0% / −10.6% | 0.0218 / 0.0217 | 1.540% / 1.540% |
|
|
165
|
+
| 2D Poisson (1,024) | PhysicsNeMo | 1.751 / 7.058 | 1.582 / 3.064 | −75.2% / −48.5% | 0.0218 / 0.0218 | 1.540% / 1.540% |
|
|
166
|
+
| 2D Poisson (1,024) | PINNx | 1.687 / 9.462 | 1.540 / 1.946 | −81.7% / −19.6% | 0.0218 / 0.0218 | 1.540% / 1.540% |
|
|
167
|
+
| 2D Poisson (1,024) | NeuralPDE.jl | 1.670 / 98.343 | 1.526 / 11.680 | −98.3% / −86.9% | 0.0218 / 0.0218 | 1.540% / 1.541% |
|
|
168
|
+
| 1D heat (4,096) | DeepXDE | 3.862 / 13.648 | 3.641 / 7.460 | −71.7% / −51.1% | 0.00423 / 0.00423 | 1.011% / 1.011% |
|
|
169
|
+
| 1D heat (4,096) | NeuroDiffEq | 3.756 / 13.395 | 3.541 / 7.889 | −72.0% / −55.0% | 0.00423 / 0.00423 | 1.011% / 1.011% |
|
|
170
|
+
| 1D heat (4,096) | PINA | 3.798 / 12.448 | 3.560 / 8.084 | −69.7% / −56.0% | 0.00423 / 0.00423 | 1.011% / 1.011% |
|
|
171
|
+
| 1D heat (4,096) | TorchPhysics | 8.198 / 12.469 | 7.798 / 7.395 | −34.3% / **+5.3%** | 0.00423 / 0.00423 | 1.011% / 1.011% |
|
|
172
|
+
| 1D heat (4,096) | PhysicsNeMo | 3.910 / 13.009 | 3.660 / 8.848 | −69.9% / −58.6% | 0.00423 / 0.00423 | 1.011% / 1.011% |
|
|
173
|
+
| 1D heat (4,096) | PINNx | 3.745 / 10.580 | 3.524 / 3.553 | −64.7% / −1.0% | 0.00423 / 0.00423 | 1.011% / 1.011% |
|
|
174
|
+
| 1D heat (4,096) | NeuralPDE.jl | 3.767 / 110.654 | 3.547 / 32.996 | −96.6% / −89.3% | 0.00423 / 0.00423 | 1.011% / 1.011% |
|
|
175
|
+
|
|
176
|
+
### Released and compiled controls on a 4,981-vertex mesh
|
|
177
|
+
|
|
178
|
+
Medians across three paired seeds using NeXDE 0.9.3.dev25. Each pair of numbers gives NeXDE / control. The CPU replay uses the full frozen roster. Metal and CUDA rerun compiled MLX, the fastest fresh-time control in the previous full accelerator comparison.
|
|
179
|
+
|
|
180
|
+
| Device | Comparator | Fresh s | Warm fit s | Common loss | Held-out relative L2 |
|
|
181
|
+
|---|---|---:|---:|---:|---:|
|
|
182
|
+
| Apple CPU | Compiled JAX | 2.000 / 2.616 | 1.693 / 1.037 | 0.00165 / 0.00166 | 9.637% / 9.627% |
|
|
183
|
+
| Linux CPU | Released PINA | 3.478 / 5.372 | 3.101 / 2.513 | 0.00166 / 0.00147 | 9.728% / 9.898% |
|
|
184
|
+
| Apple Metal | Compiled MLX | 0.865 / 0.859 | 0.551 / 0.542 | 0.00166 / 0.00166 | 9.576% / 9.466% |
|
|
185
|
+
| NVIDIA CUDA | Compiled MLX | 1.417 / 1.360 | 0.441 / 0.390 | 0.00166 / 0.00166 | 9.636% / 9.692% |
|
|
186
|
+
|
|
187
|
+
Apple CPU cleared the 15% fresh-time gate at both mesh sizes. On Linux CPU, the larger mesh used 34.6% less fresh time than the fastest eligible controls at matched accuracy. The smaller Linux mesh missed the common-loss gate. Metal was within 1% of compiled MLX across the paired cases. CUDA remained slower than compiled MLX. [Per-seed results, memory, and time to target](https://github.com/Lakshay-13/NeXDE/blob/main/benchmarks/graph/message-blocks/RESULTS.md) · [Earlier full accelerator roster](https://github.com/Lakshay-13/NeXDE/blob/main/benchmarks/graph/SCORES.md)
|
|
188
|
+
|
|
189
|
+
## Use from an LLM or another program
|
|
190
|
+
|
|
191
|
+
The local MCP server exposes capability discovery, schemas, validation, fitting, and prediction. JSON requests and result fields are shared by Python, CLI, and MCP.
|
|
192
|
+
|
|
193
|
+
```sh
|
|
194
|
+
python -m pip install "nexde[mcp] @ git+https://github.com/Lakshay-13/NeXDE.git"
|
|
195
|
+
nexde example inverse > inverse.json
|
|
196
|
+
nexde validate inverse.json
|
|
197
|
+
nexde solve inverse.json --steps 800 --checkpoint inverse.npz
|
|
198
|
+
nexde fit-predict-schema
|
|
199
|
+
```
|
|
200
|
+
|
|
201
|
+
Use this configuration in a local stdio MCP client, with the executable path from the environment where NeXDE was installed.
|
|
202
|
+
|
|
203
|
+
```json
|
|
204
|
+
{
|
|
205
|
+
"mcpServers": {
|
|
206
|
+
"nexde": { "command": "/absolute/path/to/venv/bin/nexde-mcp" }
|
|
207
|
+
}
|
|
208
|
+
}
|
|
209
|
+
```
|
|
210
|
+
|
|
211
|
+
Start with `nexde capabilities` or the installed tools `fit_and_predict`, `fit_grid_and_predict`, and `fit_mesh_and_predict`. The command-line entry point emits JSON. [Agent tool contract](https://github.com/Lakshay-13/NeXDE/blob/main/llms.txt) · [Runnable Python tool](https://github.com/Lakshay-13/NeXDE/blob/main/examples/tool.py) · [MCP integration tests](https://github.com/Lakshay-13/NeXDE/blob/main/tests/test_public_tools.py)
|
|
212
|
+
|
|
213
|
+
## What's new
|
|
214
|
+
|
|
215
|
+
- **0.9.3** fuses the scalar readout and tanh pullback for large CPU fits. At matched accuracy, four large Poisson and heat workloads took 8.2% less warm time on Apple CPU than the previous NeXDE wheel. Compiled JAX still led on the full training budget. [Paired timings, loss, and accuracy](https://github.com/Lakshay-13/NeXDE/blob/main/benchmarks/experimental/scalar-readout/README.md)
|
|
216
|
+
- **0.9.3.dev35** uses full float32 matrix multiplication in MLX fits and predictions. The coupled heat example reaches its independent accuracy target with the default CUDA launch settings. [Precision checks and matched timings](https://github.com/Lakshay-13/NeXDE/blob/main/benchmarks/mlx-precision/RESULTS.md)
|
|
217
|
+
- **0.9.3.dev34** fixes the native Windows mesh kernels. Two Ray workers passed the inverse ODE check, and the repeated mesh predictions matched the serial fit exactly. [Windows verification](https://github.com/Lakshay-13/NeXDE/actions/runs/47064606185)
|
|
218
|
+
- **0.9.3.dev31** adds Hammersley and Sobol collocation and Chebyshev grids in Python, JSON, and MCP. [Generator example](https://github.com/Lakshay-13/NeXDE/blob/main/examples/collocation_generators.py)
|
|
219
|
+
- **0.9.3.dev27** adds the coupled heat example and seven-library speed and loss comparisons. The source distribution and 30 native wheels passed build and install checks, including a two-worker Windows repeat and resume test. [Distribution checks](https://github.com/Lakshay-13/NeXDE/actions/runs/47057060974) · [Experimental accelerator L-BFGS results](https://github.com/Lakshay-13/NeXDE/blob/main/benchmarks/graph/optimizer-host/RESULTS.md)
|
|
220
|
+
- **0.9.3.dev25** batches stencil preparation and groups complete meshes during Linux CPU training. The 4,981-vertex Linux fit used 34.6% less paired fresh time at matched accuracy. [Matched replay](https://github.com/Lakshay-13/NeXDE/blob/main/benchmarks/graph/message-blocks/RESULTS.md)
|
|
221
|
+
- **0.9.3.dev24** fuses sparse mesh differentiation and its reverse pass on CPU. The 4,981-vertex Apple CPU fit took 2.14 s fresh and 0.98 s to a common field-error target. [Matched CPU replay](https://github.com/Lakshay-13/NeXDE/blob/main/benchmarks/graph/cpu-stencils/RESULTS.md)
|
|
222
|
+
- **0.9.3.dev23** reuses stationary L-BFGS checks within a fit. A coupled inverse problem went from 1.50 s to 0.25 s on Metal and from 1.77 s to 0.78 s on CUDA MLX. Final losses and held-out errors were identical to dev22. [Paired replay](https://github.com/Lakshay-13/NeXDE/blob/main/benchmarks/graph/STATIONARY_RESULTS.md)
|
|
223
|
+
- **0.9.3.dev22** reuses accepted line search evaluations and accelerates the unstructured mesh operator on CPU and Metal. The installed replays report both wins and misses by device. [Paired replay](https://github.com/Lakshay-13/NeXDE/blob/main/benchmarks/graph/RELEASE_COMPARISON.md)
|
|
224
|
+
- Read stored checkpoints through the legacy `pinnrun` and `pinnfit` import paths. Resume training with the original problem definition. [Migration guide](https://github.com/Lakshay-13/NeXDE/blob/main/docs/migration.md) · [Changelog](https://github.com/Lakshay-13/NeXDE/blob/main/CHANGELOG.md)
|
|
225
|
+
|
|
226
|
+
## What's next
|
|
227
|
+
|
|
228
|
+
- Improve steady-state throughput on 4,096-plus collocation points and large graphs, especially against compiled Linux CPU and GPU controls.
|
|
229
|
+
- Qualify the strict inverse and fractional workloads at matched accuracy on GPU, including total cost and peak memory.
|
|
230
|
+
- Complete the first PyPI release so `pip install nexde` works from the default index.
|
|
231
|
+
- Extend mesh operators to multiscale and rotation-equivariant models and investigate distributed fitting of a single field.
|
|
232
|
+
|
|
233
|
+
## License and artwork
|
|
234
|
+
|
|
235
|
+
NeXDE is open source under the MIT License. Download the vector logo or the 1584 × 396 social banner. [MIT License](https://github.com/Lakshay-13/NeXDE/blob/main/LICENSE) · [Logo](https://github.com/Lakshay-13/NeXDE/blob/main/assets/brand/logo.svg) · [Banner](https://github.com/Lakshay-13/NeXDE/blob/main/assets/brand/banner.png) · [Palette and vector artwork](https://github.com/Lakshay-13/NeXDE/blob/main/assets/brand/README.md)
|
nexde-0.9.3/README.md
ADDED
|
@@ -0,0 +1,197 @@
|
|
|
1
|
+
# NeXDE
|
|
2
|
+
|
|
3
|
+

|
|
4
|
+
|
|
5
|
+
**Physics-informed neural solvers with native differentiation for CPU, Apple Metal, and NVIDIA CUDA.**
|
|
6
|
+
|
|
7
|
+
Fit differential equations directly from their residuals, initial and boundary conditions, and available observations. NeXDE can approximate a field without labeled solution data, estimate unknown parameters from measurements, or learn one model for a family of problems. Define the problem in Python or JSON, then evaluate the callable field and check its error on independent points.
|
|
8
|
+
|
|
9
|
+
## Install
|
|
10
|
+
|
|
11
|
+
Install from the public repository while the first PyPI release is pending.
|
|
12
|
+
|
|
13
|
+
```sh
|
|
14
|
+
python -m pip install "nexde @ git+https://github.com/Lakshay-13/NeXDE.git"
|
|
15
|
+
python -c "import nexde; print(nexde.__version__)"
|
|
16
|
+
```
|
|
17
|
+
|
|
18
|
+
The distribution, import, and CLI are all named `nexde`. A source checkout also supports `python -m pip install ".[test]"` and the device extras below. [PyPI release setup](https://github.com/Lakshay-13/NeXDE/blob/main/docs/releasing.md)
|
|
19
|
+
|
|
20
|
+
## Define and fit a problem
|
|
21
|
+
|
|
22
|
+
### Coupled PDEs
|
|
23
|
+
|
|
24
|
+
Fit two temperature fields that diffuse along a rod and exchange heat. Pass one residual per equation and name the output fields. The initial condition applies both residuals at `t=0`. The hard factors impose zero temperature at both ends for all times.
|
|
25
|
+
|
|
26
|
+
```python
|
|
27
|
+
from nexde import Condition, solver_2d
|
|
28
|
+
|
|
29
|
+
system = solver_2d(
|
|
30
|
+
(0, 1), (0, 1), axes=("x", "t"), fields=("u", "v"),
|
|
31
|
+
equations=[
|
|
32
|
+
"D(u,t) - D(u,x,x)/pi**2 - 0.5*(v-u)",
|
|
33
|
+
"D(v,t) - D(v,x,x)/pi**2 - 0.5*(u-v)",
|
|
34
|
+
],
|
|
35
|
+
conditions=[Condition.initial({"t": "low"}, ["u - sin(pi*x)", "v"])],
|
|
36
|
+
hard_constraints={name: {"factor": "x*(1-x)"} for name in ("u", "v")},
|
|
37
|
+
train_generator="halton",
|
|
38
|
+
training={"hidden": [20, 20], "interior": 256, "optimizer": "lbfgs"},
|
|
39
|
+
)
|
|
40
|
+
|
|
41
|
+
fit = system.fit(200, seed=21)
|
|
42
|
+
print(fit([[0.5, 0.5]])) # approximately [[0.4872, 0.1193]]
|
|
43
|
+
```
|
|
44
|
+
|
|
45
|
+
The full example uses separate generators for training and validation and checks each field at independent points. Use `nexde example coupled-heat` for the equivalent JSON problem. [Runnable coupled PDE](https://github.com/Lakshay-13/NeXDE/blob/main/examples/coupled_heat.py) · [JSON problem](https://github.com/Lakshay-13/NeXDE/blob/main/src/nexde/data/coupled-heat.json)
|
|
46
|
+
|
|
47
|
+
### ODEs and repeated fits
|
|
48
|
+
|
|
49
|
+
This ODE imposes `u(0) = 1` and checks the fitted field against the analytic solution `1 + 2*x`. Wrap calls that launch multiple workers in the usual Python main guard when running from a script.
|
|
50
|
+
|
|
51
|
+
```python
|
|
52
|
+
from nexde import Condition, solver_1d
|
|
53
|
+
|
|
54
|
+
|
|
55
|
+
def main():
|
|
56
|
+
problem = solver_1d(
|
|
57
|
+
(0, 1),
|
|
58
|
+
equations="D(u,x) - 2",
|
|
59
|
+
conditions=[Condition.initial({"x": "low"}, "u - 1")],
|
|
60
|
+
train_generator={"type": "gauss_legendre", "shape": 12},
|
|
61
|
+
validation_generator={"type": "grid", "shape": 64},
|
|
62
|
+
reference="1 + 2*x",
|
|
63
|
+
training={"hidden": [], "optimizer": "lbfgs", "accuracy_target": 1e-5},
|
|
64
|
+
)
|
|
65
|
+
fits = problem.fit(35, repeats=3, workers=2, seed=19)
|
|
66
|
+
print(fits[0]([[0.25], [0.50]])) # approximately [[1.5], [2.0]]
|
|
67
|
+
print(fits[0].report["validation"])
|
|
68
|
+
fits[0].save("solution.npz")
|
|
69
|
+
|
|
70
|
+
|
|
71
|
+
if __name__ == "__main__":
|
|
72
|
+
main()
|
|
73
|
+
```
|
|
74
|
+
|
|
75
|
+
Use `solver_2d` or `solver_nd` for space–time and higher-dimensional systems, `bundle_solver` to bind inputs over ranges, or `solve(example("inverse"))` to get started with a packaged inverse ODE. Terms can use mixed and higher derivatives, custom callbacks, hard constraints, and independent generators. Repeats also accept explicit `seeds` and choose multiprocessing or optional Ray through `executor`. [Runnable Python examples](https://github.com/Lakshay-13/NeXDE/blob/main/examples/public_solvers.py) · [Repeat settings](https://github.com/Lakshay-13/NeXDE/blob/main/docs/python.md#repeat-a-fit) · [Python API](https://github.com/Lakshay-13/NeXDE/blob/main/docs/python.md)
|
|
76
|
+
|
|
77
|
+
| Workflow | Public entry point or example |
|
|
78
|
+
|---|---|
|
|
79
|
+
| Forward and inverse ODEs/PDEs, coupled fields, unknown coefficients | [Dimension-specific solvers](https://github.com/Lakshay-13/NeXDE/blob/main/examples/public_solvers.py) · [Coupled heat](https://github.com/Lakshay-13/NeXDE/blob/main/examples/coupled_heat.py) · [Inverse coefficient field](https://github.com/Lakshay-13/NeXDE/blob/main/src/nexde/data/inverse-field.json) |
|
|
80
|
+
| Bundle solutions, parameterized forcing, spherical coordinates | [Bundle API](https://github.com/Lakshay-13/NeXDE/blob/main/examples/public_solvers.py) · [Function inputs](https://github.com/Lakshay-13/NeXDE/blob/main/examples/sensor_bundle.py) · [Spherical shell](https://github.com/Lakshay-13/NeXDE/blob/main/src/nexde/data/spherical.json) |
|
|
81
|
+
| Complex domains, interfaces, conditions, adaptive and nonlocal residuals | [Interface](https://github.com/Lakshay-13/NeXDE/blob/main/src/nexde/data/interface.json) · [Collocation generators](https://github.com/Lakshay-13/NeXDE/blob/main/examples/collocation_generators.py) · [Nonlocal equations](https://github.com/Lakshay-13/NeXDE/blob/main/examples/nonlocal_equations.py) · [Adaptive quadrature](https://github.com/Lakshay-13/NeXDE/blob/main/examples/adaptive_quadrature.py) |
|
|
82
|
+
| DeepONet, Fourier and unstructured mesh operators | [DeepONet](https://github.com/Lakshay-13/NeXDE/blob/main/examples/neural_operator.py) · [Fourier](https://github.com/Lakshay-13/NeXDE/blob/main/examples/fourier_operator.py) · [Mesh](https://github.com/Lakshay-13/NeXDE/blob/main/examples/mesh_operator.py) |
|
|
83
|
+
| Multi-fidelity, stochastic paths and posterior uncertainty | [Multi-fidelity](https://github.com/Lakshay-13/NeXDE/blob/main/examples/multifidelity.py) · [Stochastic paths](https://github.com/Lakshay-13/NeXDE/blob/main/examples/stochastic_process.py) · [Bayesian inverse problem](https://github.com/Lakshay-13/NeXDE/blob/main/examples/bayesian_inverse.py) |
|
|
84
|
+
|
|
85
|
+
The feature matrix compares public workflows and known gaps against DeepXDE, NeuroDiffEq, PINA, TorchPhysics, NVIDIA PhysicsNeMo, PINNx, and NeuralPDE.jl. It links to tests and worked examples. [Feature matrix](https://github.com/Lakshay-13/NeXDE/blob/main/docs/feature-matrix.md)
|
|
86
|
+
|
|
87
|
+
## Choose a device
|
|
88
|
+
|
|
89
|
+
| `device=` | Runtime | Precision |
|
|
90
|
+
|---|---|---|
|
|
91
|
+
| `"cpu"` | NumPy and an optional C++ derivative extension | float64 default, float32 |
|
|
92
|
+
| `"cpu-xla"` | JAX/XLA via `'.[xla]'` | float64 default, float32 |
|
|
93
|
+
| `"metal"` | MLX and native Metal kernels via `'.[metal]'` on Apple silicon | float32 |
|
|
94
|
+
| `"mps"` | MPS-enabled PyTorch via `'.[torch]'` | float32 |
|
|
95
|
+
| `"cuda"` | CUDA-enabled PyTorch; `compile=True` enables compilation | float32 default, float64 |
|
|
96
|
+
| `"cuda-mlx"` | MLX and native CUDA kernels via `'.[cuda12]'` or `'.[cuda13]'` on Linux | float32 |
|
|
97
|
+
| `"cuda-xla"` | JAX/XLA via `'.[xla-cuda12]'` or a compatible CUDA build | float32 default, float64 |
|
|
98
|
+
|
|
99
|
+
Run `nexde device-info --device metal` to check a route. An explicit GPU request produces a device error if its runtime is unavailable. [Device verification and precision](https://github.com/Lakshay-13/NeXDE/blob/main/benchmarks/README.md#installed-device-checks)
|
|
100
|
+
|
|
101
|
+
With MLX 0.32.5 and later, NeXDE uses full float32 matrix multiplication within each fit and prediction. For older MLX versions on Metal, launch Python with `MLX_ENABLE_TF32=0` to request the same precision. [MLX numerical precision](https://ml-explore.github.io/mlx/build/html/usage/precision.html)
|
|
102
|
+
|
|
103
|
+
## What makes it fast
|
|
104
|
+
|
|
105
|
+
The solver builds a derivative plan from the equations and propagates the required partials through the network. One native reverse pass accumulates the parameter gradients for the weighted residuals. The plan can fuse common derivatives into C++, Metal, and CUDA kernels and batch optimizer updates on compiled routes. Mesh operators batch the local stencil solves during preparation. On Linux CPU, message passing works on blocks of complete meshes to keep the intermediate arrays smaller. L-BFGS reuses the accepted value and gradient in a deterministic fit. JAX/XLA is available for CPU and CUDA, and MLX powers the Apple Metal route.
|
|
106
|
+
|
|
107
|
+
A matched DeepXDE ablation replaced its derivative interface with direct PyTorch. That saved 0.7% of warm fit time on CPU and 1.8% on Metal. Under the same model, points, initialization, and optimizer, NeXDE’s earlier native solver took 42.2% and 76.9% less warm fit time than the direct PyTorch control, respectively. The result supports derivative and training execution as the main source of the measured gap in that experiment. [Ablation](https://github.com/Lakshay-13/NeXDE/blob/main/benchmarks/deepxde-ablation.md)
|
|
108
|
+
|
|
109
|
+
## Compare libraries
|
|
110
|
+
|
|
111
|
+
The comparison charges startup, setup, compilation, fitting, and validation to fresh time. Warm fit and time to a common independent error target are reported separately. The fitting tables show final common loss and held-out error, including slower runs and missed accuracy gates. [Benchmark index](https://github.com/Lakshay-13/NeXDE/blob/main/benchmarks/README.md)
|
|
112
|
+
|
|
113
|
+
The 0.9.3.dev35 representative replay used 35.3% less fresh time on Apple CPU and 33.6% less on Apple Metal. Each qualified all 39 paired fits. CUDA qualified 38 of 39 fixed-budget pairs and missed its suite gates. PINNx led the CUDA warm clock on all 39 pairs. [Per-case timing, losses, memory, and raw records](https://github.com/Lakshay-13/NeXDE/blob/main/benchmarks/representative-dev35.md)
|
|
114
|
+
|
|
115
|
+
### DeepXDE, NeuroDiffEq, and five other released libraries
|
|
116
|
+
|
|
117
|
+
The installed 0.9.3.dev27 replay on Apple CPU used 71.5–81.8% less fresh time and 50.3–54.6% less warm fit time than DeepXDE and NeuroDiffEq across Poisson and heat. All 12 pairs passed the accuracy checks. [Latest timings, final losses, and held-out results](https://github.com/Lakshay-13/NeXDE/blob/main/benchmarks/published-cpu-dev27.md)
|
|
118
|
+
|
|
119
|
+
These matched runs used NeXDE 0.8.0 on an Apple M3 Max CPU. The networks, float64 points, initial weights, and 1,500 Adam updates match within each pair. Times, final losses, and held-out errors give NeXDE / comparator. Time changes are the median of three paired changes, with a minus sign indicating less time for NeXDE. All 42 pairs passed the accuracy checks. [Versions, protocol, and raw runs](https://github.com/Lakshay-13/NeXDE/blob/main/benchmarks/published-cpu.md#published-library-measurements)
|
|
120
|
+
|
|
121
|
+
| Example | Library | Fresh s | Warm fit s | Fresh / warm change | Final loss | Held-out relative L2 |
|
|
122
|
+
|---|---|---:|---:|---:|---:|---:|
|
|
123
|
+
| 2D Poisson (1,024) | DeepXDE | 1.688 / 9.565 | 1.542 / 3.176 | −82.4% / −50.8% | 0.0218 / 0.0218 | 1.540% / 1.541% |
|
|
124
|
+
| 2D Poisson (1,024) | NeuroDiffEq | 1.690 / 8.880 | 1.544 / 3.367 | −80.8% / −53.7% | 0.0218 / 0.0217 | 1.540% / 1.540% |
|
|
125
|
+
| 2D Poisson (1,024) | PINA | 1.704 / 7.864 | 1.535 / 3.583 | −78.2% / −57.1% | 0.0218 / 0.0217 | 1.540% / 1.540% |
|
|
126
|
+
| 2D Poisson (1,024) | TorchPhysics | 3.044 / 8.012 | 2.828 / 3.164 | −62.0% / −10.6% | 0.0218 / 0.0217 | 1.540% / 1.540% |
|
|
127
|
+
| 2D Poisson (1,024) | PhysicsNeMo | 1.751 / 7.058 | 1.582 / 3.064 | −75.2% / −48.5% | 0.0218 / 0.0218 | 1.540% / 1.540% |
|
|
128
|
+
| 2D Poisson (1,024) | PINNx | 1.687 / 9.462 | 1.540 / 1.946 | −81.7% / −19.6% | 0.0218 / 0.0218 | 1.540% / 1.540% |
|
|
129
|
+
| 2D Poisson (1,024) | NeuralPDE.jl | 1.670 / 98.343 | 1.526 / 11.680 | −98.3% / −86.9% | 0.0218 / 0.0218 | 1.540% / 1.541% |
|
|
130
|
+
| 1D heat (4,096) | DeepXDE | 3.862 / 13.648 | 3.641 / 7.460 | −71.7% / −51.1% | 0.00423 / 0.00423 | 1.011% / 1.011% |
|
|
131
|
+
| 1D heat (4,096) | NeuroDiffEq | 3.756 / 13.395 | 3.541 / 7.889 | −72.0% / −55.0% | 0.00423 / 0.00423 | 1.011% / 1.011% |
|
|
132
|
+
| 1D heat (4,096) | PINA | 3.798 / 12.448 | 3.560 / 8.084 | −69.7% / −56.0% | 0.00423 / 0.00423 | 1.011% / 1.011% |
|
|
133
|
+
| 1D heat (4,096) | TorchPhysics | 8.198 / 12.469 | 7.798 / 7.395 | −34.3% / **+5.3%** | 0.00423 / 0.00423 | 1.011% / 1.011% |
|
|
134
|
+
| 1D heat (4,096) | PhysicsNeMo | 3.910 / 13.009 | 3.660 / 8.848 | −69.9% / −58.6% | 0.00423 / 0.00423 | 1.011% / 1.011% |
|
|
135
|
+
| 1D heat (4,096) | PINNx | 3.745 / 10.580 | 3.524 / 3.553 | −64.7% / −1.0% | 0.00423 / 0.00423 | 1.011% / 1.011% |
|
|
136
|
+
| 1D heat (4,096) | NeuralPDE.jl | 3.767 / 110.654 | 3.547 / 32.996 | −96.6% / −89.3% | 0.00423 / 0.00423 | 1.011% / 1.011% |
|
|
137
|
+
|
|
138
|
+
### Released and compiled controls on a 4,981-vertex mesh
|
|
139
|
+
|
|
140
|
+
Medians across three paired seeds using NeXDE 0.9.3.dev25. Each pair of numbers gives NeXDE / control. The CPU replay uses the full frozen roster. Metal and CUDA rerun compiled MLX, the fastest fresh-time control in the previous full accelerator comparison.
|
|
141
|
+
|
|
142
|
+
| Device | Comparator | Fresh s | Warm fit s | Common loss | Held-out relative L2 |
|
|
143
|
+
|---|---|---:|---:|---:|---:|
|
|
144
|
+
| Apple CPU | Compiled JAX | 2.000 / 2.616 | 1.693 / 1.037 | 0.00165 / 0.00166 | 9.637% / 9.627% |
|
|
145
|
+
| Linux CPU | Released PINA | 3.478 / 5.372 | 3.101 / 2.513 | 0.00166 / 0.00147 | 9.728% / 9.898% |
|
|
146
|
+
| Apple Metal | Compiled MLX | 0.865 / 0.859 | 0.551 / 0.542 | 0.00166 / 0.00166 | 9.576% / 9.466% |
|
|
147
|
+
| NVIDIA CUDA | Compiled MLX | 1.417 / 1.360 | 0.441 / 0.390 | 0.00166 / 0.00166 | 9.636% / 9.692% |
|
|
148
|
+
|
|
149
|
+
Apple CPU cleared the 15% fresh-time gate at both mesh sizes. On Linux CPU, the larger mesh used 34.6% less fresh time than the fastest eligible controls at matched accuracy. The smaller Linux mesh missed the common-loss gate. Metal was within 1% of compiled MLX across the paired cases. CUDA remained slower than compiled MLX. [Per-seed results, memory, and time to target](https://github.com/Lakshay-13/NeXDE/blob/main/benchmarks/graph/message-blocks/RESULTS.md) · [Earlier full accelerator roster](https://github.com/Lakshay-13/NeXDE/blob/main/benchmarks/graph/SCORES.md)
|
|
150
|
+
|
|
151
|
+
## Use from an LLM or another program
|
|
152
|
+
|
|
153
|
+
The local MCP server exposes capability discovery, schemas, validation, fitting, and prediction. JSON requests and result fields are shared by Python, CLI, and MCP.
|
|
154
|
+
|
|
155
|
+
```sh
|
|
156
|
+
python -m pip install "nexde[mcp] @ git+https://github.com/Lakshay-13/NeXDE.git"
|
|
157
|
+
nexde example inverse > inverse.json
|
|
158
|
+
nexde validate inverse.json
|
|
159
|
+
nexde solve inverse.json --steps 800 --checkpoint inverse.npz
|
|
160
|
+
nexde fit-predict-schema
|
|
161
|
+
```
|
|
162
|
+
|
|
163
|
+
Use this configuration in a local stdio MCP client, with the executable path from the environment where NeXDE was installed.
|
|
164
|
+
|
|
165
|
+
```json
|
|
166
|
+
{
|
|
167
|
+
"mcpServers": {
|
|
168
|
+
"nexde": { "command": "/absolute/path/to/venv/bin/nexde-mcp" }
|
|
169
|
+
}
|
|
170
|
+
}
|
|
171
|
+
```
|
|
172
|
+
|
|
173
|
+
Start with `nexde capabilities` or the installed tools `fit_and_predict`, `fit_grid_and_predict`, and `fit_mesh_and_predict`. The command-line entry point emits JSON. [Agent tool contract](https://github.com/Lakshay-13/NeXDE/blob/main/llms.txt) · [Runnable Python tool](https://github.com/Lakshay-13/NeXDE/blob/main/examples/tool.py) · [MCP integration tests](https://github.com/Lakshay-13/NeXDE/blob/main/tests/test_public_tools.py)
|
|
174
|
+
|
|
175
|
+
## What's new
|
|
176
|
+
|
|
177
|
+
- **0.9.3** fuses the scalar readout and tanh pullback for large CPU fits. At matched accuracy, four large Poisson and heat workloads took 8.2% less warm time on Apple CPU than the previous NeXDE wheel. Compiled JAX still led on the full training budget. [Paired timings, loss, and accuracy](https://github.com/Lakshay-13/NeXDE/blob/main/benchmarks/experimental/scalar-readout/README.md)
|
|
178
|
+
- **0.9.3.dev35** uses full float32 matrix multiplication in MLX fits and predictions. The coupled heat example reaches its independent accuracy target with the default CUDA launch settings. [Precision checks and matched timings](https://github.com/Lakshay-13/NeXDE/blob/main/benchmarks/mlx-precision/RESULTS.md)
|
|
179
|
+
- **0.9.3.dev34** fixes the native Windows mesh kernels. Two Ray workers passed the inverse ODE check, and the repeated mesh predictions matched the serial fit exactly. [Windows verification](https://github.com/Lakshay-13/NeXDE/actions/runs/47064606185)
|
|
180
|
+
- **0.9.3.dev31** adds Hammersley and Sobol collocation and Chebyshev grids in Python, JSON, and MCP. [Generator example](https://github.com/Lakshay-13/NeXDE/blob/main/examples/collocation_generators.py)
|
|
181
|
+
- **0.9.3.dev27** adds the coupled heat example and seven-library speed and loss comparisons. The source distribution and 30 native wheels passed build and install checks, including a two-worker Windows repeat and resume test. [Distribution checks](https://github.com/Lakshay-13/NeXDE/actions/runs/47057060974) · [Experimental accelerator L-BFGS results](https://github.com/Lakshay-13/NeXDE/blob/main/benchmarks/graph/optimizer-host/RESULTS.md)
|
|
182
|
+
- **0.9.3.dev25** batches stencil preparation and groups complete meshes during Linux CPU training. The 4,981-vertex Linux fit used 34.6% less paired fresh time at matched accuracy. [Matched replay](https://github.com/Lakshay-13/NeXDE/blob/main/benchmarks/graph/message-blocks/RESULTS.md)
|
|
183
|
+
- **0.9.3.dev24** fuses sparse mesh differentiation and its reverse pass on CPU. The 4,981-vertex Apple CPU fit took 2.14 s fresh and 0.98 s to a common field-error target. [Matched CPU replay](https://github.com/Lakshay-13/NeXDE/blob/main/benchmarks/graph/cpu-stencils/RESULTS.md)
|
|
184
|
+
- **0.9.3.dev23** reuses stationary L-BFGS checks within a fit. A coupled inverse problem went from 1.50 s to 0.25 s on Metal and from 1.77 s to 0.78 s on CUDA MLX. Final losses and held-out errors were identical to dev22. [Paired replay](https://github.com/Lakshay-13/NeXDE/blob/main/benchmarks/graph/STATIONARY_RESULTS.md)
|
|
185
|
+
- **0.9.3.dev22** reuses accepted line search evaluations and accelerates the unstructured mesh operator on CPU and Metal. The installed replays report both wins and misses by device. [Paired replay](https://github.com/Lakshay-13/NeXDE/blob/main/benchmarks/graph/RELEASE_COMPARISON.md)
|
|
186
|
+
- Read stored checkpoints through the legacy `pinnrun` and `pinnfit` import paths. Resume training with the original problem definition. [Migration guide](https://github.com/Lakshay-13/NeXDE/blob/main/docs/migration.md) · [Changelog](https://github.com/Lakshay-13/NeXDE/blob/main/CHANGELOG.md)
|
|
187
|
+
|
|
188
|
+
## What's next
|
|
189
|
+
|
|
190
|
+
- Improve steady-state throughput on 4,096-plus collocation points and large graphs, especially against compiled Linux CPU and GPU controls.
|
|
191
|
+
- Qualify the strict inverse and fractional workloads at matched accuracy on GPU, including total cost and peak memory.
|
|
192
|
+
- Complete the first PyPI release so `pip install nexde` works from the default index.
|
|
193
|
+
- Extend mesh operators to multiscale and rotation-equivariant models and investigate distributed fitting of a single field.
|
|
194
|
+
|
|
195
|
+
## License and artwork
|
|
196
|
+
|
|
197
|
+
NeXDE is open source under the MIT License. Download the vector logo or the 1584 × 396 social banner. [MIT License](https://github.com/Lakshay-13/NeXDE/blob/main/LICENSE) · [Logo](https://github.com/Lakshay-13/NeXDE/blob/main/assets/brand/logo.svg) · [Banner](https://github.com/Lakshay-13/NeXDE/blob/main/assets/brand/banner.png) · [Palette and vector artwork](https://github.com/Lakshay-13/NeXDE/blob/main/assets/brand/README.md)
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
[build-system]
|
|
2
|
+
requires = ["setuptools>=77.0.3"]
|
|
3
|
+
build-backend = "setuptools.build_meta"
|
|
4
|
+
|
|
5
|
+
[project]
|
|
6
|
+
name = "nexde"
|
|
7
|
+
dynamic = ["version"]
|
|
8
|
+
description = "NeXDE physics-informed neural solvers for differential equations"
|
|
9
|
+
readme = "README.md"
|
|
10
|
+
requires-python = ">=3.10"
|
|
11
|
+
license = "MIT"
|
|
12
|
+
license-files = ["LICENSE"]
|
|
13
|
+
dependencies = ["numpy>=1.26", "cloudpickle>=3.1"]
|
|
14
|
+
|
|
15
|
+
[project.urls]
|
|
16
|
+
Homepage = "https://github.com/Lakshay-13/NeXDE"
|
|
17
|
+
Source = "https://github.com/Lakshay-13/NeXDE"
|
|
18
|
+
Issues = "https://github.com/Lakshay-13/NeXDE/issues"
|
|
19
|
+
Documentation = "https://github.com/Lakshay-13/NeXDE/blob/main/docs/python.md"
|
|
20
|
+
Changelog = "https://github.com/Lakshay-13/NeXDE/blob/main/CHANGELOG.md"
|
|
21
|
+
|
|
22
|
+
[project.scripts]
|
|
23
|
+
nexde = "nexde.cli:main"
|
|
24
|
+
nexde-mcp = "nexde.mcp_server:main"
|
|
25
|
+
|
|
26
|
+
[project.optional-dependencies]
|
|
27
|
+
metal = ["mlx>=0.27; sys_platform == 'darwin' and platform_machine == 'arm64'"]
|
|
28
|
+
cuda12 = ["mlx[cuda12]>=0.32.5; sys_platform == 'linux'"]
|
|
29
|
+
cuda13 = ["mlx[cuda13]>=0.32.5; sys_platform == 'linux'"]
|
|
30
|
+
torch = ["torch>=2.4"]
|
|
31
|
+
xla = ["jax>=0.4.38"]
|
|
32
|
+
xla-cuda12 = ["jax[cuda12]>=0.4.38; sys_platform == 'linux'"]
|
|
33
|
+
ray = ["ray>=2.43"]
|
|
34
|
+
qmc = ["scipy>=1.15"]
|
|
35
|
+
mcp = ["mcp>=1.26,<2"]
|
|
36
|
+
test = ["pytest>=8", "jsonschema>=4.23"]
|
|
37
|
+
|
|
38
|
+
[tool.setuptools.packages.find]
|
|
39
|
+
where = ["src"]
|
|
40
|
+
|
|
41
|
+
[tool.setuptools.package-data]
|
|
42
|
+
nexde = ["data/*.json", "data/cuda_jets/*.ptx", "py.typed"]
|
|
43
|
+
|
|
44
|
+
[tool.setuptools.dynamic]
|
|
45
|
+
version = {attr = "nexde._version.__version__"}
|
|
46
|
+
|
|
47
|
+
[tool.pytest.ini_options]
|
|
48
|
+
testpaths = ["tests"]
|
nexde-0.9.3/setup.cfg
ADDED
nexde-0.9.3/setup.py
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import sys
|
|
2
|
+
|
|
3
|
+
from setuptools import Extension, setup
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
flags = (["/O2", "/fp:strict", "/std:c++17"] if sys.platform == "win32" else
|
|
7
|
+
["-O3", "-ffp-contract=off", "-fno-fast-math", "-std=c++17"])
|
|
8
|
+
link_args = ["-framework", "Accelerate"] if sys.platform == "darwin" else []
|
|
9
|
+
|
|
10
|
+
setup(ext_modules=[Extension("nexde._cpu_jets", ["src/nexde/_cpu_jets.cpp"],
|
|
11
|
+
language="c++", extra_compile_args=flags,
|
|
12
|
+
extra_link_args=link_args, optional=True)])
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
"""A differentiable collocation solver for strong-form physics-informed networks."""
|
|
2
|
+
|
|
3
|
+
from .backend import device_info
|
|
4
|
+
from ._version import __version__
|
|
5
|
+
from .adaptive_quadrature import AdaptiveQuadrature
|
|
6
|
+
from .builders import bundle_solver, dgm_solver, multifidelity_solver, operator_solver, solver_1d, solver_2d, solver_nd
|
|
7
|
+
from .constraints import FeatureMap, HardConstraint
|
|
8
|
+
from .density import fokker_planck_solver
|
|
9
|
+
from .expression import (Expr, coefficient, coordinate, cos, exp, field, left, linear, log, normal, normal_derivative,
|
|
10
|
+
operation, quadrature, right, select, sin, spherical_laplacian, spherical_to_cartesian, tanh)
|
|
11
|
+
from .formulation import Condition, Observation, Region
|
|
12
|
+
from .fourier import FourierData, FourierSolution, FourierSolver, fourier_operator_solver
|
|
13
|
+
from .geometry import Box, CSG, Ellipsoid, Extrusion, Geometry, MovingGeometry, Polygon
|
|
14
|
+
from .mesh import MeshData, SimplexMesh
|
|
15
|
+
from .mesh_operator import MeshCondition, MeshSolution, MeshSolver, mesh_operator_solver
|
|
16
|
+
from .nonlocal_ops import QuadratureGrid, caputo, fractional_laplacian, volterra
|
|
17
|
+
from .losses import Loss
|
|
18
|
+
from .posterior import Posterior, sample_posterior
|
|
19
|
+
from .problem import Problem, Solution, SolutionSlice, Solver, example, problem_schema, solve, validate_problem
|
|
20
|
+
from .repeats import RepeatResult, RepeatRun
|
|
21
|
+
from .sampling import (Chebyshev, GaussLegendre, GeneratorInput, GeneratorSpec, Grid, Halton, Hammersley,
|
|
22
|
+
PointCloud, PointGenerator, RandomSampler, SampleBatch, SampleRequest, Sobol,
|
|
23
|
+
make_generator, sample_points)
|
|
24
|
+
from .solver import DeepGalerkin, DeepONet, FourierOperator, MLP, MeshOperator, MultiFidelity, Term, Trainer, load_model, residual_values
|
|
25
|
+
from .stochastic import SDESolver, sde_solver
|
|
26
|
+
from .tooling import (capabilities, fit_and_predict, fit_grid_and_predict, fit_grid_predict_schema,
|
|
27
|
+
fit_mesh_and_predict, fit_mesh_predict_schema, fit_predict_schema, sample_and_predict,
|
|
28
|
+
sample_predict_schema)
|
|
29
|
+
|
|
30
|
+
__all__ = ["AdaptiveQuadrature", "Box", "CSG", "Chebyshev", "Condition", "DeepGalerkin", "DeepONet", "Ellipsoid", "Expr", "Extrusion",
|
|
31
|
+
"FeatureMap", "FourierData", "FourierOperator", "FourierSolution", "FourierSolver", "GaussLegendre", "GeneratorInput",
|
|
32
|
+
"GeneratorSpec", "Geometry", "Grid", "Halton", "Hammersley",
|
|
33
|
+
"HardConstraint", "Loss", "MLP", "MeshCondition", "MeshData", "MeshOperator", "MeshSolution", "MeshSolver",
|
|
34
|
+
"MovingGeometry", "MultiFidelity", "Observation", "PointCloud", "PointGenerator",
|
|
35
|
+
"Polygon", "Posterior", "Problem", "QuadratureGrid", "RandomSampler", "Region", "RepeatResult", "RepeatRun",
|
|
36
|
+
"SampleBatch", "SampleRequest", "SDESolver", "SimplexMesh", "Sobol", "Solution", "SolutionSlice", "Solver",
|
|
37
|
+
"Term", "Trainer",
|
|
38
|
+
"bundle_solver", "capabilities", "caputo", "coefficient", "coordinate",
|
|
39
|
+
"cos", "device_info", "dgm_solver", "example", "exp", "field", "fit_and_predict", "fit_grid_and_predict",
|
|
40
|
+
"fit_grid_predict_schema", "fit_mesh_and_predict", "fit_mesh_predict_schema", "fit_predict_schema",
|
|
41
|
+
"fokker_planck_solver", "fourier_operator_solver", "fractional_laplacian", "left", "linear", "load_model", "log", "make_generator",
|
|
42
|
+
"mesh_operator_solver", "multifidelity_solver",
|
|
43
|
+
"normal", "normal_derivative", "operation", "operator_solver", "problem_schema", "quadrature", "residual_values", "right",
|
|
44
|
+
"sample_and_predict", "sample_points", "sample_posterior", "sample_predict_schema", "sde_solver", "select",
|
|
45
|
+
"sin", "solve", "solver_1d", "solver_2d", "solver_nd", "spherical_laplacian",
|
|
46
|
+
"spherical_to_cartesian", "tanh", "validate_problem", "volterra"]
|