PyArmadillo is a linear algebra and scientific computing 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 因而便利了与Matlab 类似语法的算法直接在 Python 中进行原型处理,并将基于 PyArmadillo 的 Python 代码转换为基于 Armadillo 的 C++ 执行器。转换后的代码可用于以下目的:与 Pybind11 一起加速基于 Python 的程序,或者将原在 Python 的原型算法整合到更大的 C++ 代码库。 PyArmadillo 提供了矩阵和立方的天体, 以及用于对存储在天体中存储的数据进行操纵的200多个相关功能。 Integer, 浮动点和复杂数字得到支持。 通过与 LAPACK, 或其高性性投法替代程序之一,例如 Intel MKL 或 OpinLAMALASASSA, 在 OpIFormFormex PyFormormex 中, 。