|
[Sponsors] |
September 13, 2000, 11:07 |
Numerical methods
|
#1 |
Guest
Posts: n/a
|
Hi everybody Developing my code for solving cfd problem I had to make some interpolation of another numerical experiment data So after some time I found some procedures for interpolation by spline good enough for my purposes The only problem is that I'm usin C++ and have no good mathematical libraies So when I had to make the inverse matrix I understood that the time came to find something So I got the linalg packeg from netlib to work with matricies and vectors Looking at the code I understood that it's not bad But now I have trubles with compiling it If anyone used this lib please answer me.
|
|
September 13, 2000, 23:35 |
Re: Numerical methods
|
#2 |
Guest
Posts: n/a
|
Please use MATLAB . In Matlab, the any interpolation methods and matrix operations have been available.
|
|
September 14, 2000, 05:52 |
Re: MATLAB
|
#3 |
Guest
Posts: n/a
|
Using MATLAB is not a bad idea I often use it for simple purposes But for these time I have to use interpolation in my own solver written in C (C++) so it's to tuff to my mind to use any part of MATLAB in this case
|
|
September 14, 2000, 07:39 |
Re: Numerical methods
|
#4 |
Guest
Posts: n/a
|
Is it an obligation to make to inverse matrix?
Wouldn't it be better to solve the system? If so try templates from netlib. I used it and had no difficulties compiling it. P.S. As far as I can remember, it is very time consuming to actually calculate the inverse of a matrix. |
|
September 14, 2000, 10:45 |
Re: MATLAB
|
#5 |
Guest
Posts: n/a
|
Take a look at the numerical receipt, it should at least has some information about matrix operation in Fortran, which is not difficult to convert to C++
Inverse big matrix costs too much of computational effort, why not try iteratively solve it... |
|
September 15, 2000, 09:48 |
Re: Numerical methods
|
#6 |
Guest
Posts: n/a
|
Hi Lex,
I developped some codes (C++) myself for splining, matrix stuff, etc. If you're interested, please send me an email, so I can attach these sources in a replying email. Cheers, Hans. |
|
September 17, 2000, 13:16 |
Re: Inverse
|
#7 |
Guest
Posts: n/a
|
Hi
Sometimes it's easier to invert matrix espesially if you have to solve several linear systems with the same matrix but different right parts Aleksei Privalov |
|
September 19, 2000, 10:46 |
Re: Numerical methods
|
#8 |
Guest
Posts: n/a
|
Hi Dear Alex Take a look at the MathLink feature of Mathematica version 4.0,at the addreess: www.wolfram.com I don't know but I think it mught be helpfull. Reza
|
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
numerical jacobian, matrix free methods | Nikhil | Main CFD Forum | 1 | December 5, 2008 04:51 |
CFL-Free numerical methods | joy | Main CFD Forum | 8 | August 20, 2008 07:03 |
1D numerical methods compared | Andrei | Main CFD Forum | 0 | October 14, 2002 04:22 |
Numerical methods in gas compression | Oleg | Main CFD Forum | 0 | January 15, 1999 06:46 |
Numerical methods for discontinuous grid interfaces? | Hansong Hang | Main CFD Forum | 12 | September 16, 1998 23:26 |