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\).

Parameters:
  • todims (int) – Dimension of the affine transformation domain.

  • fromdims (int) – Dimension of the affine transformation range.

class nutils.transform.Matrix(linear, offset)

Bases: TransformItem

Affine transformation \(x ↦ A x + b\), with \(A\) an \(n×m\) matrix, \(n≥m\)

Parameters:
class nutils.transform.Square(linear, offset)

Bases: Matrix

Affine transformation \(x ↦ A x + b\), with \(A\) square

Parameters:
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:
nutils.transform.simplex(vertices, isflipped=None)

Create transform item from simplex vertices.