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
[email protected]
Tel. 0049 7243 992336
www.iosb.fraunhofer.de
------------------------------------------------------------------------------
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
[email protected]
List archive:
http://news.gmane.org/gmane.os.apple.fink.beginners
Subscription management:
https://lists.sourceforge.net/lists/listinfo/fink-beginners