AffineTransformation#

class named_arrays.transformations.AffineTransformation(transformation_linear, translation)#

Bases: AbstractAffineTransformation, Generic[LinearTransformationT, TranslationT]

A general affine transformation.

This is a composition of a linear transformation and a translation.

Attributes

inverse

A new transformation that reverses the effect of this transformation.

shape

The shape of the transformation.

transformation_linear

The linear component of this affine transformation.

translation

The translation component of this affine transformation.

Methods

__init__(transformation_linear, translation)

Inheritance Diagram

Inheritance diagram of named_arrays.transformations.AffineTransformation
Parameters:
  • transformation_linear (LinearTransformationT)

  • translation (TranslationT)

property inverse#

A new transformation that reverses the effect of this transformation.

property shape: dict[str, int]#

The shape of the transformation.

transformation_linear: LinearTransformationT = <dataclasses._MISSING_TYPE object>#

The linear component of this affine transformation.

translation: TranslationT = <dataclasses._MISSING_TYPE object>#

The translation component of this affine transformation.