16 #include "../general/globals.hpp"
40 #ifdef MFEM_USE_MEMALLOC
50 int Push (
int r,
int c,
int f);
57 int Index (
int r,
int c,
int f)
const;
62 int Push4 (
int r,
int c,
int f,
int t);
67 int operator() (
int r,
int c,
int f,
int t)
const;
int Push(int r, int c, int f)
Check to see if this entry is in the table and add it to the table if it is not there. Returns the number assigned to the table entry.
int Index(int r, int c, int f) const
int operator()(int r, int c, int f) const
Return the number assigned to the table entry. Abort if it's not there.
double f(const Vector &xvec)
Symmetric 3D Table stored as an array of rows each of which has a stack of column, floor, number nodes. The number of the node is assigned by counting the nodes from zero as they are pushed into the table. Diagonals of any kind are not allowed so the row, column and floor must all be different for each node. Only one node is stored for all 6 symmetric entries that are indexable by unique triplets of row, column, and floor.
STable3D(int nr)
Construct the table with a total of 'nr' rows.
void Print(std::ostream &out=mfem::out) const
Print out all of the table elements.
int Push4(int r, int c, int f, int t)
Check to see if this entry is in the table and add it to the table if it is not there. The entry is addressed by the three smallest values of (r,c,f,t). Returns the number assigned to the table entry.
OutStream out(std::cout)
Global stream used by the library for standard output. Initially it uses the same std::streambuf as s...
int NumberOfElements()
Return the number of elements added to the table.