generated from freudenreichan/info2Praktikum-NeuronalesNetz
Define Matrix structure in matrix.h and remove duplicate definition from matrix.c
This commit is contained in:
parent
2f3ddb1232
commit
cdd14986cf
6
matrix.c
6
matrix.c
@ -4,12 +4,6 @@
|
|||||||
|
|
||||||
// TODO Matrix-Funktionen implementieren
|
// TODO Matrix-Funktionen implementieren
|
||||||
|
|
||||||
typedef struct Matrix {
|
|
||||||
unsigned int xElement;
|
|
||||||
unsigned int yElement;
|
|
||||||
int ** data;
|
|
||||||
} Matrix;
|
|
||||||
|
|
||||||
Matrix createMatrix(unsigned int rows, unsigned int cols)
|
Matrix createMatrix(unsigned int rows, unsigned int cols)
|
||||||
{
|
{
|
||||||
Matrix m;
|
Matrix m;
|
||||||
|
|||||||
7
matrix.h
7
matrix.h
@ -4,9 +4,14 @@
|
|||||||
#define UNDEFINED_MATRIX_VALUE 0
|
#define UNDEFINED_MATRIX_VALUE 0
|
||||||
|
|
||||||
typedef float MatrixType;
|
typedef float MatrixType;
|
||||||
|
|
||||||
// TODO Matrixtyp definieren
|
// TODO Matrixtyp definieren
|
||||||
|
|
||||||
|
typedef struct Matrix {
|
||||||
|
unsigned int xElement;
|
||||||
|
unsigned int yElement;
|
||||||
|
double ** data;
|
||||||
|
} Matrix;
|
||||||
|
|
||||||
|
|
||||||
Matrix createMatrix(unsigned int rows, unsigned int cols);
|
Matrix createMatrix(unsigned int rows, unsigned int cols);
|
||||||
void clearMatrix(Matrix *matrix);
|
void clearMatrix(Matrix *matrix);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user