Re: [Discuss-gnuradio] LAPACK/BLAS with GNURadio
On Sun, Dec 13, 2009 at 02:48:25PM +0100, Moritz Fischer wrote: > Dear List, > > I was trying to implement some LAPACK/BLAS(liblapack as included in > Ubuntu) wrappers for GNURadio since I haven't found anything to do > matrix/vector operations in GNURadio but I haven't found out how to do a > clever conversion from Fortran's (more precise the f2c) way of dealing > with complex numbers ( a C-struct ): > > extern "C" > { > struct{ > float real; > float imag; > } complex; > } > > to the GNURadio way: > > std::complex > > and back. They have the same underlying representation, so there shouldn't be any problem, cast away. FWIW, we already link gnuradio-core with GSL (the GNU Scientific Library) which in turns links with CBLAS. Eric ___ Discuss-gnuradio mailing list Discuss-gnuradio@gnu.org http://lists.gnu.org/mailman/listinfo/discuss-gnuradio
[Discuss-gnuradio] LAPACK/BLAS with GNURadio
Dear List, I was trying to implement some LAPACK/BLAS(liblapack as included in Ubuntu) wrappers for GNURadio since I haven't found anything to do matrix/vector operations in GNURadio but I haven't found out how to do a clever conversion from Fortran's (more precise the f2c) way of dealing with complex numbers ( a C-struct ): extern "C" { struct{ float real; float imag; } complex; } to the GNURadio way: std::complex and back. My C++ knowledge on alignment etc. is too limited, up to now I just copied them, since reinterpret_cast<> or static_cast<> only work for certain architecture / alignment combinations. So if anyone has some ideas please let me know. Cheers, Moritz ___ Discuss-gnuradio mailing list Discuss-gnuradio@gnu.org http://lists.gnu.org/mailman/listinfo/discuss-gnuradio