Skip to content

A test-driven C library for linear algebra matrix operations

Notifications You must be signed in to change notification settings

DavidZuidema/libmatrix

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

libmatrix

A test-driven C implementation of a linear algebra library for manipulating matricies.

I developed this library while surveying MIT 18.06 Linear Algebra by Gilbert Strang. Rather than do the practice problems by hand, I opted to implement the algorithms in C. I used the exercises in the book to develop the unit tests.

The library uses GNU Make as a build system and libcheck as the unit testing framework.

Make Targets

$ make all          # compile all object files
$ make test-build   # compile all test files
$ make test         # compile and run test suite
$ make clean        # delete build files and binaries

Interface

/**
 * Initializes all elements to 0
 * Uses HEAP
 * Call int_matrix_destroy when finished
 */
int_matrix_t int_matrix_create(const int rows, const int columns);
void int_matrix_destroy(int_matrix_t *matrix);

Releases

No releases published

Packages

No packages published