================= Conjugate Gradient ============================= --------------------- DESCRIPTION ---------------------- This program uses the Conjugate Gradient method to solve A x = b for x where . A is a symmetric, positive definite, and real Matrix . b is a vector that conforms with A (A columns == b rows) . x is a vector that conforms with A (A columns == x rows) -------------------------------------------------------- ---------------- INPUT / OUTPUT ------------------------ --------------------- INPUT ------------------------ MatrixFileName VectorFileName -------------------- OUTPUT ------------------------ VectorFormat Duration: #.# seconds ++++++++++++++++++++++++++++++++++++++++++ ++++++++++++++ EXAMPLE INPUT ++++++++++++ TERMINAL $ Haytham_hw_11 < in ########### in ############### A.mat b.vec ########### A.mat ############### 4 4 1.2532 0.723 0.32 0.45 0.723 0.1463 0.3426 0.1234 0.32 0.3426 1.3 0.25 0.45 0.1234 0.25 2.745 ########### b.vec ############### 4 1.2 3.4 4.5 6.7 ++++++++++++++ EXAMPLE OUTPUT ++++++++++++ 4 4.04116 -8.3569 4.33078 1.75957 Duration: 3.31402e-05 seconds ++++++++++++++++++++++++++++++++++++++++++ =====================================================================