Skip to main content

fast linear transforms in Python

Project description

fastmat

Version Status fastmat Python wheels

License Python versions Implementation

Coverage Status Codacy Badge GitHub issues master: Build Status Documentation Status

Description

Scientific computing requires handling large composed or structured matrices. Fastmat is a framework for handling large composed or structured matrices. It allows expressing and using them in a mathematically intuitive way while storing and handling them internally in an efficient way. This approach allows huge savings in computational time and memory requirements compared to using dense matrix representations.

Dependencies

  • Python 2.7, Python >=3.4
  • Numpy >= 1.14.6
  • Scipy >= 1.0
  • Cython >= 0.29
  • soft dependencies:
    • matplotlib: for demos and tools that make use of plotting functions

Distribution

Binary wheels are provided for Python >=3.5 for linux, windows and mac, as well as for x86 and ARM architectures.

For all systems, for which no wheels are provided, you may still install fastmat from the soruce distribution.

Authors & Contact Information

Citation / Acknowledgements

If you use fastmat, or parts of it, for commercial purposes you are required to acknowledge the use of fastmat visibly to all users of your work and put a reference to the project and the EMS Group at TU Ilmenau.

If you use fastmat for your scientific work you are required to mention the EMS Group at TU Ilmenau and cite the following publication affiliated with the project:

C. Wagner and S. Semper, Fast Linear Transforms in Python, arXiV:1710.09578, 2017

-- https://arxiv.org/abs/1710.09578

Installation

fastmat currently supports Linux, Windows and Mac OS. Lately it also has been seen on ARM cores coming in a Xilinx ZYNQ FPGA SoC shell. We encourage you to go ahead trying other platforms as the aforementioned as well and are very happy if you share your experience with us, allowing us to keep the list updated.

Installing with pip:

fastmat is included in the Python Package Index (PyPI) and can be installed from the commandline by running one easy and straightforward command: pip install fastmat

When installing with pip all dependencies of the package will be installed along. With release 0.1.1 python wheels will be offered for many versions greatly improving installation time and effort.

Bulding from source

Building binaries has been developed and tested for the use

Manually installing from source

  • download the source distribution from our github repository: https://github.com/EMS-TU-Ilmenau/fastmat/archive/stable.zip
  • unpack its contents and navigate to the project root directory
  • run pip install . to install fastmat on your computer
  • you may also install fastmat without pip, using the offered makefile:
    • type make install to install fastmat on your computer
    • If you intend to install the package locally for your user type make install MODE=--user instead
    • You may add a version specifier for all make targets that directly or indirectly invoke Python: make install PYTHON=python2 make compile PYTHON=python3
    • If you only would like to compile the package to use it from this local directory without installing it, type make compile
    • An uninstallation of a previously run make installis possible, provided the installation log file setup.files has been preserved Invoking make uninstall without a local setup.files causes another installation for generating the setup file log prior to uninstalling
  • NOTE: Windows users If you intent on building fastmat from source on a windows platform, make sure you have installed a c compiler environment and make interpreter. One way to accomplish this is to install these tools for Python 2.7 (you may also chose different ones, of course):
    • Intel Distribution for Python 2.7
    • Microsoft Visual C++ Compiler 9.0 for Python 2.7
    • GNU make for Windows 3.81 or newer
    • depending on your system: The relevant header files

Demos

Feel free to have a look at the demos in the demo/ directory of the source distribution. Please make sure to have fastmat already installed when running these.

Please note that the edgeDetect demo requires the Python Imaging Library (PIL) installed and the SAFT demos do compile a cython-core of a user defined matrix class beforehand thus having a delaying the first time they're executed.

Documentation / HELP !

Please have a look at the documentation, which is included in the source distribution at github or may be built locally on your machine by running make doc

If you experience any trouble please do not hesitate to contact us or to open an issue on our github projectpage: https://github.com/EMS-TU-Ilmenau/fastmat

FAQ

Please check out our project documentation at readthedocs.

Windows: Installation fails with various "file not found" errors

Often, this is caused by missing header files. Unfortunately windows ships without a c-compiler and the header files necessary to compile native binary code. If you use the Intel Distribution for Python this can be resolved by installing the Visual Studio Build tools with the version as recommended by the version of the Intel Distribution for Python that you are using.

Issue not resolved yet?

Please contact us or leave your bug report in the issue section. Thank You!

Download files

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

Files for fastmat, version 0.2.post0
Filename, size File type Python version Upload date Hashes
Filename, size fastmat-0.2.post0-cp27-cp27m-macosx_10_9_x86_64.whl (1.9 MB) File type Wheel Python version cp27 Upload date Hashes View
Filename, size fastmat-0.2.post0-cp27-cp27m-manylinux1_i686.whl (2.1 MB) File type Wheel Python version cp27 Upload date Hashes View
Filename, size fastmat-0.2.post0-cp27-cp27m-manylinux1_x86_64.whl (2.1 MB) File type Wheel Python version cp27 Upload date Hashes View
Filename, size fastmat-0.2.post0-cp27-cp27m-manylinux2010_i686.whl (2.1 MB) File type Wheel Python version cp27 Upload date Hashes View
Filename, size fastmat-0.2.post0-cp27-cp27m-manylinux2010_x86_64.whl (2.1 MB) File type Wheel Python version cp27 Upload date Hashes View
Filename, size fastmat-0.2.post0-cp27-cp27mu-manylinux1_i686.whl (2.1 MB) File type Wheel Python version cp27 Upload date Hashes View
Filename, size fastmat-0.2.post0-cp27-cp27mu-manylinux1_x86_64.whl (2.1 MB) File type Wheel Python version cp27 Upload date Hashes View
Filename, size fastmat-0.2.post0-cp27-cp27mu-manylinux2010_i686.whl (2.1 MB) File type Wheel Python version cp27 Upload date Hashes View
Filename, size fastmat-0.2.post0-cp27-cp27mu-manylinux2010_x86_64.whl (2.1 MB) File type Wheel Python version cp27 Upload date Hashes View
Filename, size fastmat-0.2.post0-cp35-cp35m-macosx_10_9_x86_64.whl (1.9 MB) File type Wheel Python version cp35 Upload date Hashes View
Filename, size fastmat-0.2.post0-cp35-cp35m-manylinux1_i686.whl (2.2 MB) File type Wheel Python version cp35 Upload date Hashes View
Filename, size fastmat-0.2.post0-cp35-cp35m-manylinux1_x86_64.whl (2.1 MB) File type Wheel Python version cp35 Upload date Hashes View
Filename, size fastmat-0.2.post0-cp35-cp35m-manylinux2010_i686.whl (2.2 MB) File type Wheel Python version cp35 Upload date Hashes View
Filename, size fastmat-0.2.post0-cp35-cp35m-manylinux2010_x86_64.whl (2.1 MB) File type Wheel Python version cp35 Upload date Hashes View
Filename, size fastmat-0.2.post0-cp35-cp35m-win32.whl (1.3 MB) File type Wheel Python version cp35 Upload date Hashes View
Filename, size fastmat-0.2.post0-cp35-cp35m-win_amd64.whl (1.5 MB) File type Wheel Python version cp35 Upload date Hashes View
Filename, size fastmat-0.2.post0-cp36-cp36m-macosx_10_9_x86_64.whl (2.0 MB) File type Wheel Python version cp36 Upload date Hashes View
Filename, size fastmat-0.2.post0-cp36-cp36m-manylinux1_i686.whl (2.3 MB) File type Wheel Python version cp36 Upload date Hashes View
Filename, size fastmat-0.2.post0-cp36-cp36m-manylinux1_x86_64.whl (2.2 MB) File type Wheel Python version cp36 Upload date Hashes View
Filename, size fastmat-0.2.post0-cp36-cp36m-manylinux2010_i686.whl (2.3 MB) File type Wheel Python version cp36 Upload date Hashes View
Filename, size fastmat-0.2.post0-cp36-cp36m-manylinux2010_x86_64.whl (2.2 MB) File type Wheel Python version cp36 Upload date Hashes View
Filename, size fastmat-0.2.post0-cp36-cp36m-win32.whl (1.4 MB) File type Wheel Python version cp36 Upload date Hashes View
Filename, size fastmat-0.2.post0-cp36-cp36m-win_amd64.whl (1.5 MB) File type Wheel Python version cp36 Upload date Hashes View
Filename, size fastmat-0.2.post0-cp37-cp37m-macosx_10_9_x86_64.whl (2.0 MB) File type Wheel Python version cp37 Upload date Hashes View
Filename, size fastmat-0.2.post0-cp37-cp37m-manylinux1_i686.whl (2.3 MB) File type Wheel Python version cp37 Upload date Hashes View
Filename, size fastmat-0.2.post0-cp37-cp37m-manylinux1_x86_64.whl (2.2 MB) File type Wheel Python version cp37 Upload date Hashes View
Filename, size fastmat-0.2.post0-cp37-cp37m-manylinux2010_i686.whl (2.3 MB) File type Wheel Python version cp37 Upload date Hashes View
Filename, size fastmat-0.2.post0-cp37-cp37m-manylinux2010_x86_64.whl (2.2 MB) File type Wheel Python version cp37 Upload date Hashes View
Filename, size fastmat-0.2.post0-cp37-cp37m-win32.whl (1.4 MB) File type Wheel Python version cp37 Upload date Hashes View
Filename, size fastmat-0.2.post0-cp37-cp37m-win_amd64.whl (1.5 MB) File type Wheel Python version cp37 Upload date Hashes View
Filename, size fastmat-0.2.post0-cp38-cp38-macosx_10_9_x86_64.whl (2.0 MB) File type Wheel Python version cp38 Upload date Hashes View
Filename, size fastmat-0.2.post0-cp38-cp38-manylinux1_i686.whl (2.4 MB) File type Wheel Python version cp38 Upload date Hashes View
Filename, size fastmat-0.2.post0-cp38-cp38-manylinux1_x86_64.whl (2.4 MB) File type Wheel Python version cp38 Upload date Hashes View
Filename, size fastmat-0.2.post0-cp38-cp38-manylinux2010_i686.whl (2.4 MB) File type Wheel Python version cp38 Upload date Hashes View
Filename, size fastmat-0.2.post0-cp38-cp38-manylinux2010_x86_64.whl (2.4 MB) File type Wheel Python version cp38 Upload date Hashes View
Filename, size fastmat-0.2.post0-cp39-cp39-macosx_10_9_x86_64.whl (2.1 MB) File type Wheel Python version cp39 Upload date Hashes View
Filename, size fastmat-0.2.post0-cp39-cp39-manylinux1_x86_64.whl (2.4 MB) File type Wheel Python version cp39 Upload date Hashes View
Filename, size fastmat-0.2.post0-cp39-cp39-manylinux2010_x86_64.whl (2.4 MB) File type Wheel Python version cp39 Upload date Hashes View
Filename, size fastmat-0.2.post0-pp27-pypy_73-macosx_10_9_x86_64.whl (1.5 MB) File type Wheel Python version pp27 Upload date Hashes View
Filename, size fastmat-0.2.post0.tar.gz (165.8 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page