-
Notifications
You must be signed in to change notification settings - Fork 16
Open
Description
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, badNot sure if this is an omission or design decision.
Metadata
Metadata
Assignees
Labels
No labels