cxConnection *cxConnNew(long numElements, long numConnections)
integer function cxConnNew(numelements, numconnections) integer numelements integer numconnections
The arrays in the newly allocated structure are filled with zeros to indicate that no connections have been established yet. The elements array in the connection list holds the cumulative number of connections out of lattice elements at a given pyramid layer. It is allocated to hold connection counts for numElements elements and each element is set to have zero connections. The connections array in the connection list holds the concatenation of all connections (represented by the index number of the connection's destination) for the lattice elements at a given pyramid layer. It is allocated to hold destinations for numConnections connections, but no values are stored since the elements array indicates there are no connections that need to be stored.
The newly allocated connection list is a reference counted, shared memory object. Its reference count is set in cxConnNew and need not be changed before use.