Skip to main content

Gravo MG Python Bindings

[Paper] [Project page]

Python binding for Gravo MG. Gravo MG is a Geometric Multigrid Method for solving linear systems on curved surfaces. For more information, check out our project page.

How to use

Given positions of points on a mesh or point clouds and a neighborhood graph (e.g., the edges on a mesh), you can use Gravo MG to solve linear systems as follows:

import mgsolver

V, F = # Mesh with vertices and faces
M = # Mass matrix
S = # Stiffness matrix (Laplacian)

# Create the hierarchy
neigh = gravomg.util.neighbors_from_stiffness(S)
solver = gravomg.MultigridSolver(V, neigh, M)

# Solve a linear system
lhs = # Some left hand side, e.g. M + 0.01 * S, make sure it is in csr format.
rhs = # Some right hand side, e.g. M @ V
solution = solver.solve(lhs, rhs)

Installation

The Gravo MG package is available on pip

pip install gravomg

If you would like to recompile yourself, you can clone this repository

git clone --recurse https://github.com/rubenwiersma/gravo_mg_python.git

And install from the folder

cd gravo_mg_python
pip install ./

Citations

Please cite our paper if this code contributes to an academic publication:

@Article{WiersmaNasikun2023GravoMG,
author = {Ruben Wiersma, Ahmad Nasikun, Elmar Eisemann, Klaus Hildebrandt},
journal = {SIGGRAPH 2023},
title = {A Fast Geometric Multigrid Method for Curved Surfaces},
year = {2023},
month = jul,
number = {4},
volume = {41},
doi = {10.1145/3588432.3591502},
publisher = {ACM}
}

Metadata

Release files for gravomg 0.0.4

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for gravomg 0.0.4
File Size Uploaded Provenance Actions
gravomg-0.0.4.tar.gz 227.7 kB Without provenance Details for gravomg-0.0.4.tar.gz

Built distributions (wheels)

Table of built distributions (wheels) for gravomg 0.0.4
File Actions
gravomg-0.0.4-pp310-pypy310_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl PyPy 3.10 PyPy 3.10 7.3 Linux glibc 2.17+ x86-64 Details for gravomg-0.0.4-pp310-pypy310_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
gravomg-0.0.4-pp39-pypy39_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl PyPy 3.9 PyPy 3.9 7.3 Linux glibc 2.17+ x86-64 Details for gravomg-0.0.4-pp39-pypy39_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
gravomg-0.0.4-pp38-pypy38_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl PyPy 3.8 PyPy 3.8 7.3 Linux glibc 2.17+ x86-64 Details for gravomg-0.0.4-pp38-pypy38_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
gravomg-0.0.4-pp37-pypy37_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl PyPy 3.7 PyPy 3.7 7.3 Linux glibc 2.17+ x86-64 Details for gravomg-0.0.4-pp37-pypy37_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
gravomg-0.0.4-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl CPython 3.12 CPython 3.12 Linux glibc 2.17+ x86-64 Details for gravomg-0.0.4-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
gravomg-0.0.4-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl CPython 3.11 CPython 3.11 Linux glibc 2.17+ x86-64 Details for gravomg-0.0.4-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
gravomg-0.0.4-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl CPython 3.10 CPython 3.10 Linux glibc 2.17+ x86-64 Details for gravomg-0.0.4-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
gravomg-0.0.4-cp310-cp310-macosx_13_0_arm64.whl CPython 3.10 CPython 3.10 macOS 13.0+ ARM64 Details for gravomg-0.0.4-cp310-cp310-macosx_13_0_arm64.whl
gravomg-0.0.4-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl CPython 3.9 CPython 3.9 Linux glibc 2.17+ x86-64 Details for gravomg-0.0.4-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
gravomg-0.0.4-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl CPython 3.8 CPython 3.8 Linux glibc 2.17+ x86-64 Details for gravomg-0.0.4-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
gravomg-0.0.4-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl CPython 3.7 CPython 3.7 pymalloc Linux glibc 2.17+ x86-64 Details for gravomg-0.0.4-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
gravomg-0.0.4-cp36-cp36m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl CPython 3.6 CPython 3.6 pymalloc Linux glibc 2.17+ x86-64 Details for gravomg-0.0.4-cp36-cp36m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl

Total release size: 2.6 MB

Release files / gravomg-0.0.4.tar.gz

Download URL gravomg-0.0.4.tar.gz
Size 227.7 kB
Tags Source
SHA-256 checksum
How to use checksums
8154b5ffd93f8228a50c1569c8b74d307f8803dfbea0d08c099a521c40a0e882
BLAKE2b-256 checksum
How to use checksums
ecc2c5057a547b455a706c28082a629fa22752655f9ea718bde9d0a7fa6883ee
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.10.10

Release files / gravomg-0.0.4-pp310-pypy310_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl

Download URL gravomg-0.0.4-pp310-pypy310_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Size 203.4 kB
Tags Linux glibc 2.17+ x86-64 PyPy 3.10 PyPy 3.10 7.3
SHA-256 checksum
How to use checksums
7cb651d5782f5cc6e589821610b86f64f4b0a51c9b51e05d77185615d2428475
BLAKE2b-256 checksum
How to use checksums
cc02e36a1671ac57e175d49de59a31eee7ca6da63042899ae9ca8363a3c2d183
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.8.12

Release files / gravomg-0.0.4-pp39-pypy39_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl

Download URL gravomg-0.0.4-pp39-pypy39_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Size 203.4 kB
Tags Linux glibc 2.17+ x86-64 PyPy 3.9 PyPy 3.9 7.3
SHA-256 checksum
How to use checksums
1b0fc08864ba6e04f41e388c8a3b24253e5459527a72dea23801c0350a5d3613
BLAKE2b-256 checksum
How to use checksums
6165391e39b111e6ee2ccbfb98d3677b8b88812567d06ac54ce67665f93be747
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.8.12

Release files / gravomg-0.0.4-pp38-pypy38_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl

Download URL gravomg-0.0.4-pp38-pypy38_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Size 203.3 kB
Tags Linux glibc 2.17+ x86-64 PyPy 3.8 PyPy 3.8 7.3
SHA-256 checksum
How to use checksums
9e0cb0ccb528a77d9d9e3fd70f97aa97010946cf075dbdc7ae7e75385262b53f
BLAKE2b-256 checksum
How to use checksums
12219aa84d5ef64a5d64e4843f42bf7ae153c9da7d80982c795b21f1d22695eb
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.8.12

Release files / gravomg-0.0.4-pp37-pypy37_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl

Download URL gravomg-0.0.4-pp37-pypy37_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Size 202.9 kB
Tags Linux glibc 2.17+ x86-64 PyPy 3.7 PyPy 3.7 7.3
SHA-256 checksum
How to use checksums
fb9dd4f6a52944f260d454e65e4afaa3b9b8718e2497068b912add712fa6e5fb
BLAKE2b-256 checksum
How to use checksums
7bddaf2ef86967ee47f4b58b9097eaae6606618e60b2057c241127aca9762756
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.8.12

Release files / gravomg-0.0.4-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl

Download URL gravomg-0.0.4-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Size 203.0 kB
Tags CPython 3.12 Linux glibc 2.17+ x86-64
SHA-256 checksum
How to use checksums
b048515b2bac2dce24139a52a7c3ee4f3ab33c8e491516d28dc008db11221024
BLAKE2b-256 checksum
How to use checksums
03e61df16b2944c8feb4f496884c36cb36a22deecfc6bc466cdd7d5d5317bc3a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.8.12

Release files / gravomg-0.0.4-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl

Download URL gravomg-0.0.4-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Size 204.3 kB
Tags CPython 3.11 Linux glibc 2.17+ x86-64
SHA-256 checksum
How to use checksums
c5843b486f3be7fe0ac43ba7a454dc667490659a86c54d64e637107a724283be
BLAKE2b-256 checksum
How to use checksums
132ca30ddd31b875c4453139190dbd3e0248d82bc98c1a8b8e761a9d72ee162b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.8.12

Release files / gravomg-0.0.4-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl

Download URL gravomg-0.0.4-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Size 203.2 kB
Tags CPython 3.10 Linux glibc 2.17+ x86-64
SHA-256 checksum
How to use checksums
21f28c49b30b38fce87dd4533347965143a9843cbfe3ccdda6115fc1dd4728dd
BLAKE2b-256 checksum
How to use checksums
43ca350831d70751b7cad61ef27fa20ec7d7f49ee47d13a0b51cd56dfa9fe08f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.8.12

Release files / gravomg-0.0.4-cp310-cp310-macosx_13_0_arm64.whl

Download URL gravomg-0.0.4-cp310-cp310-macosx_13_0_arm64.whl
Size 153.1 kB
Tags CPython 3.10 macOS 13.0+ ARM64
SHA-256 checksum
How to use checksums
1fa5c6506cb76f908d2c6cca77facf6de97d9c18ddae28e1a8d1be285863fb50
BLAKE2b-256 checksum
How to use checksums
f6cfece38a031d3fb4b7487180f5c273b8ab343d21fa7da381b092075e614878
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.10.10

Release files / gravomg-0.0.4-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl

Download URL gravomg-0.0.4-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Size 203.6 kB
Tags CPython 3.9 Linux glibc 2.17+ x86-64
SHA-256 checksum
How to use checksums
9143473ed290c1d7722b9a564e6a7ca161f86ed2bf83e249f1ce799ed8adb77f
BLAKE2b-256 checksum
How to use checksums
0e4f415273aaa018a3d7afffd9d509dc474262023c631eaacef57af986d4f437
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.8.12

Release files / gravomg-0.0.4-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl

Download URL gravomg-0.0.4-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Size 203.3 kB
Tags CPython 3.8 Linux glibc 2.17+ x86-64
SHA-256 checksum
How to use checksums
03afd7cba8278877325c98ea5c0407c449eb2a0920b10726640534ad4f066b57
BLAKE2b-256 checksum
How to use checksums
d7e9f0bf1a3fd5c166cbc26765a1e9e256a437ee6ce929195da47b064432a31e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.8.12

Release files / gravomg-0.0.4-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl

Download URL gravomg-0.0.4-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Size 205.6 kB
Tags CPython 3.7 CPython 3.7 pymalloc Linux glibc 2.17+ x86-64
SHA-256 checksum
How to use checksums
6c9f90c19bacdb48a5c95c883d13ba018c214f9a087e239f903616ce8a258879
BLAKE2b-256 checksum
How to use checksums
ccc320a1ea4c273436b5d40ace1f5534fcbdcd1ebe75530b6fdd1a545f8321db
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.8.12

Release files / gravomg-0.0.4-cp36-cp36m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl

Download URL gravomg-0.0.4-cp36-cp36m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Size 205.6 kB
Tags CPython 3.6 CPython 3.6 pymalloc Linux glibc 2.17+ x86-64
SHA-256 checksum
How to use checksums
6052f4a2fe3c58ccd4ef0330bb0b996e34e6bb7369897b339a9ade8a837546e3
BLAKE2b-256 checksum
How to use checksums
05a1c41afe6a515c350d546e7f55f31e77a0763ffdf4b71ed2e3537ad119f9ee
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.8.12

Security for gravomg 0.0.4

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.0.4 This release

13 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page