LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   omp[ fails after dist upgrade (https://www.linuxquestions.org/questions/programming-9/omp%5B-fails-after-dist-upgrade-4175733465/)

piobair 02-21-2024 10:31 AM

It is all part of linear algebra.
Quote:

3,15,3 4,11,0 5,16,0 6,18,4
3,15,1 4,11,6
3,15,1 5,16,2 7,12,0 8,17,4
3,15,1 6,18,2 8,17,0 9,14,4
5,16,1 7,12,6
5,16,1 6,18,0 8,17,2 10,13,4
6,18,1 9,14,6
8,17,1 10,13,6
represents eight simultaneous equations: four terms in the first, third, fourth, and sixth equations, two terms in the second, fifth, seventh and eighth equations.
What is passed to the subroutine is the address of the structure of the leftmost term in the equation. All equations are arranged in a flat file.
The subroutine subtracts each term in the first line from the (expanded) four terms in each of the following three lines.
The result of that operation is

Quote:

(3)-410.425629 (4)-410.425629 (6)0.000000
(3)-nan (5)-inf (7)inf (8)inf
(3)-34.799999 (6)3345.225586 (8)-2900.000000 (9)-410.425629
This is the actual output of the program.

If linear algebra is foreign to you, then you will have trouble understanding the program.

QUOTE=ntubski;6484948]I don't understand what format you are using here, or how this relates to the actual output of the program.[/QUOTE]

ntubski 02-21-2024 05:05 PM

Quote:

Originally Posted by piobair (Post 6485025)
This is the actual output of the program.

I guess that is in some abstract sense the output of the program. But how does it relate to what the program prints to stdout? (E.g., what NevemTeve posted?)

Quote:

If linear algebra is foreign to you, then you will have trouble understanding the program.
I learned about it once, but it's been a while.


All times are GMT -5. The time now is 01:10 PM.