inner and outer tensor product
prod(A, B, [a1, b1], [a2, b2], ...)
tensor_type objects of which to find the product
pair of integer indices of opposite index character to be contracted over in the (inner) product, the first index being from A, the second from B. The number of index pairs is arbitrary, so long as it does not exceed MIN⁡Rank⁡A,Rank⁡B. If no index pairs are given, the outer product of A and B is formed.
Important: The tensor package has been deprecated. Use the superseding command DifferentialGeometry[Tensor][TensorInnerProduct] and operator &tensor in the DifferentialGeometry package, or the Physics[`.`] and Physics[*] operators.
The function prod(A, B, [a1,b1], [a2,b2], ...) computes the inner product of the A and B with contraction taking place over the pairs of indices a1 (from A) and b1 (from B), a2 (from A) and b2 (from B), and so on.
The function prod(A, B) computes the outer product of A and B.
The indices in each pair must be of opposite index character.
There must not be any duplicates in the given indices from each tensor (it is impossible to contract over a single index more than once). Thus, the call prod(A, B, [1,2], [1,3]) is illegal. However, the call prod(A, B, [1,1]) is not illegal (provided the indices are of opposite index character) since there is no repetition of indices from A and no repetition of indices from B.
The return value is the resultant tensor_type object of rank equal to rank(A) + rank(B) - 2 * (# of pairs in the call).
Simplification: This routine uses the `tensor/prod/simp` routine for simplification purposes. The simplification routine is applied to each component of the result after it is computed. By default, `tensor/prod/simp` is initialized to the `tensor/simp` routine. It is recommended that the `tensor/prod/simp` routine be customized to suit the needs of the particular problem.
This function is part of the tensor package, and so can be used in the form prod(..) only after performing the command with(tensor), or with(tensor,prod). This function can always be accessed in the long form tensor[prod](..).
Create a rank-2 tensor and a rank-1 tensor and form their inner product:
Create another 1-tensor and form the outer and inner products with U:
Find the product of two scalars:
Download Help Document
What kind of issue would you like to report? (Optional)