-
Notifications
You must be signed in to change notification settings - Fork 16
/
la_header.h
34 lines (30 loc) · 865 Bytes
/
la_header.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
/**
* @file la_header.h
* @author Danylo Malyuta <[email protected]>
* @version 1.0
*
* @brief Linear Algebra header file.
*
* This is the header to la_funcs.c containing necessary definitions and
* initializations.
*/
#ifndef LA_HEADER_H_
#define LA_HEADER_H_
/**
* @struct MATRIX
* This is the structure for a Matrix.
*/
struct MATRIX {
size_t rows; ///< Number of rows
size_t cols; ///< Number of columns
float **matrix; ///< The dynamic 2D array
};
/** @cond INCLUDE_WITH_DOXYGEN */
struct MATRIX initMatrix(size_t rows, size_t cols);
struct MATRIX mmultiply(struct MATRIX A, struct MATRIX B);
struct MATRIX minverse_1x1 (struct MATRIX A);
struct MATRIX transpose(struct MATRIX A);
struct MATRIX madd(struct MATRIX A,struct MATRIX B);
struct MATRIX msubtract(struct MATRIX A,struct MATRIX B);
/** @endcond */
#endif /* LA_HEADER_H_ */