Takes the antisymmetric tensor part of a tensor x
with respect to the
specified indices ...
.
An error is thrown if the specified indices do not exist.
Arguments
- x
A labeled tensor object, created by %_%
or tensor()
.
- ...
Any number of index expressions. The indices need to occur
in x
.
Value
A modified tensor object.
Examples
a <- array(1:4, dim = c(2, 2))
a %_% .(i, j) |> asym(i, j)
#> <Labeled Array> [2x2] .(-i, -j)
#> [,1] [,2]
#> [1,] 0.0 0.5
#> [2,] -0.5 0.0