From: <ka...@eg...> - 1998-09-02 00:18:59
|
Hi there, I tried to multiply a multicomponent array by a scalar but get some "no match operator" error. Part of my program is following. #include <blitz/array.h> using namespace blitz; typedef Array<TinyVector<double,3>, 3> vectorField; int main() { int N=2; vectorField H1,H2; allocateArrays(shape(N,N,N), H1,H2); H1=1; H2=2*H1; // This line gives the error. } However, if I put the line, H2=2*(*H1), into stencil object by declaring a stencil then it works ok. What is the correct syntax to use this kind of multicomponent arrays? Why I need an extra "*" sign in the stencil declaration? Thank you very much! Kan ka...@eg... --------------------- blitz-support list -------------------------------- * To subscribe/unsubscribe: mail to maj...@oo..., with "subscribe blitz-support" or "unsubscribe blitz-support" in the body of the message * Blitz++ web page: http://oonumerics.org/blitz/ |