Skip to content

Priority of overloaded operators #8

@adtzlr

Description

@adtzlr

According to the priority of operators in Fortran it is necessary to use brackets for Tensor operators. For example the power operator ** which is overridden by the double dot product .ddot.has the highest priority. This is wrong, especially for a double contraction where one tensor is a result of a crossed dyadic product: A**B.cdya.C - the crossdyadic product has to be evaluated first. So the correct way of defining the equation is: A**(B.cdya.C)

Improve this behaviour...

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions