You can either use some open-source mathematics library, or learn some computational mathematics (on top of "regular" linear algebra, of course, but computational aspect of the problem is much less trivial than in linear algebra, due to inherent problems of approximate floating-point numbers and other issues), and do it all by yourself. The classical algorithm for the solution of linear equation system is Gauss's method:
http://www.alexeypetrov.narod.ru/Eng/C/gauss_about.html[
^].
—SA