PyArmadillo is a linear algebra library for the Python language, with the aim of closely mirroring the programming interface of the widely used Armadillo C++ library, which in turn is deliberately similar to Matlab. PyArmadillo hence facilitates algorithm prototyping with Matlab-like syntax directly in Python, and relatively straightforward conversion of PyArmadillo-based Python code into performant Armadillo-based C++ code. The converted code can be used for purposes such as speeding up Python-based programs in conjunction with pybind11, or the integration of algorithms originally prototyped in Python into larger C++ codebases. PyArmadillo provides objects for matrices and cubes, as well as over 200 associated functions for manipulating data stored in the objects. Integer, floating point and complex numbers are supported. Various matrix factorisations are provided through integration with LAPACK, or one of its high performance drop-in replacements such as Intel MKL or OpenBLAS. PyArmadillo is open-source software, distributed under the Apache 2.0 license; it can be obtained at https://pyarma.sourceforge.io or via the Python Package Index in precompiled form.
翻译:PyArmadillo 是一个用于 Python 语言的线性代数库,目的是与广泛使用的 Armadillo C++ 图书馆的编程界面密切对应,而后者又有意地与Matlab相似。 PyArmadillo 因而促进直接在 Python 中与Matlab 类似语法的语法进行算法转换,并将基于 PyArmadillo 的 Python 代码相对简单地转换为基于 Armadillo 的 C++ 性能代码。转换后的代码可用于以下目的:与 Pybind11 一起加速基于 Python 的程序,或者将最初在 Python 原型的算法整合到更大的 C++ 代码库中。 PyArmadillo 提供了矩阵和立方体的天体, 以及用于对存储在对象中存储的数据进行调控的200多个相关功能。 各种矩阵因子化是通过LAPACK, 或其高性投法替代程序之一,如 Intel MKL 或 OpenLAS. PyArmadilloalformadroduft 。