SparseMsg

class SparseMsg
getNumRows()

(destination message field) Requests field value. The requesting Element must provide a handler for the returned value.

getNumColumns()

(destination message field) Requests field value. The requesting Element must provide a handler for the returned value.

getNumEntries()

(destination message field) Requests field value. The requesting Element must provide a handler for the returned value.

setProbability()

(destination message field) Assigns field value.

getProbability()

(destination message field) Requests field value. The requesting Element must provide a handler for the returned value.

setSeed()

(destination message field) Assigns field value.

getSeed()

(destination message field) Requests field value. The requesting Element must provide a handler for the returned value.

setRandomConnectivity()

(destination message field) Assigns connectivity with specified probability and seed

setEntry()

(destination message field) Assigns single row,column value

unsetEntry()

(destination message field) Clears single row,column entry

clear()

(destination message field) Clears out the entire matrix

transpose()

(destination message field) Transposes the sparse matrix

pairFill()

(destination message field) Fills entire matrix using pairs of (x,y) indices to indicate presence of a connection. If the target is a FieldElement itautomagically assigns FieldIndices.

tripletFill()

(destination message field) Fills entire matrix using triplets of (x,y,fieldIndex) to fully specify every connection in the sparse matrix.

numRows

unsigned int (value field) Number of rows in matrix.

numColumns

unsigned int (value field) Number of columns in matrix.

numEntries

unsigned int (value field) Number of Entries in matrix.

probability

double (value field) connection probability for random connectivity.

seed

long (value field) Random number seed for generating probabilistic connectivity.