Skip to main content

Python Mimetic Operators Library Enhanced

Project description

PyMOLE

Python implementation of MOLE (Mimetic Operators Library Enhanced)

Description

PyMOLE is a Python implementation of the SDSU's MOLE library, providing mimetic operators for numerical calculations. It offers both pure Python and C++ implementations, allowing users to choose between ease of installation and maximum performance.

Installation

Basic installation (Python-only):

pip install pymole

Full installation (with C++ backend):

pip install pymole[cpp]

Usage

import pymole
import numpy as np

# Create a gradient operator (uses Python backend by default)
grad = pymole.create_gradient(100, 0.1)

# Switch to C++ backend for performance
pymole.use_backend('cpp')
grad = pymole.create_gradient(100, 0.1)

# Apply operator
x = np.random.rand(100)
result = grad @ x

License

This project is licensed under the GNU General Public License v3.0 - see the LICENSE file for details.

Acknowledgments

Based on the original MOLE library:

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pymole-0.1.0a0.tar.gz (45.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pymole-0.1.0a0-py3-none-any.whl (33.2 kB view details)

Uploaded Python 3

File details

Details for the file pymole-0.1.0a0.tar.gz.

File metadata

  • Download URL: pymole-0.1.0a0.tar.gz
  • Upload date:
  • Size: 45.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.6

File hashes

Hashes for pymole-0.1.0a0.tar.gz
Algorithm Hash digest
SHA256 b30f2b293fc3876c9521a65a96e27fe09e2acdf4b983778e1849c730f9e17d0b
MD5 6530e56df067de8a9de77ea7c2837777
BLAKE2b-256 6f10c20515c909e68666e316dad30b60e5a6967c140b4167a29d7b135b901999

See more details on using hashes here.

File details

Details for the file pymole-0.1.0a0-py3-none-any.whl.

File metadata

  • Download URL: pymole-0.1.0a0-py3-none-any.whl
  • Upload date:
  • Size: 33.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.6

File hashes

Hashes for pymole-0.1.0a0-py3-none-any.whl
Algorithm Hash digest
SHA256 1e0c300a6803a4c2c01c3b941c2421af1ac0712e46bbde9f499b488dad54b957
MD5 44fe1192f5547bf68f9b3e3c04758117
BLAKE2b-256 f79c97698e007f3854b4bf2241d04ae0291c016ff8a9e7f0bdb6444952cf16bd

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page