diff --git a/index.html b/index.html index c7d1864..3267343 100644 --- a/index.html +++ b/index.html @@ -23,6 +23,16 @@ a:hover { text-decoration: underline; } + .diagram { + background-color: #f0f0f0; + padding: 20px; + margin: 20px 0; + border-radius: 5px; + } + pre { + white-space: pre-wrap; + word-wrap: break-word; + } @@ -32,6 +42,33 @@

The Tensor Cookbook

+
+

What are Tensor Diagrams?

+

Tensor diagrams are a powerful visual tool for representing and manipulating tensors, which are generalizations of vectors and matrices to higher dimensions. They provide an intuitive way to understand complex tensor operations and identities.

+ +

For example, consider the matrix multiplication of A and B:

+ +
+
+    A   B
+    | \ / |
+    |  X  |
+    | / \ |
+      Y
+                
+
+ +

This diagram represents (AB)_ik = sum_j A_ij B_jk. The crossing lines indicate the summation over the index j.

+ +

Tensor diagrams are particularly useful because they:

+ +
+

About the Book

The Tensor Cookbook is a comprehensive guide to tensors, using the visual language of tensor diagrams. It closely follows the legendary "Matrix Cookbook" while providing a new way to understand and appreciate tensor operations through diagrams.