Line | |
---|
1 | /* -*- mode: C; tab-width:8; c-basic-offset:8 -*- |
---|
2 | * vi:set ts=8: |
---|
3 | * |
---|
4 | * al_vector.h |
---|
5 | * |
---|
6 | * matrix math stuff |
---|
7 | */ |
---|
8 | |
---|
9 | #ifndef AL_MATRIX_H_ |
---|
10 | #define AL_MATRIX_H_ |
---|
11 | |
---|
12 | /* |
---|
13 | * Allocates, initializes, and returns a matrix with the dimensions matching |
---|
14 | * the passed arguments, or NULL on error. |
---|
15 | */ |
---|
16 | ALmatrix *_alMatrixAlloc( int rows, int cols ); |
---|
17 | |
---|
18 | /* |
---|
19 | * Frees a matrix allocated with _alMatrixAlloc. |
---|
20 | */ |
---|
21 | void _alMatrixFree( ALmatrix *m ); |
---|
22 | |
---|
23 | /* |
---|
24 | * Multiplies two matrices and places the result in result. |
---|
25 | */ |
---|
26 | void _alMatrixMul( ALmatrix *result, ALmatrix *m1, ALmatrix *m2 ); |
---|
27 | |
---|
28 | #endif /* AL_MATRIX_H_ */ |
---|
Note: See
TracBrowser
for help on using the repository browser.