forked from freudenreichan/info2Praktikum-NeuronalesNetz
Compare commits
2 Commits
41c164d3b2
...
28944bd871
| Author | SHA1 | Date | |
|---|---|---|---|
| 28944bd871 | |||
| 29b2966c63 |
5
matrix.c
5
matrix.c
@ -6,12 +6,13 @@
|
||||
|
||||
Matrix createMatrix(unsigned int rows, unsigned int cols)
|
||||
{
|
||||
|
||||
MatrixType* data = malloc(rows * cols * sizeof(MatrixType));
|
||||
Matrix newMatrix = {rows, cols, data};
|
||||
return newMatrix;
|
||||
}
|
||||
|
||||
void clearMatrix(Matrix *matrix)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
void setMatrixAt(MatrixType value, Matrix matrix, unsigned int rowIdx, unsigned int colIdx)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user