C++ Programming Forum

Ask Question   UnAnswered
Home » Forum » C++ Programming       RSS Feeds

Iteration to Solve Ax=b With Input Matrix

  Asked By: John    Date: Mar 19    Category: C++ Programming    Views: 1984


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")
1.1 2.2 3.3
4.4 5.5 6.6
7.7 8.8 9.9

Vector2.dat (the "b")
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?



No Answers Found. Be the First, To Post Answer.

Didn't find what you were looking for? Find more on Iteration to Solve Ax=b With Input Matrix Or get search suggestion and latest updates.