Started working on Set and Get Function

This commit is contained in:
rostni100585 committed 2025-11-12 12:40:02 +01:00
1 parent ebc5ff0216
commit b9b4d926f5
1 file changed
+4 -2
+4 -2
View File
@@ -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)