Tensorfunction

Description

Tensorfunction[t, mu, nu, ...] transform into t[LorentzIndex[mu], LorentzIndex[nu], ...], i.e., it can be used as an unspecified tensoriell function t. A symmetric tensor can be obtained by Tensorfunction[{t, "S"}, mu, nu, ...], and an antisymmteric one by Tensorfunction[{t, "A"}, mu, nu, ...].

See also:  Symmetrize.

Examples

Tensorfunction[t, μ, ν, τ]

% // StandardForm

Contract[FV[p, μ] %]

% // StandardForm

Tensorfunction[{f, "S"}, α, β]

Tensorfunction[{f, "S"}, β, α]

% // StandardForm

Attributes[f]

ClearAttributes[f, Orderless]