Computational graphs for matrix functions
Elias Jarlebring, Massimiliano Fasi, and Emil Ringh

TL;DR
This paper introduces GraphMatFun.jl, a Julia package that models matrix functions as computational graphs, enabling optimization, automatic differentiation, and efficient code generation for more accurate and cost-effective numerical methods.
Contribution
The paper presents a novel framework for representing matrix functions as DAGs, with tools for optimization, differentiation, and code generation, improving existing numerical techniques.
Findings
Optimized polynomial-based methods can outperform Padé approximations in computational cost.
The package allows automatic differentiation of matrix functions via DAG structure.
Generated code is available for multiple programming languages, enhancing practical usability.
Abstract
Many numerical methods for evaluating matrix functions can be naturally viewed as computational graphs. Rephrasing these methods as directed acyclic graphs (DAGs) is a particularly effective approach to study existing techniques, improve them, and eventually derive new ones. The accuracy of these matrix techniques can be characterized by the accuracy of their scalar counterparts, thus designing algorithms for matrix functions can be regarded as a scalar-valued optimization problem. The derivatives needed during the optimization can be calculated automatically by exploiting the structure of the DAG, in a fashion analogous to backpropagation. This paper describes GraphMatFun.jl, a Julia package that offers the means to generate and manipulate computational graphs, optimize their coefficients, and generate Julia, MATLAB, and C code to evaluate them efficiently at a matrix argument. The…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Code & Models
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsMatrix Theory and Algorithms · Scientific Research and Discoveries · Parallel Computing and Optimization Techniques
