I'm implementing a LinearTransformation
class, which inherits from numpy.matrix
and uses numpy.matrix.I
to calculate the inverse of the transformation matrix.
Does anyone know whether numpy checks for orthogonality of the matrix before trying to calculate the inverse? I ask because most of my matrices (but not all) will be orthogonal and I wondered whether to implement some quick orthogonality check before trying to invert.