Scientific computing requires handling large linear models, which are often composed of structured matrices. With increasing model size, dense representations quickly become infeasible to compute or store. Matrix-free implementations are suited to mitigate this problem but usually complicate research and development effort by months, when applied to practical research problems.
Fastmat is a framework for handling large composed or structured matrices by offering an easy-to-use abstraction model. It allows expressing and using linear operators in a mathematically intuitive way, while maintaining a strong focus on efficient computation and memory storage. The implemented user interface allows for very readable code implementation with very close relationship to the actual mathematical notation of a given problem. Further it provides means for quickly testing new implementations and also allows for run-time execution path optimization.
Summarizing, fastmat provides a flexible and extensible framework for handling matrix-free linear structured operators efficiently, while being intuitive and generating easy-to-reuse results.
pyFFS: A Python Library for Fast Fourier Series Computation and Interpolation with GPU Acceleration
傅立叶变换是许多计算任务中经常需要的组成部分,并且可以通过快速傅立叶变换(FFT)算法有效地计算。然而,许多应用涉及潜在的连续信号,并且更自然的选择将是与例如傅立叶级数(FS)系数一起工作,以便避免在模拟域和离散域之间转换的额外开销。不幸的是,存在非常少的文献和工具的操作FS系数从离散样本。本文介绍了一个名为pyFFS的Python库,用于高效的FS系数计算,卷积和插值。虽然SciPy和NumPy库通过FFT算法为离散傅立叶变换系数提供了有效的功能,但pyFFS通过我们称之为快速傅立叶级数(FFS)的方法来解决FS系数的计算问题。此外,pyFFS包括基于线性调频Z变换的FS插值方法,当人们希望执行插值时,该方法可以使其比SciPy等效方法快一个数量级以上。通过CuPy库的GPU支持允许进一步加速,例如,计算1000 x 1000样本的2-D FS系数的速度快了一个数量级,2-D插值的速度快了近两个数量级。作为一个应用,我们讨论了pyFFS在傅里叶光学中的使用。pyFFS是一个开源软件包,网址是https://github.com/imagingofthings/pyFFS,文档网址是https://pyffs.readthedocs.io。
Multiscale finite element calculations in Python using SfePy
SfePy(Simple finite elements in Python)是一个软件,用于通过有限元法解决一维、二维或三维空间中由偏微分方程描述的各种问题。它的源代码大部分(85%)是Python,并依赖于NumPy包提供的快速矢量化操作。对于一个特定的问题,可以使用两个接口:一个是声明式应用程序编程接口(API),其中问题描述/定义文件(Python模块)用于定义计算,另一个是命令式API,可用于交互式命令或脚本和库。在概述了SfePy软件包的发展之后,本文介绍了它的实现、结构和一般特性。用一个简单的热传导问题的例子来描述定义偏微分方程的组件。具体来说,SfePy的声明性API在示例中呈现。为了说明SfePy的主要资产之一,用于实现复杂的多尺度模型的框架的基础上的均匀化理论,一个两尺度压电弹性模型的例子,显示问题的数学描述和相应的代码。
ALT: A Python Package for Lightweight Feature Representation in Time Series Classification
Faculty of Engineering and Natural Sciences(工程与自然科学学院);Tampere University(塔尔库大学);Department of Computational Sciences(计算科学系);Wigner Research Centre for Physics(沃尔什物理研究中心);Faculty of Science(科学学院);Eötvös Loránd University(欧多尼·洛朗大学);Institute for Global Prosperity(全球繁荣研究所);University College London(伦敦大学学院);Department of Statistics(统计学系)