arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 1312.4818cs.SEmath.CT
收藏

类型化线性代数:一种面向双积的方法

Typing linear algebra: A biproduct-oriented approach

Hugo Daniel Macedo, José N. Oliveira

摘要:

感兴趣的线性代数应用程序的快速运行代码的生成形式化,作者展示了如何无索引,计算方法矩阵代数可以通过把矩阵作为一个范畴的态射与biproducts。这将矩阵作为索引结构的传统观点转变为类似于编程的无点代数的类型级观点。从双积方程中推导出融合、消除和遵守定律,使得计算实现矩阵乘法(矩阵代数的中心运算)的算法变得容易,从其分治版本到其向量化实现。从错误的尝试,学习如何特定的产品和余产品出现的biproducts,不仅块矩阵代数被重新发现,但也扩展其他操作(如高斯消除)的方式,在一个计算风格,被发现。的前景,建设biproducts为基础的类型检查器的计算机代数系统,如MatlabTM也被考虑。

英文摘要:

Interested in formalizing the generation of fast running code for linear algebra applications, the authors show how an index-free, calculational approach to matrix algebra can be developed by regarding matrices as morphisms of a category with biproducts. This shifts the traditional view of matrices as indexed structures to a type-level perspective analogous to that of the pointfree algebra of programming. The derivation of fusion, cancellation and abide laws from the biproduct equations makes it easy to calculate algorithms implementing matrix multiplication, the central operation of matrix algebra, ranging from its divide-and-conquer version to its vectorization implementation. From errant attempts to learn how particular products and coproducts emerge from biproducts, not only blocked matrix algebra is rediscovered but also a way of extending other operations (e.g. Gaussian elimination) blockwise, in a calculational style, is found. The prospect of building biproduct-based type checkers for computer algebra systems such as MatlabTM is also considered.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑