zsmb's prog site

mxlib: a matrix function library

  2015.01.25.

Introduction

This was one of the projects I could've chosen as my homework in my first semester, and I decided to do it as a side project after finishing my math exam covering the topic of matrices.

The original assignment specified a function library that can handle matrix operations on matrices of any size, and is able to output matrices to files, as well as read them back.

Description

The matrices in the library are structures containing the width and height of the matrix, alongside a pointer to the dynamically allocated two-dimensional array that the values of the matrix are stored in.

Since the matrices are dynamically allocated, you'll always have to use the provided functions to delete them to prevent memory leak.

You can find all other information on how to use the library in the .c source file.

Downloads

The main.c file included below contains examples on how to use the functions for some operations with matrices (calculating inverses, multiplication, solving systems of linear equations, etc.).

Name Description Size Date
mxlib.h The header file of the library 3.50 KB 2015.01.25.
mxlib.c The source file of the library 24.8 KB 2015.04.28.
main.c Contains main() functions for demo purposes 3.30 KB 2015.01.25.
mxlib.zip Compressed folder containing all above files 6.90 KB 2015.01.25.

Changelog

2015.04.28.

Probably slightly improved speed of matrix multiply operations. I think. Maybe.