|
From: | Jeremy Yan |
Subject: | Re: Using mldivide function of Octave in C++? |
Date: | Tue, 3 Jun 2014 12:49:39 -0400 |
>Please include the list in CC when replying
>> 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.
>
and use bottom-posting, i.e. put your answer BELOW
the preceding message.
You should make sure "mkoctfile" is in you path.
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
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.
c.
> 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
>
[Prev in Thread] | Current Thread | [Next in Thread] |