From: Einar O. <ei...@st...> - 2003-02-13 14:23:49
|
I have a problem using predefined stencils. The program below does not compile on my SGI using the MIPSpro compiler. I've seen some comments earlier in the blitz-bug archive, but it didn't make things clearer. How should I use the predefined templates? Thanks, Einar Otnes Test program: #include <blitz/array.h> using namespace blitz; int main() { int const N = 10; Array<float,2> junk(N,N); Array<float,2> junkDiff(N,N); junk = tensor::j; junkDiff = central12n(junk,secondDim); } Here is the result of my compilation: CC -64 -DBZ_DISABLE_XOPEN_SOURCE -LANG:std -LANG:restrict -I/private/eiot/Blitz++-0.5 -I../include -O3 -OPT:Olimit=0 -TENV:X=0 -c testStencil.cpp cc-1132 CC: ERROR File = /private/eiot/Blitz++-0.5/blitz/array/stencilops.h, Line = 132 The class "blitz::Array<float, 2>" has no member "shift". return A.shift(1,dim) - A.shift(-1,dim); ^ A template was detected during header processing. instantiation of "blitz::Array<float, 2>::T_numtype blitz::central12(blitz::Array<float, 2> &, int)" at line 176 instantiation of "blitz::Array<float, 2>::T_numtype blitz::central12n(blitz::Array<float, 2> &, int)" at line 14 of "testStencil.cpp" cc-1132 CC: ERROR File = /private/eiot/Blitz++-0.5/blitz/array/stencilops.h, Line = 132 The class "blitz::Array<float, 2>" has no member "shift". return A.shift(1,dim) - A.shift(-1,dim); ^ A template was detected during header processing. instantiation of "blitz::Array<float, 2>::T_numtype blitz::central12(blitz::Array<float, 2> &, int)" at line 176 instantiation of "blitz::Array<float, 2>::T_numtype blitz::central12n(blitz::Array<float, 2> &, int)" at line 14 of "testStencil.cpp" 2 errors detected in the compilation of "testStencil.cpp". make: *** [testStencil.o] Error 2 ------------------------------------------------------------------- The information contained in this message may be CONFIDENTIAL and is intended for the addressee only. Any unauthorised use, dissemination of the information or copying of this message is prohibited. If you are not the addressee, please notify the sender immediately by return e-mail and delete this message. Thank you. |