PyArmadillo: an alternative approach to linear algebra in Python
mat
and cube
are initialised to contain zero-valued elements by defaultstandalone zeros()
, ones()
, randu()
, randn()
, eye()
pyarma_rng.set_seed(value)
and pyarma_rng.set_seed_random()
lu()
, qr()
, qr_econ()
, qz()
, svd_econ()
size
objectsrange()
renamed to spread()
to prevent conflicts with built-in range()
in Pythonsolve()
, solve_opts_*
flags renamed to solve_opts.*
(eg. solve_opts_fast
is now solve_opts.fast
)mat
and cube
constructors, fill_*
flags renamed to fill.*
(eg. fill_zeros
is now fill.zeros
)For downloading the packages, please visit here
Fixed some bugs and improved the format.
See more here --- PyArmadillo's PyPI website
For building the package locally, please download from here.
See the README file in the .tar.xz package for full installation instructions
Installation requirements:
If you encounter any bugs or regressions, please report them
If you use PyArmadillo in your research and/or software, please cite the associated papers; citations are useful for the continued development and maintenance of the library
Linux based operating systems (eg. Fedora, Ubuntu, CentOS, Red Hat, Debian, etc)
Before installing PyArmadillo, first install OpenBLAS, LAPACK, Python 3, and pip3, along with the corresponding development/header files
On CentOS 8 / RHEL 8, the CentOS PowerTools repository may first need to be enabled:
dnf config-manager --set-enabled powertools
Recommended packages to install before installing PyArmadillo: Fedora, CentOS, RHEL: gcc-c++, libstdc++-devel, openblas-devel, lapack-devel, python3-devel, python3-pip Ubuntu and Debian: g++, libopenblas-dev, liblapack-dev, python3-dev, python3-pip
macOS
Before installing PyArmadillo, install Xcode (version 8 or later) and then type the following command in a terminal window:
xcode-select --install
Xcode command-line tools include the Python 3 development files, but pip3 needs to be updated:
pip3 install --user --upgrade pip
The "Accelerate" framework is used for accessing BLAS and LAPACK functions; see the README file in the package for more information
Windows (x64)
Before installing Pyarmadillo, fist install Microsoft Visual Studio (2019 or later) and use the x64 Native Tools Command Prompt
The PyArmadillo package contains pre-compiled OpenBLAS 0.3.10, which is used for accessing BLAS and LAPACK functions
Alternative implementations and/or distributions of BLAS and LAPACK are available at:
Caveat: 32-bit Windows (x86) is currently not supported
Caveat: for any high performance scientific/engineering workloads, we strongly recommend using a Linux based operating system.