pyfmmlib
Python wrappers around fmmlib{2,3}d by Greengard/Gimbutas
Science Score: 64.0%
This score indicates how likely this project is to be science-related based on various indicators:
-
✓CITATION.cff file
Found CITATION.cff file -
✓codemeta.json file
Found codemeta.json file -
✓.zenodo.json file
Found .zenodo.json file -
○DOI references
-
✓Academic publication links
Links to: zenodo.org -
✓Committers with academic emails
1 of 6 committers (16.7%) from academic institutions -
○Institutional organization owner
-
○JOSS paper metadata
-
○Scientific vocabulary similarity
Low similarity (12.7%) to scientific vocabulary
Keywords from Contributors
code-generation
multidimensional-arrays
isl
heterogeneous-parallel-programming
opencl
loop-optimization
polyhedral-model
computer-algebra
expression-tree
fast-multipole-method
Last synced: 6 months ago
·
JSON representation
·
Repository
Python wrappers around fmmlib{2,3}d by Greengard/Gimbutas
Basic Info
- Host: GitHub
- Owner: inducer
- Language: Python
- Default Branch: main
- Size: 1.13 MB
Statistics
- Stars: 19
- Watchers: 2
- Forks: 11
- Open Issues: 2
- Releases: 3
Created almost 13 years ago
· Last pushed 6 months ago
Metadata Files
Readme
Citation
README.rst
pyfmmlib: A Python Interface to FMMLIB
======================================
.. image:: https://gitlab.tiker.net/inducer/pyfmmlib/badges/main/pipeline.svg
:alt: Gitlab Build Status
:target: https://gitlab.tiker.net/inducer/pyfmmlib/commits/main
.. image:: https://github.com/inducer/pyfmmlib/actions/workflows/ci.yml/badge.svg
:alt: Github Build Status
:target: https://github.com/inducer/pyfmmlib/actions/workflows/ci.yml
.. image:: https://badge.fury.io/py/pyfmmlib.svg
:alt: Python Package Index Release Page
:target: https://pypi.org/project/pyfmmlib
.. image:: https://zenodo.org/badge/8921021.svg
:alt: Zenodo DOI for latest release
:target: https://zenodo.org/badge/latestdoi/8921021
pyfmmlib is a Python wrapper for `fmmlib2d
`__ and `fmmlib3d
`__ implementations of the
`fast multipole method `__ for
`Laplace `__ and
`Helmholtz `__ potentials by
Zydrunas Gimbutas and Leslie Greengard (and including code by many more people).
This wrapper is far from comprehensive. It just catches the things I ended up
needing. Nonetheless, the FMMs and a fair bit of other useful stuff is
accessible.
Installation
------------
Binary wheels and source code are available from the `Python package index
`__.
For either binary or source install, run the following command::
pip install pyfmmlib
Documentation
-------------
Not much, unfortunately. Here's what I do to figure out how to use stuff::
>>> import pyfmmlib
>>> dir(pyfmmlib)
['__builtins__', '__doc__', '__file__', '__name__', '__package__', '_add_plot', ...]
Fish the desired function from this list (let's use 'legefder' as an example)
and run::
>>> print pyfmmlib.legefder.__doc__
legefder - Function signature:
val,der = legefder(x,pexp,[n])
Required arguments:
x : input float
pexp : input rank-1 array('d') with bounds (n + 1)
Optional arguments:
n := (len(pexp)-1) input int
Return objects:
val : float
der : float
This tells you how to call the function from Python. You can then use grep to
fish out the right Fortran source::
$ grep -icl 'legefder' fmmlib*/*/*.f
fmmlib3d/src/legeexps.f
Then look at the docs there, and you're in business. No idea what function name
to look for? Just use the same grep procedure to look for keywords.
Crude, but effective. :)
Two more things:
* Some functions are wrapped with a ``_vec`` suffix. This means they apply to
whole vectors of arguments at once. They're also parallel via OpenMP.
* ``pyfmmlib.fmm_part`` and ``pyfmmlib.fmm_tria`` are (dimension-independent)
wrappers that make the calling sequence for the FMMs just a wee bit less
obnoxious. See ``examples/fmm.py`` for more.
Here's a rough idea how these are called::
from pyfmmlib import fmm_part, HelmholtzKernel
pot, grad = fmm_part("PG", iprec=2, kernel=HelmholtzKernel(5),
sources=sources, mop_charge=1, target=targets)
Unlike the rest of the library (which calls directly into Fortran),
these routines expect ``(n, 3)``-shaped (that is, C-Order) arrays.
License
-------
``fmmlib{2,3}d`` are licensed under the 3-clause BSD license. (as of November 2017)
This wrapper is licensed under the MIT license, as below.
Copyright (C) 2013 Andreas Kloeckner
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.
Owner
- Name: Andreas Klöckner
- Login: inducer
- Kind: user
- Location: Champaign, IL
- Company: Scientific Computing, CS@UIUC
- Website: http://andreask.cs.illinois.edu/aboutme
- Repositories: 225
- Profile: https://github.com/inducer
Citation (CITATION.cff)
cff-version: 1.2.0 message: "If you use this software, please cite it as below." authors: - family-names: "Kloeckner" given-names: "Andreas" orcid: "https://orcid.org/0000-0003-1228-519X" - family-names: "Wala" given-names: "Matt" - family-names: "Fernando" given-names: "Isuru" - family-names: "Fikl" given-names: "Alex" title: "pyfmmlib" version: 2022.1.1 doi: 10.5281/zenodo.6998966 date-released: 2022-08-16 url: "https://github.com/inducer/pyfmmlib" license: MIT
GitHub Events
Total
- Watch event: 3
- Delete event: 12
- Issue comment event: 1
- Push event: 13
- Pull request review event: 1
- Pull request review comment event: 1
- Pull request event: 27
- Fork event: 1
- Create event: 13
Last Year
- Watch event: 3
- Delete event: 12
- Issue comment event: 1
- Push event: 13
- Pull request review event: 1
- Pull request review comment event: 1
- Pull request event: 27
- Fork event: 1
- Create event: 13
Committers
Last synced: 9 months ago
Top Committers
| Name | Commits | |
|---|---|---|
| Andreas Kloeckner | i****m@t****t | 120 |
| Matt Wala | w****1@i****u | 38 |
| dependabot[bot] | 4****] | 28 |
| Alexandru Fikl | a****l@g****m | 17 |
| Isuru Fernando | i****f@g****m | 3 |
| Léon van Velzen | l****n@p****m | 1 |
Committer Domains (Top 20 + Academic)
illinois.edu: 1
tiker.net: 1
Issues and Pull Requests
Last synced: 6 months ago
All Time
- Total issues: 2
- Total pull requests: 59
- Average time to close issues: N/A
- Average time to close pull requests: 15 days
- Total issue authors: 2
- Total pull request authors: 5
- Average comments per issue: 3.5
- Average comments per pull request: 0.32
- Merged pull requests: 54
- Bot issues: 0
- Bot pull requests: 33
Past Year
- Issues: 0
- Pull requests: 23
- Average time to close issues: N/A
- Average time to close pull requests: about 5 hours
- Issue authors: 0
- Pull request authors: 2
- Average comments per issue: 0
- Average comments per pull request: 0.0
- Merged pull requests: 21
- Bot issues: 0
- Bot pull requests: 22
Top Authors
Issue Authors
- inducer (1)
- leon-vv (1)
- dependabot[bot] (1)
Pull Request Authors
- dependabot[bot] (53)
- inducer (15)
- alexfikl (14)
- mattwala (4)
- isuruf (2)
Top Labels
Issue Labels
dependencies (1)
Pull Request Labels
dependencies (53)
github_actions (9)
Packages
- Total packages: 2
-
Total downloads:
- pypi 348 last-month
-
Total dependent packages: 0
(may contain duplicates) -
Total dependent repositories: 8
(may contain duplicates) - Total versions: 33
- Total maintainers: 1
pypi.org: pyfmmlib
Python wrappers for particle FMMs
- Documentation: https://pyfmmlib.readthedocs.io/
- License: MIT
-
Latest release: 2024.1.1
published about 2 years ago
Rankings
Dependent repos count: 5.3%
Dependent packages count: 7.4%
Forks count: 11.5%
Average: 12.0%
Stargazers count: 15.2%
Downloads: 20.6%
Maintainers (1)
Last synced:
6 months ago
conda-forge.org: pyfmmlib
- Homepage: https://github.com/inducer/pyfmmlib
- License: MIT AND BSD-3-Clause
-
Latest release: 2022.1.1
published over 3 years ago
Rankings
Dependent repos count: 34.0%
Forks count: 44.7%
Average: 44.7%
Stargazers count: 48.9%
Dependent packages count: 51.2%
Last synced:
6 months ago
Dependencies
requirements.txt
pypi
- numpy *
.github/workflows/autopush.yml
actions
- actions/checkout v3 composite
.github/workflows/ci.yml
actions
- actions/checkout v3 composite
- actions/setup-python v4 composite
pyproject.toml
pypi
- numpy *