![]() #LnormInf corresponds to the absolute value of the greatest element of the vector. It is also prominently known as ‘Liebmann’ method. gaussseidel, a Python code which uses the Gauss-Seidel iteration to solve a linear system with a symmetric positive definite (SPD) matrix. Print ("The solution vector in iteration", iter1, "is:", x) The Gauss Seidel method is an iterative process to solve a square system of (multiple) linear equations. def gauss_seidel(A, b, tolerance, max_iterations, x): ![]() Instead I created my own little function that with the help of a permutation matrix as seen in another answer of mine permutation matrix will produce the solution (x vector) for any square matrix, including those with zeros on the diagonal. I know this is old but, I haven't found any pre existing library in python for gauss - seidel.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |