Tensor Diagrams Simplify Tensor Manipulation: Introducing Tensorgrad
2025-01-31
High-dimensional tensor manipulation can be confusing? A new book, "The Tensor Cookbook," simplifies this process using tensor diagrams. Tensor diagrams are more intuitive than traditional index notation (einsum), easily revealing patterns and symmetries, avoiding the hassle of vectorization and Kronecker products, simplifying matrix calculus, and effortlessly representing functions and broadcasting. The accompanying Python library, Tensorgrad, uses tensor diagrams for symbolic tensor manipulation and differentiation, making complex calculations easier to understand.