generated from freudenreichan/info2Praktikum-NeuronalesNetz
ImageInput implementiert und Teile der Matrix angefangen
This commit is contained in:
1 parent
447e77a7bf
commit
44f9631544
3 files changed
+142
-7
No files matched your search
+19
-5
@@ -6,19 +6,33 @@
|
||||
|
||||
Matrix createMatrix(unsigned int rows, unsigned int cols)
|
||||
{
|
||||
|
||||
}
|
||||
Matrix matrix;
|
||||
|
||||
matrix.rows = rows;
|
||||
matrix.cols = cols;
|
||||
|
||||
matrix.values = malloc(rows * cols * sizeof(MatrixType));
|
||||
|
||||
return matrix;
|
||||
|
||||
}
|
||||
//gibt den vorher belegten Speicher wieder frei
|
||||
void clearMatrix(Matrix *matrix)
|
||||
{
|
||||
|
||||
}
|
||||
if(matrix == NULL){
|
||||
return;
|
||||
}
|
||||
for(int i = 0; i < values; i++){
|
||||
|
||||
free()
|
||||
}
|
||||
}
|
||||
//schreibt einen Wert an eine bestimmte Stelle in der Matrix
|
||||
void setMatrixAt(MatrixType value, Matrix matrix, unsigned int rowIdx, unsigned int colIdx)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
//Liest einen Wert aus der Matrix
|
||||
MatrixType getMatrixAt(const Matrix matrix, unsigned int rowIdx, unsigned int colIdx)
|
||||
{
|
||||
|
||||
|
||||
Reference in new issue
Block a user