[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
## Re: AX=B system of linear equations

**From**: |
Jaroslav Hajek |

**Subject**: |
Re: AX=B system of linear equations |

**Date**: |
Wed, 8 Sep 2010 07:04:28 +0200 |

On Tue, Sep 7, 2010 at 5:42 PM, Awhan Patnaik <address@hidden> wrote:
>* Hello all*
>* I am trying to solve for X in AX=B. I have tried the LU decomposition*
>* based method from GSL however the results are not as good as the one*
>* given by octave using A\B method. So I wanted to called octave from my*
>* c++ code to solve the equation.*
>* I wrote the following code and tried to compile it using mkoctfile*
>* --link-stand-alone however I dont' know what to write in place of*
>
>* x = a\b*
>
>* I have tried*
>
>* x = mldivide(a, b) also but that does not work.*
>
Matrix x = a.solve (b);
hth
--
RNDr. Jaroslav Hajek, PhD
computing expert & GNU Octave developer
Aeronautical Research and Test Institute (VZLU)
Prague, Czech Republic
url: www.highegg.matfyz.cz