Skip to content

Apply a function to all components of a tensor field #29244

@egourgoulhon

Description

@egourgoulhon

This ticket adds the method apply_map to the class TensorField, which applies a function to the coordinate expressions of all components of a tensor field in a given vector frame.
This allows operations like factorization, expansion, simplification or substitution to be performed on the components.

Such a method has been requested in e.g. https://ask.sagemath.org/question/42107/basic-work-on-tensor-components/ and was discussed again during Sage Days 107.

CC: @tscrim

Component: geometry

Keywords: tensor, components, sd107

Author: Eric Gourgoulhon

Branch/Commit: 5cf7fc5

Reviewer: Vincent Delecroix, Travis Scrimshaw

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions