Blitz logo

Blitz Bugs :

From: Norbert Nemec (Norbert_at_[hidden])
Date: 2002-05-10 01:16:29


Hi there,

the function operator+(Range,int) seems to be missing, causing a snippet like

---------------------------
const int GRIDSIZE = 10;
    blitz::Array<int,2> grid;

    Range X = Range::all();
    Range Y = Range::all();
    blitz::Array<int,2> res = grid(X,Y)*(grid((X+1)%GRIDSIZE,Y)));
    energy = -sum(res);
--------------------------

to fail on compilation. Interestingly enough, replacing % by + will make the
compiler succeed, even though, I have no idea, which "operator+"-version is
actually used in that case.

Ciao,
Nobbi

-- 
-- __________________________________________________________
-- JESUS CHRIST IS LORD!
--              To Him, even that machine here has to obey...
--
-- _____________________________________Norbert "Nobbi" Nemec
-- Hindenburgstr. 44   ...   D-91054 Erlangen   ...   Germany
-- eMail: <Norbert_at_[hidden]>  Tel: +49-(0)-9131-204180
_______________________________________________
Blitz-bugs mailing list
Blitz-bugs_at_[hidden]
http://www.oonumerics.org/mailman/listinfo.cgi/blitz-bugs