generated from freudenreichan/info2Praktikum-NeuronalesNetz
Started working on Set and Get Function
This commit is contained in:
@@ -23,12 +23,14 @@ void clearMatrix(Matrix *matrix)
|
||||
|
||||
void setMatrixAt(MatrixType value, Matrix matrix, unsigned int rowIdx, unsigned int colIdx)
|
||||
{
|
||||
|
||||
matrix = {rowIdx, colIdx, value}; //Writes Value of value variable in the selected place in Matrix
|
||||
printf("Test: Value at %d, %d : %d\n", rowIdx, colIdx, matrix.buffer[rowIdx][colIdx]);
|
||||
}
|
||||
|
||||
MatrixType getMatrixAt(const Matrix matrix, unsigned int rowIdx, unsigned int colIdx)
|
||||
{
|
||||
|
||||
value = matrix.buffer[rowIdx][colIdx]; //Stores value of selected place in Matrix in value variable
|
||||
return value;
|
||||
}
|
||||
|
||||
Matrix add(const Matrix matrix1, const Matrix matrix2)
|
||||
|
||||
Reference in New Issue
Block a user