21 for (
int i = 0; i < me.
Size(); i++)
35 for (
int i = 0; i < me.
Size(); i++)
46 int i, size = me.
Size();
47 unsigned int seed = 0;
49 for (i = 0; i < size; i++)
56 return me[rand()/(RAND_MAX/size)];
65 for (i = 0; i < n; i++)
72 for (j = 0, i = 1; i < n; i++)
84 for (
int i = 0; i < TheList.Size(); i++)
92 return TheList.Size()-1;
97 for (
int i = 0; i < TheList.Size(); i++)
103 mfem_error(
"ListOfIntegerSets::Lookup (), integer set not found.");
113 for (i = 0; i <
Size(); i++)
120 for (i = 0; i <
Size(); i++)
131 for (
int i = 0; i < TheList.Size(); i++)
int Lookup(IntegerSet &s)
int Size() const
Logical size of the array.
void Recreate(const int n, const int *p)
void AddColumnsInRow(int r, int ncol)
void MakeI(int nrows)
Next 7 methods are used together with the default constructor.
T * GetData()
Returns the data.
void AddConnections(int r, const int *c, int nc)
int operator==(IntegerSet &s)
int Insert(IntegerSet &s)
void Sort()
Sorts the array. This requires operator< to be defined for T.
void mfem_error(const char *msg)
void SetSize(int nsize)
Change logical size of the array, keep existing entries.