Re: [Lapackpp-devel] Solving a linear system with 100 unknowns
Status: Beta
Brought to you by:
cstim
From: Sivahari N. <siv...@gm...> - 2014-03-01 02:39:19
|
Thank you Dee, I will try and ping back. --Sivahari 2014-02-28 23:55 GMT+05:30 Dee <de...@de...>: > Hi Sivahari, > > here's a small example I just have hacked: > > #include <iostream> > #include <gmd.h> > #include <laslv.h> > > int main() > { > // create left side > LaGenMatDouble A(2,2); > A(0,0)=1.0; > A(0,1)=2.0; > A(1,0)=0.0; > A(1,1)=-1.0; > > // create right side > LaGenMatDouble B(2,1); > B(0,0)=0.0; > B(1,0)=1.0; > > // Solve A*X = B > LaGenMatDouble X(2,1); > LaLinearSolve( A, X, B ); > > std::cout << A << " * " << std::endl > << X << " = " << std::endl > << B << std::endl; > > return 0; > } > > I hope I understood your problem correctly, but I think you only need to > create A(100,100) and fill in your values. > > Best regards > Dominik > > > Am 28.02.2014 09:45, schrieb Sivahari Nandakumar: > > Hai all, > > > > I am new to lapackpp. I want to do a curve fitting module ad part of my > > academic project. I want to solve a linear equation system having 100 > > different linear equations each with 100 unknowns. Can any one provide > some > > sample code or documentation link for this. > > > > > > > > > ------------------------------------------------------------------------------ > > Flow-based real-time traffic analytics software. Cisco certified tool. > > Monitor traffic, SLAs, QoS, Medianet, WAAS etc. with NetFlow Analyzer > > Customize your own dashboards, set traffic alerts and generate reports. > > Network behavioral analysis & security monitoring. All-in-one tool. > > > http://pubads.g.doubleclick.net/gampad/clk?id=126839071&iu=/4140/ostg.clktrk > > > > > > > > _______________________________________________ > > lapackpp-devel mailing list > > lap...@li... > > https://lists.sourceforge.net/lists/listinfo/lapackpp-devel > > > > -- with warm regards Sivahari Nandakumar Appropriate Technology Promotion Society Eroor, Vyttila 09446582917 http://sivaharicec.blogspot.com -------------------------------------------------------- fighting for knowledge freedom |