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
kan@egr.msu.edu
--------------------- blitz-support list --------------------------------
* To subscribe/unsubscribe: mail to majordomo@oonumerics.org, with
"subscribe blitz-support" or "unsubscribe blitz-support" in the body of the message
* Blitz++ web page: http://oonumerics.org/blitz/
This archive was generated by hypermail 2b29 : Wed Feb 20 2002 - 05:10:04 EST