Metadata-Version: 2.5
Name: map2disc-jax
Version: 0.1.0
Summary: A JAX drop-in replacement for map2disc: map arbitrary simply-connected 2D domains to the unit disk and discretize with Zernike polynomials.
Project-URL: paper, https://doi.org/10.1088/1361-6587/adaee6
Project-URL: arXiv, https://arxiv.org/abs/2411.04683
Author: map2disc_jax contributors
License: MIT License
        
        Copyright (c) 2026 map2disc_jax contributors
        
        Permission is hereby granted, free of charge, to any person obtaining a copy
        of this software and associated documentation files (the "Software"), to deal
        in the Software without restriction, including without limitation the rights
        to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
        copies of the Software, and to permit persons to whom the Software is
        furnished to do so, subject to the following conditions:
        
        The above copyright notice and this permission notice shall be included in all
        copies or substantial portions of the Software.
        
        THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
        IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
        FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
        AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
        LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
        OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
        SOFTWARE.
License-File: LICENSE
Keywords: Laplace,boundary-conforming,conformal,coordinates,jax,zernike
Classifier: Development Status :: 4 - Beta
Classifier: Intended Audience :: Science/Research
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Classifier: Topic :: Scientific/Engineering :: Physics
Requires-Python: >=3.11
Requires-Dist: jax
Requires-Dist: matplotlib
Requires-Dist: mpmath
Requires-Dist: numpy
Requires-Dist: scipy
Requires-Dist: sympy
Provides-Extra: test
Requires-Dist: pytest>=8; extra == 'test'
Description-Content-Type: text/markdown

# map2disc_jax

JAX port of [map2disc](https://gitlab.mpcdf.mpg.de/gvec-group/map2disc) and of the Laplace path in [pybie2d](https://github.com/dbstein/pybie2d).

```bash
pixi install
pixi run test
```

That suite is a function-by-function comparison with map2disc and pybie2d.

This is an unofficial reimplementation, not the software described in the paper. The method is that of R. Babin, F. Hindenlang, O. Maj and R. Köberl, “Construction of an invertible mapping to boundary conforming coordinates for arbitrarily shaped toroidal domains,” *Plasma Physics and Controlled Fusion* **67**, 035005 (2025), [doi:10.1088/1361-6587/adaee6](https://doi.org/10.1088/1361-6587/adaee6).

Of pybie2d, only the Laplace path map2disc uses is ported: global smooth-boundary quadrature (even-N FFT derivatives, normals, curvature, weights), naive SLP/DLP form and apply, on-surface Kress SLP, and interior compensated DLP close-eval. There is no FMM.
