tensor
A tensor from its shape and its entries in row-major order (rank up to 4). A matrix or an array is accepted wherever a tensor is.
shape(array) -- e.g. [2, 2]data(array) -- row-major entries
A tensor from its shape and its entries in row-major order (rank up to 4). A matrix or an array is accepted wherever a tensor is.
shape (array) -- e.g. [2, 2]data (array) -- row-major entriesThe all-zero tensor of a given shape.
shape (array) -- The identity tensor delta_ij of dimension n.
n (integer) -- The Levi-Civita (permutation) symbol epsilon of dimension n.
n (integer) -- The Euclidean metric of dimension n (the identity).
n (integer) -- The Minkowski metric diag(-1, 1, 1, 1).
The number of indices of a tensor.
t (tensor) -- One entry, by a list of indices (from 0).
t (tensor) -- index (array) -- The outer (tensor) product a (x) b.
a (tensor) -- b (tensor) -- Contracts axis axA of a with axis axB of b (a generalized dot product).
a (tensor) -- b (tensor) -- axA (integer) -- axB (integer) -- Contracts two axes of one tensor.
t (tensor) -- ax0 (integer) -- ax1 (integer) -- The trace over two axes, as a number.
t (tensor) -- ax0 (integer) -- ax1 (integer) -- A : B, the sum of a_ij b_ij.
a (tensor) -- b (tensor) -- Reverses the order of all axes (the transpose of a matrix).
t (tensor) -- Swaps two axes.
t (tensor) -- ax0 (integer) -- ax1 (integer) -- The symmetric part (T + T^T)/2 of a rank-2 tensor.
t (tensor) -- The antisymmetric part (T - T^T)/2 of a rank-2 tensor.
t (tensor) -- The inverse metric g^ij of a metric g_ij.
g (tensor) -- Raises the first index of t with the metric g.
t (tensor) -- g (tensor) -- Lowers the first index of t with the metric g.
t (tensor) -- g (tensor) -- The same entries with a new shape (same total size).
t (tensor) -- shape (array) -- The sub-tensor with axis ax fixed at index k.
t (tensor) -- ax (integer) -- k (integer) --