main.c
//Function to initialize the matrix to 0

Function to initialize the matrix to 0
Function to initialize the matrix to 0
void resetMatrix(double* matrix) {
	for (int i = 0; i < N; i++) {
		for (int j = 0; j < N; j++) {
			matrix[i*N + j] = 0;
		}
	}
}
void resetMatrix ( double * matrix ) { for ( int i = 0 ; i < N ; i ++ ) { for ( int j = 0 ; j < N ; j ++ ) { matrix [ i * N + j ] = 0 ; } } }
Function to initialize the matrix to 0
Function to initialize the matrix to 0