INMOST
Mathematical Modelling Toolkit
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Classes | Public Types | Public Member Functions | List of all members
INMOST::Automatizator Class Reference

#include <inmost_autodiff.h>

Collaboration diagram for INMOST::Automatizator:

Classes

struct  table
 

Public Types

typedef INMOST_DATA_REAL_TYPE(* func_callback )(const Storage &current_element, void *user_data)
 
typedef std::pair< HandleType,
INMOST_DATA_REAL_TYPE
stencil_pair
 
typedef dynarray< stencil_pair, 64 > stencil_pairs
 
typedef void(* stencil_callback )(const Storage &current_element, stencil_pairs &out_stencil, void *user_data)
 
typedef tabletable_ptr
 

Public Member Functions

 Automatizator (Mesh *m)
 
 ~Automatizator ()
 
__INLINE INMOST_DATA_ENUM_TYPE GetFirstIndex ()
 
__INLINE INMOST_DATA_ENUM_TYPE GetLastIndex ()
 
INMOST_DATA_ENUM_TYPE RegisterFunc (std::string name, func_callback func)
 
INMOST_DATA_ENUM_TYPE RegisterStencil (std::string name, Tag elements_tag, Tag coefs_tag, MarkerType domain_mask=0)
 
INMOST_DATA_ENUM_TYPE RegisterStencil (std::string name, stencil_callback func, MarkerType domain_mask=0)
 
INMOST_DATA_ENUM_TYPE RegisterTable (std::string name, INMOST_DATA_REAL_TYPE *Arguments, INMOST_DATA_REAL_TYPE *Values, INMOST_DATA_ENUM_TYPE size)
 
INMOST_DATA_ENUM_TYPE RegisterDynamicTag (Tag t, ElementType typemask, MarkerType domain_mask=0)
 
INMOST_DATA_ENUM_TYPE RegisterStaticTag (Tag t, MarkerType domain_mask=0)
 
void EnumerateDynamicTags ()
 
__INLINE Tag GetDynamicValueTag (INMOST_DATA_ENUM_TYPE ind)
 
__INLINE Tag GetDynamicIndexTag (INMOST_DATA_ENUM_TYPE ind)
 
__INLINE MarkerType GetDynamicMask (INMOST_DATA_ENUM_TYPE ind)
 
__INLINE Tag GetStaticValueTag (INMOST_DATA_ENUM_TYPE ind)
 
__INLINE MarkerType GetStaticMask (INMOST_DATA_ENUM_TYPE ind)
 
__INLINE INMOST_DATA_REAL_TYPE GetDynamicValue (const Storage &e, INMOST_DATA_ENUM_TYPE ind, INMOST_DATA_ENUM_TYPE comp=0)
 
__INLINE INMOST_DATA_ENUM_TYPE GetDynamicIndex (const Storage &e, INMOST_DATA_ENUM_TYPE ind, INMOST_DATA_ENUM_TYPE comp=0)
 
__INLINE bool isDynamicValid (const Storage &e, INMOST_DATA_ENUM_TYPE ind)
 
__INLINE INMOST_DATA_REAL_TYPE GetStaticValue (const Storage &e, INMOST_DATA_ENUM_TYPE ind, INMOST_DATA_ENUM_TYPE comp=0)
 
__INLINE bool isStaticValid (const Storage &e, INMOST_DATA_ENUM_TYPE ind)
 
INMOST_DATA_REAL_TYPE Evaluate (const expr &var, const Storage &e, void *user_data)
 
INMOST_DATA_REAL_TYPE Derivative (const expr &var, const Storage &e, Sparse::Row &out, Storage::real multiply, void *user_data)
 
__INLINE INMOST_DATA_REAL_TYPE GetIndex (const Storage &e, INMOST_DATA_ENUM_TYPE tagind, INMOST_DATA_ENUM_TYPE comp=0)
 
__INLINE INMOST_DATA_ENUM_TYPE GetComponents (const Storage &e, INMOST_DATA_ENUM_TYPE tagind)
 
__INLINE MeshGetMesh ()
 
__INLINE INMOST_DATA_REAL_TYPEGetTableArguments (INMOST_DATA_ENUM_TYPE tableind)
 
__INLINE INMOST_DATA_REAL_TYPEGetTableValues (INMOST_DATA_ENUM_TYPE tableind)
 
__INLINE INMOST_DATA_ENUM_TYPE GetTableSize (INMOST_DATA_ENUM_TYPE tableind)
 
__INLINE INMOST_DATA_REAL_TYPE GetTableValue (INMOST_DATA_ENUM_TYPE tableind, INMOST_DATA_REAL_TYPE arg)
 
__INLINE INMOST_DATA_REAL_TYPE GetTableDerivative (INMOST_DATA_ENUM_TYPE tableind, INMOST_DATA_REAL_TYPE arg)
 
__INLINE std::pair
< INMOST_DATA_REAL_TYPE,
INMOST_DATA_REAL_TYPE
GetTableBoth (INMOST_DATA_ENUM_TYPE tableind, INMOST_DATA_REAL_TYPE arg)
 
INMOST_DATA_ENUM_TYPE GetStencil (INMOST_DATA_ENUM_TYPE stnclind, const Storage &elem, void *user_data, stencil_pairs &ret)
 
__INLINE INMOST_DATA_REAL_TYPE GetFunction (INMOST_DATA_ENUM_TYPE funcid, const Storage &elem, void *user_data)
 
Sparse::RowMergerGetMerger ()
 

Detailed Description

Definition at line 87 of file inmost_autodiff.h.

Member Typedef Documentation

typedef INMOST_DATA_REAL_TYPE(* INMOST::Automatizator::func_callback)(const Storage &current_element, void *user_data)

Definition at line 90 of file inmost_autodiff.h.

typedef void(* INMOST::Automatizator::stencil_callback)(const Storage &current_element, stencil_pairs &out_stencil, void *user_data)

Definition at line 93 of file inmost_autodiff.h.

Definition at line 91 of file inmost_autodiff.h.

Definition at line 92 of file inmost_autodiff.h.

Definition at line 122 of file inmost_autodiff.h.

Constructor & Destructor Documentation

INMOST::Automatizator::Automatizator ( Mesh m)
INMOST::Automatizator::~Automatizator ( )

Member Function Documentation

INMOST_DATA_REAL_TYPE INMOST::Automatizator::Derivative ( const expr var,
const Storage e,
Sparse::Row out,
Storage::real  multiply,
void *  user_data 
)
void INMOST::Automatizator::EnumerateDynamicTags ( )
INMOST_DATA_REAL_TYPE INMOST::Automatizator::Evaluate ( const expr var,
const Storage e,
void *  user_data 
)
__INLINE INMOST_DATA_ENUM_TYPE INMOST::Automatizator::GetComponents ( const Storage e,
INMOST_DATA_ENUM_TYPE  tagind 
)
inline

Definition at line 172 of file inmost_autodiff.h.

Here is the call graph for this function:

__INLINE INMOST_DATA_ENUM_TYPE INMOST::Automatizator::GetDynamicIndex ( const Storage e,
INMOST_DATA_ENUM_TYPE  ind,
INMOST_DATA_ENUM_TYPE  comp = 0 
)
inline

Definition at line 160 of file inmost_autodiff.h.

Here is the call graph for this function:

Here is the caller graph for this function:

__INLINE Tag INMOST::Automatizator::GetDynamicIndexTag ( INMOST_DATA_ENUM_TYPE  ind)
inline

Definition at line 155 of file inmost_autodiff.h.

Here is the caller graph for this function:

__INLINE MarkerType INMOST::Automatizator::GetDynamicMask ( INMOST_DATA_ENUM_TYPE  ind)
inline

Definition at line 156 of file inmost_autodiff.h.

Here is the caller graph for this function:

__INLINE INMOST_DATA_REAL_TYPE INMOST::Automatizator::GetDynamicValue ( const Storage e,
INMOST_DATA_ENUM_TYPE  ind,
INMOST_DATA_ENUM_TYPE  comp = 0 
)
inline

Definition at line 159 of file inmost_autodiff.h.

Here is the call graph for this function:

Here is the caller graph for this function:

__INLINE Tag INMOST::Automatizator::GetDynamicValueTag ( INMOST_DATA_ENUM_TYPE  ind)
inline

Definition at line 154 of file inmost_autodiff.h.

Here is the caller graph for this function:

__INLINE INMOST_DATA_ENUM_TYPE INMOST::Automatizator::GetFirstIndex ( )
inline

Definition at line 145 of file inmost_autodiff.h.

__INLINE INMOST_DATA_REAL_TYPE INMOST::Automatizator::GetFunction ( INMOST_DATA_ENUM_TYPE  funcid,
const Storage elem,
void *  user_data 
)
inline

Definition at line 181 of file inmost_autodiff.h.

__INLINE INMOST_DATA_REAL_TYPE INMOST::Automatizator::GetIndex ( const Storage e,
INMOST_DATA_ENUM_TYPE  tagind,
INMOST_DATA_ENUM_TYPE  comp = 0 
)
inline

Definition at line 171 of file inmost_autodiff.h.

Here is the call graph for this function:

__INLINE INMOST_DATA_ENUM_TYPE INMOST::Automatizator::GetLastIndex ( )
inline

Definition at line 146 of file inmost_autodiff.h.

Sparse::RowMerger& INMOST::Automatizator::GetMerger ( )
inline

Definition at line 182 of file inmost_autodiff.h.

Here is the caller graph for this function:

__INLINE Mesh* INMOST::Automatizator::GetMesh ( )
inline

Definition at line 173 of file inmost_autodiff.h.

__INLINE MarkerType INMOST::Automatizator::GetStaticMask ( INMOST_DATA_ENUM_TYPE  ind)
inline

Definition at line 158 of file inmost_autodiff.h.

Here is the caller graph for this function:

__INLINE INMOST_DATA_REAL_TYPE INMOST::Automatizator::GetStaticValue ( const Storage e,
INMOST_DATA_ENUM_TYPE  ind,
INMOST_DATA_ENUM_TYPE  comp = 0 
)
inline

Definition at line 162 of file inmost_autodiff.h.

Here is the call graph for this function:

Here is the caller graph for this function:

__INLINE Tag INMOST::Automatizator::GetStaticValueTag ( INMOST_DATA_ENUM_TYPE  ind)
inline

Definition at line 157 of file inmost_autodiff.h.

Here is the caller graph for this function:

INMOST_DATA_ENUM_TYPE INMOST::Automatizator::GetStencil ( INMOST_DATA_ENUM_TYPE  stnclind,
const Storage elem,
void *  user_data,
stencil_pairs ret 
)

Here is the caller graph for this function:

__INLINE INMOST_DATA_REAL_TYPE* INMOST::Automatizator::GetTableArguments ( INMOST_DATA_ENUM_TYPE  tableind)
inline

Definition at line 174 of file inmost_autodiff.h.

__INLINE std::pair<INMOST_DATA_REAL_TYPE, INMOST_DATA_REAL_TYPE> INMOST::Automatizator::GetTableBoth ( INMOST_DATA_ENUM_TYPE  tableind,
INMOST_DATA_REAL_TYPE  arg 
)
inline

Definition at line 179 of file inmost_autodiff.h.

__INLINE INMOST_DATA_REAL_TYPE INMOST::Automatizator::GetTableDerivative ( INMOST_DATA_ENUM_TYPE  tableind,
INMOST_DATA_REAL_TYPE  arg 
)
inline

Definition at line 178 of file inmost_autodiff.h.

__INLINE INMOST_DATA_ENUM_TYPE INMOST::Automatizator::GetTableSize ( INMOST_DATA_ENUM_TYPE  tableind)
inline

Definition at line 176 of file inmost_autodiff.h.

Here is the call graph for this function:

__INLINE INMOST_DATA_REAL_TYPE INMOST::Automatizator::GetTableValue ( INMOST_DATA_ENUM_TYPE  tableind,
INMOST_DATA_REAL_TYPE  arg 
)
inline

Definition at line 177 of file inmost_autodiff.h.

__INLINE INMOST_DATA_REAL_TYPE* INMOST::Automatizator::GetTableValues ( INMOST_DATA_ENUM_TYPE  tableind)
inline

Definition at line 175 of file inmost_autodiff.h.

__INLINE bool INMOST::Automatizator::isDynamicValid ( const Storage e,
INMOST_DATA_ENUM_TYPE  ind 
)
inline

Definition at line 161 of file inmost_autodiff.h.

Here is the call graph for this function:

__INLINE bool INMOST::Automatizator::isStaticValid ( const Storage e,
INMOST_DATA_ENUM_TYPE  ind 
)
inline

Definition at line 163 of file inmost_autodiff.h.

Here is the call graph for this function:

INMOST_DATA_ENUM_TYPE INMOST::Automatizator::RegisterDynamicTag ( Tag  t,
ElementType  typemask,
MarkerType  domain_mask = 0 
)
INMOST_DATA_ENUM_TYPE INMOST::Automatizator::RegisterFunc ( std::string  name,
func_callback  func 
)
INMOST_DATA_ENUM_TYPE INMOST::Automatizator::RegisterStaticTag ( Tag  t,
MarkerType  domain_mask = 0 
)
INMOST_DATA_ENUM_TYPE INMOST::Automatizator::RegisterStencil ( std::string  name,
Tag  elements_tag,
Tag  coefs_tag,
MarkerType  domain_mask = 0 
)
INMOST_DATA_ENUM_TYPE INMOST::Automatizator::RegisterStencil ( std::string  name,
stencil_callback  func,
MarkerType  domain_mask = 0 
)
INMOST_DATA_ENUM_TYPE INMOST::Automatizator::RegisterTable ( std::string  name,
INMOST_DATA_REAL_TYPE Arguments,
INMOST_DATA_REAL_TYPE Values,
INMOST_DATA_ENUM_TYPE  size 
)

The documentation for this class was generated from the following file: