transform¶
The transform module.
-
class
nutils.transform.
TransformItem
(todims, fromdims)¶ Bases:
nutils.types.Singleton
Affine transformation.
Base class for transformations of the type \(x ↦ A x + b\).
Parameters:
-
class
nutils.transform.
Matrix
(linear, offset)¶ Bases:
nutils.transform.TransformItem
Affine transformation \(x ↦ A x + b\), with \(A\) an \(n×m\) matrix, \(n≥m\)
Parameters: - linear (
numpy.ndarray
) – The transformation matrix \(A\). - offset (
numpy.ndarray
) – The offset \(b\).
- linear (
-
class
nutils.transform.
Square
(linear, offset)¶ Bases:
nutils.transform.Matrix
Affine transformation \(x ↦ A x + b\), with \(A\) square
Parameters: - linear (
numpy.ndarray
) – The transformation matrix \(A\). - offset (
numpy.ndarray
) – The offset \(b\).
- linear (
-
class
nutils.transform.
Identity
(ndims)¶ Bases:
nutils.transform.Square
Identity transformation \(x ↦ x\)
Parameters: ndims ( int
) – Dimension of \(x\).
-
class
nutils.transform.
Index
(ndims, index)¶ Bases:
nutils.transform.Identity
Identity transform with index
This transformation serves as an element-specific or topology-specific index to form the basis of transformation lookups. Otherwise, the transform behaves like an identity.
-
class
nutils.transform.
Updim
(linear, offset, isflipped)¶ Bases:
nutils.transform.Matrix
Affine transformation \(x ↦ A x + b\), with \(A\) an \(n×(n-1)\) matrix
Parameters: - linear (
numpy.ndarray
) – The transformation matrix \(A\). - offset (
numpy.ndarray
) – The offset \(b\).
- linear (
-
nutils.transform.
simplex
(vertices, isflipped=None)¶ Create transform item from simplex vertices.