Blitz logo

Blitz Support :

From: Paul Ledbetter III (aeacides_at_[hidden])
Date: 2004-10-20 18:06:05


(Sorry, this may be a duplicate)

Hello,

The documentation seems to indicate that I can use
arithmetic operations on blitz::TinyVectors. But g++
version 3.4 does not seem to recognize them.

For instance,
blitz::Array<double, 1> x;
x * x;

compiles, but

blitz::TinyVector<double, 2> y;
y * y;

does not. g++ version 3.4 claims no match for
operator*.

What is going on here? How can I create expressions
involving Tiny Vectors?

Paul