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, ThorstenReceived on Tue Feb 09 2010 - 14:26:12 CET
This archive was generated by hypermail 2.2.0 : Thu Feb 02 2012 - 02:31:58 CET