CartesianTensorFunctions2(minix, dim, S, T)ΒΆ
carten.spad line 580 [edit on github]
minix: Integer
dim: NonNegativeInteger
This package provides functions to enable conversion of tensors given conversion of the components.
- map: (S -> T, CartesianTensor(minix, dim, S)) -> CartesianTensor(minix, dim, T)
map(f, ts)
does a componentwise conversion of the tensorts
to a tensor with components of typeT
.
- reshape: (List T, CartesianTensor(minix, dim, S)) -> CartesianTensor(minix, dim, T)
reshape(lt, ts)
organizes the list of componentslt
into a tensor with the same shape asts
.