Tensor# A module to manipulate symbolic objects with indices including tensors Contents# N-dim array Examples Products and contractions Diagonal operator Derivatives by array Classes ImmutableDenseNDimArray ImmutableSparseNDimArray MutableDenseNDimArray MutableSparseNDimArray Functions derive_by_array() permutedims() tensorcontraction() tensorproduct() tensordiagonal() N-dim array expressions Examples Constructing array expressions from index-explicit forms Compatibility with matrices Indexed Objects Examples Idx Idx.label Idx.lower Idx.upper Indexed Indexed.base Indexed.indices Indexed.ranges Indexed.rank Indexed.shape IndexedBase IndexedBase.label IndexedBase.offset IndexedBase.shape IndexedBase.strides Methods get_contraction_structure() get_indices() Tensor TensorIndexType TensorIndex TensorHead TensorHead.commutes_with() tensor_heads() TensExpr TensExpr.get_matrix() TensExpr.replace_with_arrays() TensAdd TensAdd.canon_bp() TensAdd.contract_metric() TensMul TensMul.canon_bp() TensMul.contract_metric() TensMul.get_free_indices() TensMul.get_indices() TensMul.perm2tensor() TensMul.sorted_components() TensMul.split() canon_bp() riemann_cyclic_replace() riemann_cyclic() TensorSymmetry TensorSymmetry.direct_product() TensorSymmetry.fully_symmetric() TensorSymmetry.no_symmetry() TensorSymmetry.riemann() tensorsymmetry() TensorType _TensorManager _TensorManager.clear() _TensorManager.comm_i2symbol() _TensorManager.comm_symbols2i() _TensorManager.get_comm() _TensorManager.set_comm() _TensorManager.set_comms() Tensor Operators PartialDerivative