Skip to contents

r() raises specified tensor indices using a covariant metric tensor provided in g. Note that the order of indices is not preserved due to performance reasons. An error is thrown if the specified indices do not exist or are not in the correct position.

Usage

r(x, ..., g = NULL)

Arguments

x

A labeled tensor object, created by %_% or tensor().

...

Any number of index expressions. The indices need to occur in x.

g

An (unlabeled) covariant metric tensor as array used for raising and lowering indices. If no metric tensor is provided, indices are raised/lowered with the identity matrix.

Value

A modified tensor object.

See also

Other tensor operations: asym(), kron(), l(), subst(), sym()