Difference between revisions of "ApCoCoA-1:BB.ASneighbors"

From ApCoCoAWiki
(Short description update.)
(Added parameter and return value list.)
Line 7: Line 7:
 
     <description>
 
     <description>
 
Computes the list of across-the-street neighbors in the border of the order ideal OO. The input is a list OO of terms that specify an order ideal. The output is a list of quadruples <formula>[i,j,k,l]</formula> such that <formula>x_k * b_i = x_l * b_j</formula>.
 
Computes the list of across-the-street neighbors in the border of the order ideal OO. The input is a list OO of terms that specify an order ideal. The output is a list of quadruples <formula>[i,j,k,l]</formula> such that <formula>x_k * b_i = x_l * b_j</formula>.
 +
<itemize>
 +
  <item>@param <em>OO</em> A list of terms representing an order ideal.</item>
 +
  <item>@return A list of across-the-street neighbors of O.</item>
 +
</itemize>
 
<example>
 
<example>
 
Use Q[x,y,z];
 
Use Q[x,y,z];

Revision as of 13:26, 22 April 2009

BB.ASneighbors

Compute a list of across-the-street neighbors.

Syntax

BB.ASneighbors(OO:LIST):LIST

Description

Computes the list of across-the-street neighbors in the border of the order ideal OO. The input is a list OO of terms that specify an order ideal. The output is a list of quadruples <formula>[i,j,k,l]</formula> such that <formula>x_k * b_i = x_l * b_j</formula>.

  • @param OO A list of terms representing an order ideal.

  • @return A list of across-the-street neighbors of O.

Example

Use Q[x,y,z];
BB.ASneighbors([1,x]);
[[1, 2, 2, 3], [3, 4, 2, 3], [3, 5, 1, 3], [4, 5, 1, 2]]
-------------------------------

BB.NDneighbors