odatse.util.mapping module
- class odatse.util.mapping.Affine(A: ndarray | None = None, b: ndarray | None = None)[source]
Bases:
MappingBase
An affine mapping defined by a matrix A and a vector b.
Initialize the affine mapping.
- Parameters:
A (np.ndarray, optional) – Transformation matrix.
b (np.ndarray, optional) – Translation vector.
- class odatse.util.mapping.TrivialMapping[source]
Bases:
MappingBase
A trivial mapping that returns the input array unchanged.