[eclipse-clp-users] Array Dimension

From: Igor Kondrasovas <igor_at_inovativatec.com>
Date: Tue, 27 Oct 2009 18:49:31 -0200
Hello,

 

I have a simple question regarding array dimension. I must create a
2-dimension array based on the size of two 1-dimension arrays. For instance:

 

I have a predicate like:

 

Linear(pieces, bars):- % pieces and bars are 1 dimensional arrays (from any
length). Then I must create a 2 dimension array based on its size:

 

dim(M,[pieces length, bars length]),

 

How can I do that? Where can I find some examples?

 

Thanks in advance,

 

Igor Kondrasovas

 
Received on Tue Oct 27 2009 - 21:13:08 CET

This archive was generated by hypermail 2.2.0 : Thu Feb 02 2012 - 02:31:58 CET