generated from freudenreichan/info2Praktikum-NeuronalesNetz
Erste Impl. Funktionen in matrix.c
This commit is contained in:
1 parent
2e76e7b8d9
commit
bc64e2d6fb
3 files changed
+12
-3
No files matched your search
+5
-2
@@ -6,7 +6,10 @@
|
||||
|
||||
Matrix createMatrix(unsigned int rows, unsigned int cols)
|
||||
{
|
||||
|
||||
struct Matrix m;
|
||||
m.buffer = calloc(rows*cols, sizeof(MatrixType));
|
||||
m.rows = rows;
|
||||
m.cols = cols;
|
||||
}
|
||||
|
||||
void clearMatrix(Matrix *matrix)
|
||||
@@ -16,7 +19,7 @@ void clearMatrix(Matrix *matrix)
|
||||
|
||||
void setMatrixAt(MatrixType value, Matrix matrix, unsigned int rowIdx, unsigned int colIdx)
|
||||
{
|
||||
|
||||
matrix.buffer
|
||||
}
|
||||
|
||||
MatrixType getMatrixAt(const Matrix matrix, unsigned int rowIdx, unsigned int colIdx)
|
||||
|
||||
Reference in new issue
Block a user