pymor.discretizers.builtin.inverse

Module Contents

Functions

inv_two_by_two

Efficiently compute the inverses of a NumPy array of 2x2-matrices

inv_transposed_two_by_two

Efficiently compute the tranposed inverses of a NumPy array of 2x2-matrices

pymor.discretizers.builtin.inverse.inv_two_by_two(A)[source]

Efficiently compute the inverses of a NumPy array of 2x2-matrices

This implements

|  retval[i1,...,ik,m,n] = numpy.linalg.inv(A[i1,...,ik,:,:]).
pymor.discretizers.builtin.inverse.inv_transposed_two_by_two(A)[source]

Efficiently compute the tranposed inverses of a NumPy array of 2x2-matrices

This implements

|  retval[i1,...,ik,m,n] = numpy.linalg.inv(A[i1,...,ik,:,:]).