help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Using mldivide function of Octave in C++?


From: c.
Subject: Re: Using mldivide function of Octave in C++?
Date: Sun, 1 Jun 2014 08:37:33 +0200

> 
>> On 31 May 2014, at 04:26, Jeremy Yan <address@hidden> wrote:
>> 
>>> Dear Sir/Madam,
>>> 
>>> I am a physics student new to Octave. I am using C++ to program, but now I 
>>> need to solve a sparse linear equation. I find Octave mldivide function is 
>>> very powerful. I spend a long time to read your instruction, but I still 
>>> couldn't figure it out how to use the mldivide function of Octave in C++.
>>> 
>>> Could you please send me a simple sample code about using mldivide function 
>>> of Octave in C++?
>>> 
>>> Best regards,
>>> Jeremy
>> 
>> This presentation:
>> http://wiki.octave.org/wiki/images/b/b0/Slides_octconf_gdf_jgh.pdf
>> 
>> contains an example in the section: "Octave and C++"
>> 
>> HTH,
>> c.
> 

Please include the list in CC when replying
and use bottom-posting, i.e. put your answer BELOW
the preceding message.


On 1 Jun 2014, at 05:07, Jeremy Yan <address@hidden> wrote:

> Dear HTH,
> 
> Thank you so much for the reference! I followed the  "liboctave" and  tried 
> to run the sample code on my Mac OS X, but there are some errors.
> 
> 1.  I installed the Octave on my mac, but when I type "mkoctfile 
> --link-stand-alone standalone.cc ",  it shows mkoctfile: command not found

You should make sure "mkoctfile" is in you path.
If you installed Octave via the dmg installer from Octave Forge,
it means you have to add "/usr/local/octave/3.8.0/bin/" to the PATH
variable.

> 2.  I tried to use g++ to first compile standalone, but it shows 2 errors as 
> follows.  1) 'config.h' file not found with <angle> include; use "quotes" 
> instead. 2) fatal error: 'hdft.h' file not found.
> 
> Can you please help me? Thank you so much!
> 
> Best,
> Jeremy
> 


c.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]