transform¶
The transform module.
- class nutils.transform.TransformItem(todims, fromdims)¶
Bases:
Singleton
Affine transformation.
Base class for transformations of the type \(x ↦ A x + b\).
- class nutils.transform.Matrix(linear, offset)¶
Bases:
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\).
- class nutils.transform.Square(linear, offset)¶
Bases:
Matrix
Affine transformation \(x ↦ A x + b\), with \(A\) square
- Parameters:
linear (
numpy.ndarray
) – The transformation matrix \(A\).offset (
numpy.ndarray
) – The offset \(b\).
- class nutils.transform.Identity(ndims)¶
Bases:
Square
Identity transformation \(x ↦ x\)
- Parameters:
ndims (
int
) – Dimension of \(x\).
- class nutils.transform.Index(ndims, index)¶
Bases:
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:
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\).
- nutils.transform.simplex(vertices, isflipped=None)¶
Create transform item from simplex vertices.