CartesianTensorFunctions2(minix, dim, S, T)ΒΆ

carten.spad line 582 [edit on github]

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 tensor ts to a tensor with components of type T.

reshape: (List T, CartesianTensor(minix, dim, S)) -> CartesianTensor(minix, dim, T)

reshape(lt, ts) organizes the list of components lt into a tensor with the same shape as ts.