# transform¶

The transform module.

class nutils.transform.TransformItem(todims, fromdims)

Affine transformation.

Base class for transformations of the type $$x ↦ A x + b$$.

Parameters: todims (int) – Dimension of the affine transformation domain. fromdims (int) – Dimension of the affine transformation range.
class nutils.transform.Matrix(linear, offset)

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)

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)

Identity transformation $$x ↦ x$$

Parameters: ndims (int) – Dimension of $$x$$.
class nutils.transform.Index(ndims, index)

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)

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.