NGSolve
4.9
|
Standard Data Types and Algorithms. More...
Classes | |
class | ArrayRangeException |
Exception thrown by array range check. More... | |
class | BaseArrayObject |
class | AOWrapper |
class | CArray |
nothing more but a new type for a C array. More... | |
class | IntRange |
a range of intergers More... | |
class | IndirectArray |
class | FlatArray |
A simple array container. More... | |
class | Array |
Dynamic array container. More... | |
class | ArrayMem |
Array with static and dynamic memory management. More... | |
class | AutoDiffDiff |
Datatype for automatic differentiation. More... | |
class | AutoDiff |
Datatype for automatic differentiation. More... | |
class | AutoPtr |
Pointer to object. More... | |
class | BitArray |
A compressed array of bools. More... | |
class | BlockAllocator |
Optimized memory handler. More... | |
class | EvalFunction |
Numerical expression parser. More... | |
class | Exception |
Base class for all ng exceptions. More... | |
class | RangeException |
Out of range exception used for arrays, vectors and matrices. More... | |
class | Flags |
A storage for command-line flags. More... | |
class | INT |
N integers. More... | |
class | HashTable |
A hash-table. More... | |
class | ClosedHashTable |
A closed hash-table. More... | |
class | LocalHeapOverflow |
Exception on heap overflow. More... | |
class | LocalHeap |
Optimized memory handler. More... | |
class | LocalHeapMem |
Optimized memory handler. More... | |
class | HeapReset |
A reset for the heap-pointer of a LocalHeap. More... | |
class | MemoryUsageStruct |
Reports amount of used memory. More... | |
class | NgProfiler |
A built-in profile. More... | |
class | Timer |
class | RegionTimer |
Timer object. More... | |
class | BaseStatusHandler |
Access to statusbar. More... | |
class | BaseSymbolTable |
Base class for generic SymbolTable. More... | |
class | SymbolTable |
A symbol table. More... | |
class | BaseTable |
Base class of {Table} container. More... | |
class | Table |
A compact Table container. More... | |
class | TableCreator |
class | FilteredTableCreator |
class | BaseDynamicTable |
Base class to generic DynamicTable. More... | |
class | DynamicTable |
A dynamic table class. More... | |
class | MPI_Traits< ngbla::Complex > |
class | MPI_Traits< ngbla::Mat< N, M, T > > |
class | MPI_Traits< ngbla::Vec< S, T > > |
class | MPI_Traits< ngcomp::COUPLING_TYPE > |
Typedefs | |
typedef DynamicTable< int > | IntTable |
Functions | |
template<typename T , typename TA > | |
ostream & | operator<< (ostream &ost, const BaseArrayObject< T, TA > &array) |
template<typename T > | |
AOWrapper< T > | ArrayObject (const T &ar) |
IntRange | operator+ (const IntRange &range, int shift) |
IntRange | operator+ (int shift, const IntRange &range) |
IntRange | operator* (int scale, const IntRange &range) |
IntRange | operator* (const IntRange &range, int scale) |
ostream & | operator<< (ostream &s, const IntRange &ir) |
template<class T > | |
ostream & | operator<< (ostream &s, const FlatArray< T > &a) |
print array | |
template<class T1 , class T2 > | |
bool | operator== (const FlatArray< T1 > &a1, const FlatArray< T2 > &a2) |
have arrays the same contents ? | |
template<typename T2 , typename TA > | |
Array< int > & | operator+= (Array< int > &array, const BaseArrayObject< T2, TA > &a2) |
template<class T > | |
void | BubbleSort (const FlatArray< T > &data) |
bubble sort array | |
template<class T , class S > | |
void | BubbleSort (FlatArray< T > &data, FlatArray< S > &slave) |
bubble sort array | |
template<class T , typename TLESS > | |
void | QuickSort (FlatArray< T > data, TLESS less) |
template<typename T > | |
bool | DefaultLess (const T &a, const T &b) |
template<class T > | |
void | QuickSort (FlatArray< T > data) |
template<class T , typename TLESS > | |
void | QuickSortI (FlatArray< T > data, FlatArray< int > index, TLESS less) |
template<class T > | |
void | QuickSortI (FlatArray< T > data, FlatArray< int > index) |
NGS_DLL_HEADER ostream & | operator<< (ostream &s, const BitArray &ba) |
prints BitArray | |
ostream & | operator<< (ostream &s, const Flags &flags) |
Print flags. | |
template<int N> | |
ostream & | operator<< (ostream &s, const INT< N > &i2) |
Print integers. | |
template<int N> | |
int | HashValue (const INT< N > &ind, int size) |
int | HashValue (const INT< 1 > &ind, int size) |
hash value of 1 int | |
int | HashValue (const INT< 2 > &ind, int size) |
hash value of 2 int | |
int | HashValue (const INT< 3 > &ind, int size) |
hash value of 3 int | |
template<int D> | |
int | Max (const INT< D > &i) |
NGS_DLL_HEADER bool | StringFitsPattern (const string &str, const string &pattern) |
template<typename T > | |
ostream & | operator<< (ostream &ost, SymbolTable< T > &st) |
template<class T > | |
ostream & | operator<< (ostream &s, const Table< T > &table) |
Print table. | |
template<class T > | |
ostream & | operator<< (ostream &s, const DynamicTable< T > &table) |
Print table. | |
template<class T > | |
T | min2 (T a, T b) |
min of 2 values | |
template<class T > | |
T | max2 (T a, T b) |
max of 2 values | |
template<class T > | |
T | min3 (T a, T b, T c) |
min of 3 values | |
template<class T > | |
T | max3 (T a, T b, T c) |
max of 3 values | |
template<class T > | |
void | Swap (T &a, T &b) |
swap 2 elements. | |
template<class T > | |
int | sgn (T a) |
sign of value (+1, 0, -1) | |
template<class T > | |
T | sqr (const T a) |
square element | |
template<class T > | |
T | pow3 (const T a) |
element to the third power | |
template<class T > | |
string | ToString (const T &t) |
template<class T > | |
void | SaveBin (ostream &ost, const T &val) |
template<class T > | |
void | LoadBin (istream &ist, T &val) |
template<int D> | |
ostream & | operator<< (ostream &ost, const AutoDiffDiff< D > &x) |
Prints AudoDiffDiff. | |
template<int D> | |
AutoDiffDiff< D > | operator+ (const AutoDiffDiff< D > &x, const AutoDiffDiff< D > &y) throw () |
template<int D> | |
AutoDiffDiff< D > | operator- (const AutoDiffDiff< D > &x, const AutoDiffDiff< D > &y) throw () |
template<int D> | |
AutoDiffDiff< D > | operator+ (double x, const AutoDiffDiff< D > &y) throw () |
template<int D> | |
AutoDiffDiff< D > | operator+ (const AutoDiffDiff< D > &y, double x) throw () |
template<int D> | |
AutoDiffDiff< D > | operator- (const AutoDiffDiff< D > &x) throw () |
template<int D> | |
AutoDiffDiff< D > | operator- (const AutoDiffDiff< D > &x, double y) throw () |
template<int D> | |
AutoDiffDiff< D > | operator- (double x, const AutoDiffDiff< D > &y) throw () |
template<int D> | |
AutoDiffDiff< D > | operator* (double x, const AutoDiffDiff< D > &y) throw () |
template<int D> | |
AutoDiffDiff< D > | operator* (const AutoDiffDiff< D > &y, double x) throw () |
template<int D> | |
AutoDiffDiff< D > | operator* (const AutoDiffDiff< D > &x, const AutoDiffDiff< D > &y) throw () |
template<int D> | |
AutoDiffDiff< D > | Inv (const AutoDiffDiff< D > &x) |
template<int D> | |
AutoDiffDiff< D > | operator/ (const AutoDiffDiff< D > &x, const AutoDiffDiff< D > &y) |
template<int D> | |
AutoDiffDiff< D > | operator/ (const AutoDiffDiff< D > &x, double y) |
template<int D> | |
AutoDiffDiff< D > | operator/ (double x, const AutoDiffDiff< D > &y) |
template<int D> | |
AutoDiffDiff< D > | sqrt (const AutoDiffDiff< D > &x) |
template<int D, typename SCAL > | |
ostream & | operator<< (ostream &ost, const AutoDiff< D, SCAL > &x) |
prints AutoDiff | |
template<int D, typename SCAL > | |
ALWAYS_INLINE AutoDiff< D, SCAL > | operator+ (const AutoDiff< D, SCAL > &x, const AutoDiff< D, SCAL > &y) throw () |
AutoDiff plus AutoDiff. | |
template<int D, typename SCAL > | |
ALWAYS_INLINE AutoDiff< D, SCAL > | operator- (const AutoDiff< D, SCAL > &x, const AutoDiff< D, SCAL > &y) throw () |
AutoDiff minus AutoDiff. | |
template<int D, typename SCAL > | |
ALWAYS_INLINE AutoDiff< D, SCAL > | operator+ (double x, const AutoDiff< D, SCAL > &y) throw () |
double plus AutoDiff | |
template<int D, typename SCAL > | |
ALWAYS_INLINE AutoDiff< D, SCAL > | operator+ (const AutoDiff< D, SCAL > &y, double x) throw () |
AutoDiff plus double. | |
template<int D, typename SCAL > | |
ALWAYS_INLINE AutoDiff< D, SCAL > | operator- (const AutoDiff< D, SCAL > &x) throw () |
minus AutoDiff | |
template<int D, typename SCAL > | |
ALWAYS_INLINE AutoDiff< D, SCAL > | operator- (const AutoDiff< D, SCAL > &x, double y) throw () |
AutoDiff minus double. | |
template<int D, typename SCAL > | |
ALWAYS_INLINE AutoDiff< D, SCAL > | operator- (double x, const AutoDiff< D, SCAL > &y) throw () |
template<int D, typename SCAL > | |
ALWAYS_INLINE AutoDiff< D, SCAL > | operator* (double x, const AutoDiff< D, SCAL > &y) throw () |
double times AutoDiff | |
template<int D, typename SCAL > | |
ALWAYS_INLINE AutoDiff< D, SCAL > | operator* (const AutoDiff< D, SCAL > &y, double x) throw () |
AutoDiff times double. | |
template<int D, typename SCAL > | |
ALWAYS_INLINE AutoDiff< D, SCAL > | operator* (const AutoDiff< D, SCAL > &x, const AutoDiff< D, SCAL > &y) throw () |
AutoDiff times AutoDiff. | |
template<int D, typename SCAL > | |
AutoDiff< D, SCAL > | sqr (const AutoDiff< D, SCAL > &x) throw () |
AutoDiff times AutoDiff. | |
template<int D, typename SCAL > | |
AutoDiff< D, SCAL > | Inv (const AutoDiff< D, SCAL > &x) |
Inverse of AutoDiff. | |
template<int D, typename SCAL > | |
AutoDiff< D, SCAL > | operator/ (const AutoDiff< D, SCAL > &x, const AutoDiff< D, SCAL > &y) |
AutoDiff div AutoDiff. | |
template<int D, typename SCAL > | |
AutoDiff< D, SCAL > | operator/ (const AutoDiff< D, SCAL > &x, double y) |
AutoDiff div double. | |
template<int D, typename SCAL > | |
AutoDiff< D, SCAL > | operator/ (double x, const AutoDiff< D, SCAL > &y) |
double div AutoDiff | |
template<int D, typename SCAL > | |
AutoDiff< D, SCAL > | fabs (const AutoDiff< D, SCAL > &x) |
template<int D, typename SCAL > | |
AutoDiff< D, SCAL > | sqrt (const AutoDiff< D, SCAL > &x) |
Variables | |
NGS_DLL_HEADER::std::ostream * | testout |
const char | dirslash = '/' |
Standard Data Types and Algorithms.
namespace for standard data types and algorithms.
The ngstd library contains generic container classes
It contains utility classes:
Generic container classes: FlatArray, Array, ArrayMem, Table, DynamicTable, HashTable, SymbolTable.
Specific data types Exception, BitArray, Flags, LocalHeap, BlockAllocator, NgProfiler, AutoPtr, EvalFunction, AutoDiff, AutoDiffDiff