forum.alglib.net http://forum.alglib.net/ |
|
How to use in c++ the function rmatrixlu, it doesn't work http://forum.alglib.net/viewtopic.php?f=2&t=4418 |
Page 1 of 1 |
Author: | cgs [ Tue Feb 01, 2022 12:18 pm ] |
Post subject: | How to use in c++ the function rmatrixlu, it doesn't work |
Hello, I'm trying to using alglib in c++. But I haven't get use it. I'm trying use the function rmatrixl. Firstly I have added the src folder to my copilator. (Dev-C++) And then, I have added the files .h to my .cpp file, using include: #include "....h" with all files .h. And I have written : void alglib::rmatrixlu(A,n,n,p,const xparams _params = alglib::xdefault); When A is my initial matrix, n is its dimension , and p is a one dimension vector with dimension n. But it doesn't work. It say : [Error] qualified-id in declaration before '(' token Can you help me, please?? |
Author: | Sergey.Bochkanov [ Wed Feb 02, 2022 11:48 am ] |
Post subject: | Re: How to use in c++ the function rmatrixlu, it doesn't wor |
Hi! It should be Code: alglib::rmatrixlu(A,n,n,p);
|
Author: | cgs [ Thu Feb 03, 2022 7:25 pm ] |
Post subject: | Re: How to use in c++ the function rmatrixlu, it doesn't wor |
Thank you But now I have other problem, There is other error : I have written : int main(){ double A[2][2]={{1.,2.},{3.,4.}}; int p[2]; int n=2; alglib::rmatrixlu(A,n,n,p); } But it's say [Error] invalid initialization of reference of type 'alglib::real_2d_array&' from expression of type 'double[2][2]' How could it be solve?? |
Author: | Sergey.Bochkanov [ Thu Feb 03, 2022 9:33 pm ] |
Post subject: | Re: How to use in c++ the function rmatrixlu, it doesn't wor |
Code: alglib::real_2d_array A="[[1,2],[3,4]]";
|
Author: | cgs [ Sat Feb 05, 2022 5:42 pm ] |
Post subject: | Re: How to use in c++ the function rmatrixlu, it doesn't wor |
Thank you, but I have other mistake, I have written: int main(){ alglib::real_2d_array A="[[1,2],[3,4]]"; alglib::ae_int_t n="2"; alglib::integer_1d_array p=""; alglib::rmatrixlu(A,n,n,p); } But it's says: [Error] invalid conversion from 'const char* to 'alglib::ae_int_t'{aka 'long long int'} [-fpermissive] |
Page 1 of 1 | All times are UTC |
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group http://www.phpbb.com/ |