matrix and regression building blocks

matrix and regression building blocks, searching for efficient matrix
inversion algorithms