John Halleck's Cave Survey Code in C:

Matrix package

This package defines some basic matrix and vector manipulation routines.

mat.h - Header file.

mat.c - Code file.

test program


No warranty, express or implied, should be assumed for these code fragments. They are for educational and demonstration purposes, and may contain major errors.


I build on the underlying C language arrays.

C stores arrays by row, and rows are stored contiguously.

These routines are not exactly the world's fastest... but they should be relatively easy to follow.

All routines do some error checking, and all return an error code. [Either NoError, or a specific problem.]


All routines return error codes as listed in the errors module (errors.h and errors.c)

Go to ...

This page is
© Copyright 2000 by John Halleck, All Rights Reserved.
This snapshot was last modified on August 23rd, 2000