fast linear transforms in Python
Project description
fastmat
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.5
- Numpy >= 1.16.3
- 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
- Sebastian Semper | sebastian.semper@tu-ilmenau.de Technische Universität Ilmenau, Institute for Mathematics, EMS Group
- Christoph Wagner | christoph.wagner@tu-ilmenau.de Technische Universität Ilmenau, Institute for Information Technology, EMS Group
- https://www.tu-ilmenau.de/it-ems/
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:
Christoph W. Wagner and Sebastian Semper and Jan Kirchhof, fastmat: Efficient linear transforms in Python, SoftwareX, 2022, https://doi.org/10.1016/j.softx.2022.101013
@article{Wagner_2022,
doi = {10.1016/j.softx.2022.101013},
url = {https://doi.org/10.1016%2Fj.softx.2022.101013},
year = {2022},
month = {jun},
publisher = {Elsevier {BV}},
volume = {18},
pages = {101013},
author = {Christoph W. Wagner and Sebastian Semper and Jan Kirchhof},
title = {fastmat: Efficient linear transforms in Python},
journal = {{SoftwareX}}
}
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 install
is possible, provided the installation log filesetup.files
has been preserved Invokingmake uninstall
without a localsetup.files
causes another installation for generating the setup file log prior to uninstalling
- type
- 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!
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 fastmat-0.2.2-cp311-cp311-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 871904c4c8a559ed8b85722a19383dd71c46c1593566c31b5151375568af79f3 |
|
MD5 | 428221c2f1e8bfd630f3f08ca3c357af |
|
BLAKE2b-256 | 383809b0570761acf5b60ec60e63f6849bc864e6f01173c615951f73ee50856f |
Hashes for fastmat-0.2.2-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | cb64a8bd5e6c8819b46dfb04017d1c61bee9fb51ffd75cfc5f247abff561b179 |
|
MD5 | a5272c6c1bdd13946eb70fe8805bdd25 |
|
BLAKE2b-256 | f037cf5d7dfc653c8eedf30c69387cdc804074cb67b73f9f613e26d59361c551 |
Hashes for fastmat-0.2.2-cp311-cp311-macosx_11_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ff477fe26c8a5745c5c4a549f87da371f155450f77909965e87e10b32ddb3592 |
|
MD5 | 8e6b2cea254474b4182fcf24be922d79 |
|
BLAKE2b-256 | e0a4d3a394088e60f6c812e9e3b6ed08e6e3acc40fbecb6ecd2becba059e49ea |
Hashes for fastmat-0.2.2-cp311-cp311-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6315e638f6f725733e9e5ea8c4621cde444c19fc68c68b6a4e05d34173497552 |
|
MD5 | d7fb7886c2eb6da9243997dc29960f25 |
|
BLAKE2b-256 | d0c23fca55143cfee28442af0f86462f61eb5a3e61fe747e7de136297a936f18 |
Hashes for fastmat-0.2.2-cp310-cp310-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4e63eebe997dfb1395916caa05d30b727892e18b52649471bb34654be5c93ff4 |
|
MD5 | 4a4af8c73e99e67fb391f8be93ceb581 |
|
BLAKE2b-256 | 6b44b7df96f5bdae40db98209b13cdad7d2562b63dbab5060b96b401ee242118 |
Hashes for fastmat-0.2.2-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | dbec137b0439d7ba66ff9213af9811f183d69216af04730f7624c078d6274706 |
|
MD5 | 1bb413d6caa7715d0bbbf8aac9ceb3aa |
|
BLAKE2b-256 | e6c329b2b8a81ac6950d7657a6c824be7fa90a7bbb23434d8ffc3cbaaf7e8e9d |
Hashes for fastmat-0.2.2-cp310-cp310-macosx_11_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b5632145331e541fc1df58ad0fed52f59245cd9936d5a0ddb56d54e60371e9db |
|
MD5 | 9de54eb85dad858f20073dc6eeb13888 |
|
BLAKE2b-256 | 09e59443b56279c53d0f914408f3506e3b4a7fdc6003bfaabcd027f7555a70fb |
Hashes for fastmat-0.2.2-cp310-cp310-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 95ff6743c3c53eb6e3322e3759ea08a47f20c5ae9fa11b234039074362a6f279 |
|
MD5 | 9a70914f8e7cc7a9cd5274561f6a996c |
|
BLAKE2b-256 | cce1b8e9fe20fd65a721f292f6c8e7446faf43581a15a5b7e701ea2ba17892f5 |
Hashes for fastmat-0.2.2-cp39-cp39-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e8ad4e2cb50e25aa23dd19ae0efdade06422a83604683337cf93b0b78f8f112d |
|
MD5 | a41cbb530b75efd129298de474cf8b4f |
|
BLAKE2b-256 | 091c40e3c9851865177c1a6ebf99679f34b89fa7c3d43b32d948df756041fbf3 |
Hashes for fastmat-0.2.2-cp39-cp39-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e0443a23ecb7f1bf983de62aa08cbdd7de9610a0788d20fec9ff25eb8d1593cd |
|
MD5 | 8ac9b24cdcfa2637cfed26d3db178487 |
|
BLAKE2b-256 | b97c4cc89845056ff9a00a6cbaf908821b9073bde2c52d5186dfa98a998dbf0b |
Hashes for fastmat-0.2.2-cp39-cp39-manylinux2010_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | de287691c7ed248dcdf61dc21c7fab17b53e9a9507c7a7da4dfb5ea61b74108b |
|
MD5 | ab10216279b7025750e022f87e0fc220 |
|
BLAKE2b-256 | ddc434659d2f642235d31f7634ac7cbfe485191e82414e0a80ec3712101d48ff |
Hashes for fastmat-0.2.2-cp39-cp39-manylinux2010_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e214797118e908e66cbb36b78c1d343702b5b40a765514c18f353e37d9ca56c3 |
|
MD5 | 43fa023dbf34f6ca18314d09b95685d3 |
|
BLAKE2b-256 | fd1099c17515373cacbb3965e2f1b8ec093f9333454dc9af5a61ce3dc25aa768 |
Hashes for fastmat-0.2.2-cp39-cp39-manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 62823b06cf7f5013aeb29b469e0046581e1b04e6a00223c4b7e8d3885213e0d8 |
|
MD5 | 21cf1216a821827f84198169d7557875 |
|
BLAKE2b-256 | f7f6c389fb146c544f37e7e59fcb38c9bb7c7eaed048e9ceddd55da48b36290a |
Hashes for fastmat-0.2.2-cp39-cp39-manylinux1_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 78ae8b35802d0231cc131faee7683abbb4f928ac630347394e54585d2db58685 |
|
MD5 | 8788f51081ce5d165573425e94a8477e |
|
BLAKE2b-256 | acbc36139d13552c7d6e870e0c4f30681a8a374b77d078f1bf37dd3db107db30 |
Hashes for fastmat-0.2.2-cp39-cp39-macosx_11_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1e3b4107c7c7b6d5653f15c7b228896112b4d9980ea8b82b450e16fee1f60195 |
|
MD5 | 41be66cc0605078ff1e047c61bb3cdae |
|
BLAKE2b-256 | 07c9e01a8b2350ec605461ed7d7ca4ff8eb6c3af54508584351c968d2316b626 |
Hashes for fastmat-0.2.2-cp39-cp39-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f0d1f26b482a51c091df005c9e2511fbaf50c7dc935f22f3d2654eebfaf32926 |
|
MD5 | cd24cbd20d8f1d3e28155279628eaf24 |
|
BLAKE2b-256 | 653a6d892e6ecf76bebf22a50162d5dc1054e9734c49136987f6335343dd5018 |
Hashes for fastmat-0.2.2-cp38-cp38-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 36d1d4aa177e0c987ddc50582cc34ceb2c6c72f1679bc7252317754ddacd43e1 |
|
MD5 | c523a15d55dc7f22d7a6671ff52d8cd7 |
|
BLAKE2b-256 | 01692b47fac055129677d18e43c02403c19ff1fc3e0d7b6a8b24d5de32a380ce |
Hashes for fastmat-0.2.2-cp38-cp38-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | bc1ff517fac3cc0a4dc11124285562cde707b1b179a6931e3bbe39e1893ee6bf |
|
MD5 | d7b09868d2cdee89529b93632881334e |
|
BLAKE2b-256 | 105ab3d026a5e40643195711c97ccfa26116de1c1c23000758b56800f6400cfb |
Hashes for fastmat-0.2.2-cp38-cp38-manylinux2010_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e2fdf40c95df323482bdc68597d07e09e5e6583b329ab516c93c21dadf5c0ffd |
|
MD5 | f67621979a18e6cb62c3a12f21e3633e |
|
BLAKE2b-256 | 40957c59b462ba595b68f2d69652ae2e9019bd2d56f4237fe392f9f9a91ba37c |
Hashes for fastmat-0.2.2-cp38-cp38-manylinux2010_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 654c889b8916c25496ae734de9cc7a9b816fed479cea97119c9f4c91573bd0bb |
|
MD5 | 10132e6e7298afed39158e968edee2f8 |
|
BLAKE2b-256 | 98188b1826fd523cf1f8cbd884910ff5b18b4f45f105cb29cb49f2cefebaebef |
Hashes for fastmat-0.2.2-cp38-cp38-manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 734f9df06669ecbfc53d610962f878c6f91aa0cbd2e346d93ebeb002f5ed5242 |
|
MD5 | aaa75493a4a512d14471a5f505615ad9 |
|
BLAKE2b-256 | 69e98de03f3d9e4c9dcbb6f860a59a2cc1c6793a356e3a29d92db94ba1ade5db |
Hashes for fastmat-0.2.2-cp38-cp38-manylinux1_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4a958fba87c8779db9139d27ebcf5331ff6508a2eafb12be4120ec846aca6e40 |
|
MD5 | e1f05083326189ba2be29674c97f2617 |
|
BLAKE2b-256 | 388d0ae810b91579addb7fd75fa2fd97ed02a9c5d5fc29c56902f5d82a179a18 |
Hashes for fastmat-0.2.2-cp38-cp38-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | cc1d2f5c04c3220fafd52e023335782ed046b70851070792fb6f03b464528b16 |
|
MD5 | 7de313e5ffe2da0e7a9064d937fcb413 |
|
BLAKE2b-256 | 9d19278494b17ba1cc99df7dff48a22456055bf8a36bc495b973293f0d1307ee |
Hashes for fastmat-0.2.2-cp37-cp37m-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2a972f5ab9c4653dfd8be28e4cd927787f254218e90f25720b58146d25d4eae8 |
|
MD5 | 03edf2c6bbbe5e08cbd0ac55943744b4 |
|
BLAKE2b-256 | a6439ccd13f1e8826bcd40961195d07c2b684bb7ba0b99f6479a6ed7ade4d268 |
Hashes for fastmat-0.2.2-cp37-cp37m-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | cfff844cf35cbc1fff4406f4cc37ca2f0571832ef54d70b0729754fc57386bae |
|
MD5 | 88172539fc11b585961f0b171c2ff2d9 |
|
BLAKE2b-256 | 0e0295cef51240344418e96a7059cc1157fed48d961b179a90274ebe200b76fb |
Hashes for fastmat-0.2.2-cp37-cp37m-manylinux2010_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 06a6e40a4539fcf5e8c2870c6b802727f8a026fac9d724fa39cfc8000e0b09ec |
|
MD5 | 997963daba4cc2ec287390df57939271 |
|
BLAKE2b-256 | b7ee9a320b1af6217a03ae12196220bd0668df5f9b00294b58140affaee7982d |
Hashes for fastmat-0.2.2-cp37-cp37m-manylinux2010_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 205ae62ab8286d64d1b456a9b7e74c5807304528f96790f22c4460fad2c37b07 |
|
MD5 | 05798904b4dbab1b207519ec8f93e045 |
|
BLAKE2b-256 | 79b380b1a237779a14745fb996d2d6fc17a998d6b5c91ae2f92fa257507a8a1e |
Hashes for fastmat-0.2.2-cp37-cp37m-manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0d54df6e2033b638002ca3439c89c3ea23d1cce5ade89b782345c18bc69f2d28 |
|
MD5 | 54160a9efccf109fa1e4dac4410563b6 |
|
BLAKE2b-256 | 4c1657cd07e914db9c6dda9d11b7cf2d24bd33b108994578151628a7ad1e0084 |
Hashes for fastmat-0.2.2-cp37-cp37m-manylinux1_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 09d6282d09b20111a723f534ced95029659dd5de5329fa99f957d8d0f4f84575 |
|
MD5 | 93391496cd7736a31c3f0f42dcfa7d1f |
|
BLAKE2b-256 | 7b10970071511a244f4e0c5cf1e81fbe83dad7e614a5691a57c780a696f9bf29 |
Hashes for fastmat-0.2.2-cp37-cp37m-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 24ebcfd6b4a5a2eff4202bfc0dd7fe64245969d2925af78673430dfde20cec86 |
|
MD5 | b14ea32d1d86736b9ba3623e4f954003 |
|
BLAKE2b-256 | f26cf51815e3381fb6d964a148e8d07ec206be43c9bda6b58520b7f487f3e284 |
Hashes for fastmat-0.2.2-cp36-cp36m-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 214336a10f444f204dff9fadb26513e52e47ecaf2d4139cc117d886e8c3dc33f |
|
MD5 | ab3a7112989ee305b5b5330d3a728a9b |
|
BLAKE2b-256 | 0e8b158249c102701b1f4205213d8c51adca4f25fdcfce8381623c9248fb3ebe |
Hashes for fastmat-0.2.2-cp36-cp36m-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 09f9a1450f506c6bc63285180aa2253f8ec0cf47d18ec0e448c5d90b63ed9616 |
|
MD5 | 95bac3999993ddba078cecf05d18021a |
|
BLAKE2b-256 | 603f33c27281c0363fc0ff504c81eb0269a6434102cc08d2d7fb5054f851c4fe |
Hashes for fastmat-0.2.2-cp36-cp36m-manylinux2010_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | dfa0cc2af6883846909e69b1661f0a3069490f6ef2037436f44978b575dd2f7e |
|
MD5 | 3db5825349548a0377708abfb0dbe108 |
|
BLAKE2b-256 | f8795fd05ee1a50c2799410f5fe963fcb68308517a8b0f53a939113fa385c57e |
Hashes for fastmat-0.2.2-cp36-cp36m-manylinux2010_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0314f6ce91b4a86095403291c20267a4022d9259697a32a09d4de5404f72e0ce |
|
MD5 | 4132283e8d66ed2fe28779365a634061 |
|
BLAKE2b-256 | e1854cdec46aa9a1586e3210078c0df19f82ca2eba474dacad8c3a9f3dc396f0 |
Hashes for fastmat-0.2.2-cp36-cp36m-manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 75460ab634ad341f845b50c417f8ed4e3fe972ed6451fa475461ab01eac9cb01 |
|
MD5 | 1141c8fd014ed163790d1622b69c0a58 |
|
BLAKE2b-256 | 848c0ee5d16456ffb5231582ba40809e5726982ba4d5f970498fb0c4238b7519 |
Hashes for fastmat-0.2.2-cp36-cp36m-manylinux1_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1708a93081a91850157a8ff09d518b50252968de33598f5b8979f6a2ca154976 |
|
MD5 | 76ccbe5a01941a5faf0b373f53b74bd9 |
|
BLAKE2b-256 | 16fa6139edccb78d8974ff96b139c8057c264003fc58658c8a3b318d1d6e4a62 |
Hashes for fastmat-0.2.2-cp36-cp36m-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a086fd1fad3e82c73d1891137d7d1cabe268924c3199eeea4c700484605cb38f |
|
MD5 | 5e65dc1e6cdb0fdda2d349467185573e |
|
BLAKE2b-256 | 8e8c00fc3fd9a66f06c7f5eb41414cbc7b6ef48484f0c6ba17f7221306b154bc |