[top][index]
search for:

table -- make a table (nested list)

table(u,v,f) -- yields a table m in which m_i_j is f(u_i,v_j).

A table is a list of lists, all of the same length. The entry m_i_j is computed as f(u_i,v_j).

table(m,n,f) -- yields, when m and n are integers, a table of size m by n whose entries are obtained by evaluating f() repeatedly.

See also isTable, and subtable.

Code:

     -- ../../../Macaulay2/m2/tables.m2:3
     table = (rows,cols,f) -> apply(rows,i->apply(cols,j->f(i,j)))

[top][index]
search for: