It is much better to use options ktensor_symbolic_print or kform_symbolic_print instead. If these options are non-null, the print method uses as.symbolic() to give an alternate way of displaying k-tensors and k-forms. The generic non-null value would be “x” which gives output like “dx1 ^ dx2”.
But this does not seem to work for tensors:
library("stokes")
a <- rtensor()
a
#> A linear map from V^3 to R with V=R^7:
#> val
#> 5 3 4 = 8
#> 5 3 2 = 9
#> 7 3 4 = 6
#> 3 6 5 = 5
#> 3 4 5 = 4
#> 7 6 6 = 7
#> 2 7 1 = 2
#> 7 5 3 = 3
#> 7 1 4 = 1
options(ktensor_symbolic_print = "x")
a
#> A linear map from V^3 to R with V=R^7:
#> val
#> 5 3 4 = 8
#> 5 3 2 = 9
#> 7 3 4 = 6
#> 3 6 5 = 5
#> 3 4 5 = 4
#> 7 6 6 = 7
#> 2 7 1 = 2
#> 7 5 3 = 3
#> 7 1 4 = 1
in
print.Rd
it says:It is much better to use options ktensor_symbolic_print or kform_symbolic_print instead. If these options are non-null, the print method uses as.symbolic() to give an alternate way of displaying k-tensors and k-forms. The generic non-null value would be “x” which gives output like “dx1 ^ dx2”.
But this does not seem to work for tensors:
Created on 2024-07-26 with reprex v2.1.1