Skip to content

Compacting the display of tensor product #29820

@sagetrac-Dicolevrai

Description

@sagetrac-Dicolevrai

With this ticket, through the methods :meth:`~sage.tensor.modules.free_module_tensor.FreeModuleTensor.display` and :meth:`~sage.manifolds.differentiable.tensorfield.TensorField.display`, SageMath is now able to compact the display of tensor product in the form dx^2. In the case the frame element is something like f^2, to avoid any misunderstanding in f<sup>2</sup>2, one can set compact_product=False in display to get the old displaying style f<sup>2*f</sup>2.

Raising a tensor field to a given power is also possible now. When the tensor is an automorphism field the composition law of maps is used instead of tensor product and in this case, raising to a nonpositive power is possible.

CC: @egourgoulhon

Component: geometry

Keywords: Tensor product

Author: Hans Fotsing Tetsing

Branch/Commit: public/manifolds/CompactProduct @ 885e0a9

Reviewer: Eric Gourgoulhon

Issue created by migration from https://trac.sagemath.org/ticket/29820

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions