From: Matthias S. <mat...@tk...> - 2003-08-12 22:08:18
|
Hi, if I try to compile this small program with gcc-3.2 /******************************************/ #include <iostream> #include <complex> #include <blitz/array.h> using namespace blitz; typedef TinyVector< std::complex<double> ,2> cVector2D; int main() { cVector2D a( std::complex<double>(1.0,1.0), std::complex<double>(2.0,2.0)); cVector2D b; b=conj(a); return 0; }; /*****************************************/ I get the following error message: tinytest.cpp: In function `int main()': tinytest.cpp:11: cannot convert `cVector2D' to `__complex__ double' for argument `1' to `__complex__ double std::conj(__complex__ double)' For Arrays conj() works fine and following the blitz++ user guide it should also work for TinyVector. Thanks for any suggestions! Matthias |