What is it?

The Gnatlab program is designed to be a tool for fast matrix manipulation and calculation using the Matrix Template Library. It is designed to be easily expandable, with a simple programming interface. It uses the Matrix Template Library to do the calculations and it interfaces with the MTL in such a way that updates and changes to the MTL can be quickly incorperated into the program. Gnatlab aims towards the full functionality of similar commerical products.


  • Basic Operations (+,-,/,*)
  • Support for scalars, complex numbers, vectors, complex vectors, matricies, complex matricies, and sparse matricies.
  • Scripting
    • File Input
    • Comparison Functions
    • Control Statements (IF, WHILE...)
    • Logical Operators
    • User-defined Funtions
  • LAPACK Interface
    • sys_solve
    • eig
    • LUfact
    • QRfact
    • LQfact
    • gecon
    • AXB
  • Help Functions (who, what, help)
  • Matrix Creators (ones, zeros, eye)

License & Distribution

This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.


Gnatlab was created by Robert Cauble in May of 1998. Arun Rodrigues worked on integrating the latest version of the MTL and adding a CLI front end. The Matrix Template Library was developed by Jeremy Siek. Work on the Gnatlab and the MTL was under the director of Professor Andrew Lumsdain.

If you have comments or suggestions, email: mtl-devel@osl.iu.edu
Authors: Robert Cauble, Arun Rodrigues, Andrew Lumsdaine, Jeremy Siek
E-Mail: arodrig6@lsc.nd.edu, lums@osl.iu.edu, jsiek@osl.iu.edu
Created: August 10, 1998
Modified: Mon 27-Aug-2001 EST
Copyright ©1999