On 8/26/13 6:57 AM, Greif, Hans-Jürgen wrote:
> Hello,
>
>
>
>
> mkoctfile    --link-stand-alone   standalone.cc -o standalone
>
>
>
>
> with standalone.cc:
>
>
>
> #include <iostream>
> #include <octave/oct.h>
> // FFT2( const  Matrix & A);
>
>       int
>       main (void)
>       {
>         std::cout << "Hello Octave world!\n";
>         int n = 512;
>         Matrix A = Matrix (n, n);
>         ComplexMatrix B = ComplexMatrix (n, n);
>
>         //fft B;// = fft2(A);
>
>         for (octave_idx_type i = 0; i < n; i++)
>           {
>             for (octave_idx_type j = 0; j < n; j++)
>               {
>              if ( i < 100 && j < 200 )
>                      A(i, j) = 100;
>              else
>                A(i,j) = 0;
>               }
>           }
>         //  B = FFTW(A);
>
>
>         // std::cout << a_matrix;
>         return 0;
>       }
>
>
> There is no error on mkoctfile …. so long as I do not try to get B = fft2(A) 
> definition or statement.
>
> How to call octave functions within a c++ file. One simple example on  two 
> hour search on internet  I have
> found on  EIG eig = EIG(A);   that works but I need a fft2.
>
> Can anybody give a hint to me?
>
> Sincerely,
>
> Hans
>
>
>
>
>
> Fraunhofer IOSB
> Gutleuthausstr. 1
> 76275 Ettlingen
> Germany
>
> hans-juergen.gr...@iosb.fraunhofer.de
> Tel. 0049 7243 992336
> www.iosb.fraunhofer.de
>
>
>

You might want to try the octave-help mailing list 
(help-oct...@octave.org), since that is focused on actually using 
Octave, including building against it.  Our lists are more focused just 
to issues with building and installing packages under Fink, and this 
doesn't necessarily look like it's a problem in how Fink builds Octave.

-- 
Alexander Hansen, Ph.D.
Fink User Liaison
My package updates: http://finkakh.wordpress.com/

------------------------------------------------------------------------------
Introducing Performance Central, a new site from SourceForge and 
AppDynamics. Performance Central is your source for news, insights, 
analysis and resources for efficient Application Performance Management. 
Visit us today!
http://pubads.g.doubleclick.net/gampad/clk?id=48897511&iu=/4140/ostg.clktrk
_______________________________________________
Fink-beginners mailing list
Fink-beginners@lists.sourceforge.net
List archive:
http://news.gmane.org/gmane.os.apple.fink.beginners
Subscription management:
https://lists.sourceforge.net/lists/listinfo/fink-beginners

Reply via email to