User may specify different matrix inversion method