I am trying to write a code that solves a system of linear equations such as A*B=C. My system has a dimension equal to 1600. The matrix A cab be separated into 4 sub matrices and each can be handled by a different thread. I tried to solve this using the following code:
int main() {
int count = 0;
//Inputing matrix A
ifstream matrix;
matrix.open("example.txt");
for (int i = 0; i < DIM; i++)
{
for (int j = 0; j < DIM; j++)
{
matrix >> matrix_A[i][j];
}
}
//Input matrix C
ifstream matrix1;
matrix1.open("example1.txt");
for (int i = 0; i < DIM; i++)
{
matrix1 >> matrix_C[i];
}