[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: how to use fft in c++
From: |
Pantxo |
Subject: |
Re: how to use fft in c++ |
Date: |
Sun, 11 Jun 2017 02:26:08 -0700 (PDT) |
Kire Pudsje wrote
> On Fri, Jun 9, 2017 at 8:19 PM, Progressive <
> Progressive@
> > wrote:
>
>> At first thank you!
>>
>> What do you mean by "DEFUN is defining a function"?
>>
>> Do I have to replace DEFUN_DLD(testfft, args, nargout, "\testfft\n ")
>> to
>> something like fft(testfft, args, nargout, "\testfft\n ") ?
>>
>> I want to call octave from a cpp-file. Matrices and so on work fine but
>> calling funtctions does not. Now I'm confused anyway.. DEFUN is not a
>> function I can call?
>>
>>
> DEFUN_DLD is a macro that takes care of all the stuff to be able to call a
> function from octave. You can just use it to define a function and it will
> do all the necessary stuff without needing to think about it.
> However as you just need to call it from C++ and not from octave, you do
> not need all the extras.
> The example that has been given before, that I think is confusing you
> (sorry I am too lazy to look up the reference to the mail), was to show
> that when fft is called from octave and Ffft is called from C, they both
> give the same results. To check this (and this is the part that confuses
> you, I think), he needed to call this C function from octave, to get the
> results and compare them.
>
> _______________________________________________
> Help-octave mailing list
> Help-octave@
> https://lists.gnu.org/mailman/listinfo/help-octave
Agreed, sorry about this confusing example.
Pantxo
--
View this message in context:
http://octave.1599824.n4.nabble.com/how-to-use-fft-in-c-tp4683590p4683645.html
Sent from the Octave - General mailing list archive at Nabble.com.
- Re: how to use fft in c++, (continued)
- Re: how to use fft in c++, Progressive, 2017/06/09
- Re: how to use fft in c++, Pantxo, 2017/06/09
- Re: how to use fft in c++, Progressive, 2017/06/09
- Re: how to use fft in c++, Pantxo, 2017/06/09
- Re: how to use fft in c++, Progressive, 2017/06/09
- Re: how to use fft in c++, Kire Pudsje, 2017/06/09
- Re: how to use fft in c++, Progressive, 2017/06/09
- Re: how to use fft in c++, Przemek Klosowski, 2017/06/09
- Re: how to use fft in c++, Progressive, 2017/06/12
- Re: how to use fft in c++, Kire Pudsje, 2017/06/09
- Re: how to use fft in c++,
Pantxo <=
Re: how to use fft in c++, Andreas Weber, 2017/06/08