transform
The transform module.
- class nutils.transform.TransformItem(todims, fromdims)
Bases:
SingletonAffine transformation.
Base class for transformations of the type \(x ↦ A x + b\).
- class nutils.transform.Matrix(linear, offset)
Bases:
TransformItemAffine 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:
MatrixAffine 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:
SquareIdentity transformation \(x ↦ x\)
- Parameters:
ndims (
int) – Dimension of \(x\).
- class nutils.transform.Index(ndims, index)
Bases:
IdentityIdentity 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:
MatrixAffine 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.