Selected solution of linear equations

I think I'll start that one in a couple of weeks.In summary, the speaker is looking for a selective solver for linear equations to solve thousands of moderately sized systems in parallel. They are only interested in specific elements of the solution vectors and are considering using LU factorization or Cramer's Method. Other participants suggest using Gaussian elimination with selected back substituting or pivoting for accuracy. However, the speaker is concerned about the trade-off between accuracy and speed. They plan to brush up on their knowledge with an edX course on Linear Algebra.
  • #1
Gabor Ladanyi
Hi All,

In my work I would like to solve a thousands of moderate size systems of linear equations, parallelly. The uniquum in my problem is that, I am not interested in the whole solutions of the systems, but only several elements of the solution vectors are interesting.

To be more strict:
Let a set of system of linear equations be given:
A(i)x(i)=y(i), i=1..N,
All the matrices A(i) and vectors y(i) are real.
The dimensions of the systems are equal and it is typical between 10 and 39.
The number of systems is typical N>5000.
The problem for example is to determine the x(i)1, x(i)3,
x(i)4 for all i=1..N.

The question: Have you ever heard any similar selective solver for linear equations? Direct and itterative solvers are also interesting for me.
Thank you for your help in advance!

G. Ladanyi
 
Physics news on Phys.org
  • #2
LU factorization would probably suffice for what you are doing. If you are only looking for certain elements of the solution vector, then put those rows at the bottom of the matrix. When you back substitute, you will only need to do it for these bottom rows, which will save some computation time.
 
  • #3
I was going to suggest Cramer's Method. I don't know if this is more or less calculations than LU factorization, though. (an important consideration with the number of different systems that you want to solve).

I don't remember exactly how LU works. I'd have to do some reading on it. I think with LU you do need to take the determinant of the matrix. I'm not sure what else.
With Cramer's Method, you would take 1 determinant plus a determinant for each element that you want to solve for, then divide. One concern that I could see is potential rounding, depending on how big the products that you generate, are.
 
  • #4
scottdave said:
I don't remember exactly how LU works. I'd have to do some reading on it. I think with LU you do need to take the determinant of the matrix. I'm not sure what else.
With Cramer's Method, you would take 1 determinant plus a determinant for each element that you want to solve for, then divide. One concern that I could see is potential rounding, depending on how big the products that you generate, are.
Determinants are very computationally expensive and are almost never used to solve big matrices. LU factorization does not require one to find a determinant, it is basically a clever form of Gaussian elimination.

One question for the OP, are the matrices that you are using nonsingular?
 
  • #5
NFuller said:
Determinants are very computationally expensive and are almost never used to solve big matrices. LU factorization does not require one to find a determinant, it is basically a clever form of Gaussian elimination.
Good to know. Like I said, it has been awhile, and I couldn't recall exactly how LU is used or calculated.
 
  • #6
My matrices are non singular.

Gaussian elemination (GE) with selected back substituting seems to be good enough for the first glimps. I could substitute back only the interesting rows. It means, I choose the order of the soultion to generate the interesting elements first. When they are calculated I do not continue the calculation. (Order1)

Unfortunately, sometimes the matrices are badly conditioned and pivoting version of GE could be more accurate. If I know well, pivoting needs the changing of rows. It is almost "equal" with the selection of order of the solution. (Order2)

I am afraid, (Order1) and (Order2) are not the same, I have to choose between accuracy or speed.

I hope my ideas were clear... What do you think?
 
  • #7
Pivoting is relatively cheap and will not cost you much speed, you should almost always do it.
 
  • #8
Reading some of these posts and doing some searching of the terms, some of it is coming back, but I realize I have forgotten quite a bit.
 
  • #9
To brush up, I'm considering this edX course: Linear Algebra - Foundations to Frontiers - LAFF for short. I've taken a couple of edX courses, and enjoyed them.
 

1. What is a linear equation?

A linear equation is an algebraic equation in which each term is either a constant or the product of a constant and a single variable. It can be written in the form ax + b = c, where a, b, and c are constants and x is the variable.

2. What does it mean to solve a linear equation?

To solve a linear equation means to find the value of the variable that makes the equation true. This is done by performing operations on both sides of the equation to isolate the variable on one side and the constants on the other side.

3. How many solutions can a linear equation have?

A linear equation can have either one solution, no solution, or infinitely many solutions. The number of solutions depends on the values of the constants in the equation.

4. What is the method for solving a system of linear equations?

The most common method for solving a system of linear equations is by using the elimination method. This involves manipulating the equations to eliminate one of the variables, and then solving for the remaining variable. The solution for the system is the values of the variables that satisfy both equations.

5. Can linear equations be solved graphically?

Yes, linear equations can be solved graphically by plotting the equations on a coordinate plane and finding the point where the two lines intersect. The coordinates of this point represent the solution to the system of linear equations.

Similar threads

  • Linear and Abstract Algebra
Replies
4
Views
852
  • Linear and Abstract Algebra
Replies
8
Views
1K
  • Linear and Abstract Algebra
Replies
6
Views
847
  • Linear and Abstract Algebra
Replies
6
Views
1K
  • Linear and Abstract Algebra
Replies
4
Views
2K
  • Linear and Abstract Algebra
Replies
5
Views
1K
Replies
2
Views
1K
  • Linear and Abstract Algebra
Replies
5
Views
1K
  • Linear and Abstract Algebra
Replies
3
Views
911
  • Linear and Abstract Algebra
Replies
1
Views
1K
Back
Top