[gecode-users] sizes of arguments arrays mismatch
Guido Tack
tack at gecode.org
Sat Jan 18 23:49:58 CET 2014
You need to initialise D to size n*m before passing it to the Matrix constructor (the error says exactly that, the sizes don't match).
Cheers,
Guido
On 19 Jan 2014, at 8:45 am, mehdi m <medistif at hotmail.fr> wrote:
> Hello everyone,
> in my model i have a problem, a try to use create a matrix such as :
>
> const int n=5;
> const int m=10;
>
> IntArgs D;
>
> Matrix <IntArgs> bdd (D , n, m);
>
> i need the type IntArgs in my model.
>
> this gives me an error :
>
> Exception: Matrix::Matrix(A, w, h): Sizes of argument arrays mismatch stopping.
>
> if someone has an idea, thank you.
>
> Mehdi.
> _______________________________________________
> Gecode users mailing list
> users at gecode.org
> https://www.gecode.org/mailman/listinfo/gecode-users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.gecode.org/pipermail/users/attachments/20140119/4cfd509a/attachment.html>
More information about the users
mailing list