Matrix math - anyone know any free libraries?

I’m considering writing my own, but if possible would rather use something off the shelf and preferably free.

Looking for the basics:

Multiplication

Inversion

Determinant

Least Squares

TIA

Check out the GSL: http://www.gnu.org/software/gsl/