[gecode-users] Sum over matrix slice

Tomas Lidén tomas.liden at liu.se
Thu May 15 14:41:50 CEST 2014


Argh - my bad... Thanks!
/T

Christian Schulte skrev 2014-05-15 13:39:
>
> Hi Tomas,
>
> According to the documentation slice(i1,i2,j1,j2) extracts the 
> elements with coordinates in [i1,i2) and [j1,j2).
>
> So, in your example, slice(i,i+1,i,i+1) extracts the elements with 
> coordinates [i,i+1) and [i,i+1) which is the single element with 
> coordinates i,i. That means you have to write slice(i,i+2,i,i+2).
>
>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.gecode.org/pipermail/users/attachments/20140515/8243a7c1/attachment.html>


More information about the users mailing list