root/snippet/image_projection/matrix.h

Revision 85, 0.5 KB (checked in by aqua, 21 months ago)

add console mine project

Line 
1#ifndef __MATRIX_H__
2#define __MATRIX_H__
3
4typedef struct {
5        int col;
6        int row;
7
8        double** var;
9} matrix;
10
11#ifdef __cplusplus
12extern "C" {
13#endif
14
15matrix* matrix_new( int row, int col );
16void matrix_free( matrix* m );
17
18matrix* matrix_multiple( matrix* a, matrix* b );
19matrix* matrix_inv( matrix* m );
20
21matrix* matrix_transpose( matrix* m );
22
23void matrix_init( matrix* m, double* src );
24void matrix_extract( double* dst, matrix* m );
25
26void matrix_load_identity( matrix* m );
27
28#ifdef __cplusplus
29}
30#endif
31
32#endif
Note: See TracBrowser for help on using the browser.