Re: [eclipse-clp-users] help with gcc_matrix

From: Thorsten Winterer <thorsten_winterer_at_...126...>
Date: Tue, 09 Feb 2010 15:01:06 +0100
Hi Geoff,

Am 09.02.2010 05:23, schrieb Moon, Geoff:
> go:-
> dim(M,[2,2]),
> M :: 1..4,
> Rows =  [
>         [gcc(0,1,1),gcc(0,1,2)],
>         [gcc(0,1,3),gcc(0,1,4)]
>         ],
> Cols =  [
>         [gcc(0,1,1),gcc(0,1,3)],
>         [gcc(0,1,2),gcc(0,1,4)]
>         ],
> gcc_matrix(Rows,Cols,M),
> label(M),
> writeln(M).
>
>   

you need to specify gcc entries for the whole domain:

...,
Rows = [

        [gcc(0,1,1),gcc(0,1,2),gcc(0,0,3),gcc(0,0,4)],
        [gcc(0,0,1),gcc(0,0,2),gcc(0,1,3),gcc(0,1,4)]
        ],
Cols =  [
        [gcc(0,1,1),gcc(0,0,2),gcc(0,1,3),gcc(0,0,4)],
        [gcc(0,0,1),gcc(0,1,2),gcc(0,0,3),gcc(0,1,4)]
        ],
...


Cheers,
Thorsten
Received on Tue Feb 09 2010 - 14:26:12 CET

This archive was generated by hypermail 2.3.0 : Tue Apr 16 2024 - 09:13:20 CEST