Skip to main content

A general purpose Python math module

Project description

Build Status Documentation Status PyPI version fury.io PyPI license PyPI pyversions Downloads per month

LibPyMath

A fast, general purpose math library for Python


Install

Run pip install libpymath to dowload and install libpymath for your system. There are also wheels provided for many of the latest Python versions on Windows, Mac OS* and Linux thanks to the cibuildwheel project.


Features and usage

Matrix math

Easily create, manipulate and perform calculations with dense matrices. The matrices themselves are stored and manipulated with optimised C code, resulting in faster operations and more efficient calculations. To further increase the speed of the calculations, when libpymath imported into a project for the first time, it runs some tests on the CPU to find the optimal number of threads to use for the matrix calculations.

The matrix library contains many features, such as:

  1. Elementwise addition, subtraction, multiplication and division with another matrix
  2. Addition, subtraction, multiplication and division by a scalar
  3. Matrix transpose,
  4. Matrix product,
  5. Filling a matrix with ascending values, descending values, random values or a single value
  6. Getting or setting values
  7. Creating a matrix from data
  8. Mapping with sigmoid, tanh, ReLU and leaky ReLU, as well as their derivatives
  9. Getting the matrix as a Python list
  10. Supports pickling with the standard library pickle module
  11. Formatting and printing a matrix

* Due to Clang on Mac OS the wheels do not support OpenMP, meaning some matrix operations may be slower than on other operating systems.

Project details


Release history Release notifications | RSS feed

Download files

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

Source Distribution

libpymath-0.4.4.tar.gz (35.6 kB view details)

Uploaded Source

File details

Details for the file libpymath-0.4.4.tar.gz.

File metadata

  • Download URL: libpymath-0.4.4.tar.gz
  • Upload date:
  • Size: 35.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.2.0.post20200714 requests-toolbelt/0.9.1 tqdm/4.47.0 CPython/3.8.3

File hashes

Hashes for libpymath-0.4.4.tar.gz
Algorithm Hash digest
SHA256 aa5a93db801aed1af66db6f1b1502b178c06cd9d10139b93dcab6684714cb0f4
MD5 c96b576222a2cec6314e73c97c1e384d
BLAKE2b-256 66cfad89424d7985e1cef7c03102bd455b343ae33a5ed7653fc0d338a8d1ce99

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