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.5.0.tar.gz (35.5 kB view hashes)

Uploaded Source

Built Distributions

libpymath-0.5.0-cp38-cp38-win_amd64.whl (46.8 kB view hashes)

Uploaded CPython 3.8 Windows x86-64

libpymath-0.5.0-cp38-cp38-macosx_10_9_x86_64.whl (51.7 kB view hashes)

Uploaded CPython 3.8 macOS 10.9+ x86-64

libpymath-0.5.0-cp37-cp37m-macosx_10_9_intel.whl (85.9 kB view hashes)

Uploaded CPython 3.7m macOS 10.9+ intel

libpymath-0.5.0-cp36-cp36m-macosx_10_9_intel.whl (85.9 kB view hashes)

Uploaded CPython 3.6m macOS 10.9+ intel

libpymath-0.5.0-cp35-cp35m-macosx_10_9_intel.whl (85.9 kB view hashes)

Uploaded CPython 3.5m macOS 10.9+ intel

Supported by

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