Skip to content

inverse does not check for inputs of special arrays #64

@scheidan

Description

@scheidan

For scalar transforms inverse is checking the input but not special arrays:

## scalar transform
inverse(as(Real, 5, 10), 5.5)
inverse(as(Real, 5, 10), 1.5)                  # -> error, good
inverse(as(Real, 5, 10), 15.5)                 # -> error, good

## array transform
inverse(UnitVector(3), [sqrt(1/3), sqrt(1/3), sqrt(1/3)])
inverse(UnitVector(3), [0.0, sqrt(1/3), sqrt(1/3)])      # -> no error, bad

inverse(UnitSimplex(3), [0.2, 0.2, 0.6])
inverse(UnitSimplex(3), [0.3, 0.2, 0.6])                 # -> no error, bad

Not sure if this is an omission or design decision.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions