Skip to content

gtx.sqrt result type on scalars is Python float by default #2277

@starkphi

Description

@starkphi

For scalars, the gtx.sqrt function does not return the same type as the one it is called with:

four = gtx.float32(4)
type(gtx.sqrt(four)) => float
type(four) => numpy.float32

Metadata

Metadata

Assignees

No one assigned

    Labels

    gt4py.nextIssues concerning the new version with support for non-cartesian grids.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions