Blitz logo

Blitz Support :

From: Navneet Dalal (Navneet.Dalal_at_[hidden])
Date: 2003-12-01 11:40:48


Try including "blitz/tinyvec-et.h".
All tinyvector binary operators are defined in tinyvec-et.h file.

navneet

On Mon, 1 Dec 2003 16:24:35 +0100, Hendrik Belitz <h.belitz_at_[hidden]>
wrote:

>
> I have the following code to construct a new 2D Vector from two entries
> of a
> vector field:
>
> TinyVector<double,2> resultingForce =
> field(pos1) + field(pos2);
>
> While compiling i get the following error message:
>
> csn.cpp:90: error: no match for `blitz::TinyVector<double, 2>& +
> blitz::TinyVector<double, 2>&' operator
>
> Why isn't this working and how could this problem be solved?
>
> ----------------------------------------------------------------
> Dipl.-Inform. Hendrik Belitz
> Zentrallabor für Elektronik
> Forschungszentrum Jülich GmbH
> email: h.belitz_at_[hidden]
>
>
> _______________________________________________
> Blitz-support mailing list
> Blitz-support_at_[hidden]
> http://www.oonumerics.org/mailman/listinfo.cgi/blitz-support