[eclipse-clp-users] Array Dimension

From: Igor Kondrasovas <igor_at_...186...>
Date: Tue, 27 Oct 2009 18:49:31 -0200


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.3.0 : Sun Aug 18 2019 - 21:14:41 CEST