Skip to main content

Reference code snippets for matrix operations, calculus, and optimization algorithms

Project description

datamaths

A pip-installable package built from OMDS.py. Each function prints out a ready-to-run code snippet (matrix operations, differentiation/integration, Newton's method, Lagrange multipliers, KKT conditions, BFGS, PSO, Flower Pollination Algorithm, etc.) by raising it as a RuntimeError, so you can copy it straight from the traceback.

Install (from this folder)

pip install .

Or, for editable/development install:

pip install -e .

Usage

import datamaths

datamaths.commands()   # list all available snippet functions
datamaths.p1Matrixopr()  # raises RuntimeError containing the matrix-ops snippet

Available functions

  • p1Matrixopr()
  • p2vectorInte()
  • p3simplexDuality()
  • p4newton()
  • p5secant()
  • p6langrange()
  • p7kkt()
  • p8bfgs()
  • p9swarm()
  • p10flower()
  • alllib() – prints required third-party libraries and pip install commands
  • commands() – lists all function names

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

datamaths-0.1.0.tar.gz (13.5 kB view details)

Uploaded Source

Built Distribution

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

datamaths-0.1.0-py3-none-any.whl (13.0 kB view details)

Uploaded Python 3

File details

Details for the file datamaths-0.1.0.tar.gz.

File metadata

  • Download URL: datamaths-0.1.0.tar.gz
  • Upload date:
  • Size: 13.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.3

File hashes

Hashes for datamaths-0.1.0.tar.gz
Algorithm Hash digest
SHA256 73f3dc374af46462f0af51320e7fcbd6c0c0fad92bb5cb626c92673cf5c58350
MD5 55cf08c6064e19db72f2f48dc3251c5a
BLAKE2b-256 08521a0a0e0d50b2d89d1ac026cd0045f1700348dbcd73b9e9c7c7a901eec669

See more details on using hashes here.

File details

Details for the file datamaths-0.1.0-py3-none-any.whl.

File metadata

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

File hashes

Hashes for datamaths-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 ccc267ffd4e2a4941b6511dbb679b46e6ca3848c8f70931dca1d0fbe280e7dc9
MD5 de22f127068df778c08f7c3721483e27
BLAKE2b-256 f4525795fc2feaea965604ff9bef1d3860e7d7d4eb20f8fffde4ff4968ce4f80

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