IterInverse

Provide an iterative inverse transformation?

Description:

This attribute indicates whether the original inverse transformation of the PolyMap should be implemented via an iterative Newton-Raphson approximation that uses the forward transformation to transform candidate input positions until an output position is found which is close to the required output position. By default, an iterative inverse is provided if, and only if, no inverse polynomial was supplied when the PolyMap was constructed.

Note, the term " inverse transformation" here refers to the inverse transformation of the original PolyMap, ignoring any subsequent inversions. Also, " input" and " output" refer to the inputs and outputs of the original PolyMap.

The NiterInverse and TolInverse attributes provide parameters that control the behaviour of the inverse approximation method.

The iterative inverse returns AST__BAD axis values at positions for which the inverse transformation is undefined. For instance, if the forward transformation is y = xx, the iterative inverse will return x = AST__BAD at y = -1. If the inverse transformation is multiply defined, the position returned by the iterative inverse will be the position of the solution that is closest to the supplied position. For instance, using the above example, y = xx, the iterative inverse will return x = +2 at y = 4, because x = +2 is the closest solution to 4 (the other solution is x = -2).

Type:
Integer (boolean).

Applicability

PolyMap
All PolyMaps have this attribute.
ChebyMap
The ChebyMap class does not currently provide an option for an iterative inverse, and so the IterInverse value is always zero. Setting or clearing the IterInverse attribute of a ChebyMap has no effect.

Notes: