21 unsigned int seed = 0;
23 for (i = 0; i <
size; i++)
39 for (i = 0; i < n; i++)
46 for (j = 0, i = 1; i < n; i++)
58 for (
int i = 0; i < TheList.Size(); i++)
66 return TheList.Size()-1;
71 for (
int i = 0; i < TheList.Size(); i++)
77 mfem_error(
"ListOfIntegerSets::Lookup (), integer set not found.");
87 for (i = 0; i <
Size(); i++)
94 for (i = 0; i <
Size(); i++)
105 for (
int i = 0; i < TheList.Size(); i++)
T * GetData()
Returns the data.
int PickRandomElement() const
Return the value of a random element of the set.
void Recreate(const int n, const int *p)
Create an integer set from C-array 'p' of 'n' integers. Overwrites any existing set data.
int Insert(const IntegerSet &s)
Check to see if set 's' is in the list. If not append it to the end of the list. Returns the index of...
void AsTable(Table &t) const
Write the list of sets into table 't'.
int Lookup(const IntegerSet &s) const
int Size() const
Return the number of integer sets in the list.
void AddConnections(int r, const int *c, int nc)
void MakeI(int nrows)
Next 7 methods are used together with the default constructor.
void AddColumnsInRow(int r, int ncol)
void mfem_error(const char *msg)
real_t p(const Vector &x, real_t t)