A general purpose Python math module
Project description
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:
- Elementwise addition, subtraction, multiplication and division with another matrix
- Addition, subtraction, multiplication and division by a scalar
- Matrix transpose,
- Matrix product,
- Filling a matrix with ascending values, descending values, random values or a single value
- Getting or setting values
- Creating a matrix from data
- Mapping with sigmoid, tanh, ReLU and leaky ReLU, as well as their derivatives
- Getting the matrix as a Python list
- Supports pickling with the standard library
pickle
module - 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
Built Distributions
Hashes for libpymath-0.5.0-cp38-cp38-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ab9012f3cb49eb96527e515077d9af38f222fbe2e0fc1e7b26a546315240b7cf |
|
MD5 | 906dabc5c9479ba685f693eda7e32ea9 |
|
BLAKE2b-256 | 8dbcce4474d6ef351f0071877b3362be8f0c9a7aa999892f2ed774b4990efccb |
Hashes for libpymath-0.5.0-cp38-cp38-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8975f30861673d1d26d752cbe5fbdf7d515e65352e44cb4cadfc6854e3396fd8 |
|
MD5 | f2a84dded9bafdbed34e0a37cdadb892 |
|
BLAKE2b-256 | 82432cf742920709836b6c2a7766b3fc639dd8a9cd79215b34fdcedb7579524e |
Hashes for libpymath-0.5.0-cp37-cp37m-macosx_10_9_intel.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d34f5ecf985497cb70168ed41ac07141e1e1d10467b20015a9a63a098dcb336a |
|
MD5 | 48cc17a335fa98b4cf57345795eb1559 |
|
BLAKE2b-256 | df7334309187e3c5ec9b56a69f04c1d7022d211cae748143d58a116f048ad001 |
Hashes for libpymath-0.5.0-cp36-cp36m-macosx_10_9_intel.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | fcf51ac898300b8ab83898627728c4ff5b9904da412a1ad4a71ea61dadc50193 |
|
MD5 | c1f7088d747e24b29b447929a1905c9d |
|
BLAKE2b-256 | 4ee33dfed225cf3fe94b25e061834bba0d1508cb8ece6592f2f72fca641b8ea9 |
Hashes for libpymath-0.5.0-cp35-cp35m-macosx_10_9_intel.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ad33e3bf7b3c47fd4d998faedeb7a7a18dea44830fc30636294392f1dd49d89f |
|
MD5 | d015c0678b5a97badc265690218ecf3e |
|
BLAKE2b-256 | b326a7ff51c702594ee1cae04b68b0146331a44a98b8be515613fa5092c13432 |