subst: Substitute tensor labels

substR Documentation

Substitute tensor labels

Description

Substitutes tensor labels with other labels. This is simply a renaming procedure. The operation might trigger implicit diagonal subsetting. An error is thrown if the specified indices do not exist.

Usage

subst(x, ...)

Arguments

x

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

...

Any number of expressions (separated by a comma) of the form ⁠<label1> -> <label2>⁠.

Value

A modified tensor object.

See Also

Other tensor operations: Ops.tensor(), asym(), kron(), l(), r(), sym()


ricci documentation built on Sept. 9, 2025, 5:56 p.m.