Hello,
I want to solve the Ax=b matrix equation with 1 n x n matrix (with n x n meaning the matrix can be of any size) and 1 vector of size n (n being any size) as input files in C++ with iterative methods. For example if I had these data input files:
Matrix1.dat (the "A")
3
1.1 2.2 3.3
4.4 5.5 6.6
7.7 8.8 9.9
Vector2.dat (the "b")
3
2.1 3.2 4.3
With the first number at the top of the text file representing the unknowns, how would I make a c++ program read the two sets of files and then use an iterative method, such as the Jacobi iterative method, to solve Ax=b?