def __call__(self, A, B, transpose=False):
        '''Method to pre and post multiply matrices to the tensor.'''
        if A == None: A = 1.
        if B == None: B = 1.
        return r_[[dot(dot(A,self.T[i]),B) for i in (0,1,2)]]
Method to pre and post multiply matrices to the tensor.
recipes/Python/578248_Trifocal_Tensor_class/recipe-578248.py