forked from freudenreichan/info2Praktikum-NeuronalesNetz
sync
This commit is contained in:
parent
ddf70dbefd
commit
e206895359
4
matrix.c
4
matrix.c
@ -12,7 +12,8 @@ Matrix createMatrix(unsigned int rows, unsigned int cols)
|
|||||||
m.cols = cols;
|
m.cols = cols;
|
||||||
|
|
||||||
m.data = malloc (rows * cols * sizeof(int));
|
m.data = malloc (rows * cols * sizeof(int));
|
||||||
|
|
||||||
|
return m;
|
||||||
}
|
}
|
||||||
|
|
||||||
void clearMatrix(Matrix *matrix)
|
void clearMatrix(Matrix *matrix)
|
||||||
@ -73,6 +74,7 @@ Matrix add(const Matrix matrix1, const Matrix matrix2)
|
|||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
Matrix multiply(const Matrix matrix1, const Matrix matrix2)
|
Matrix multiply(const Matrix matrix1, const Matrix matrix2)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user