dynLattice
Loading...
Searching...
No Matches
Namespaces | Macros | Typedefs | Functions | Variables
helpers.h File Reference

file containing some basic helper functions More...

Include dependency graph for helpers.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  jive_helpers
 namespace for all helper functions
 

Macros

#define WARN(key)   jem::System::warn() << key << "\n";
 
#define ERR(key)   jem::System::err() << key << "\n";
 

Typedefs

typedef Array< double, 4 > jive_helpers::Quadix
 
typedef Array< IdxVector, 2 > jive_helpers::IdxVectorMatrix
 

Functions

Vector jive_helpers::funcGrad (const Ref< Function > func, const Vector &args)
 gets the gradient of a multivariate function.
 
Vector jive_helpers::evalFuncs (const FuncUtils::FuncArray funcs, const Vector &args)
 evaluates an array of multivariate functions.
 
Matrix jive_helpers::funcHessian (const Ref< Function > func, const Vector &args)
 gets the Hessian of a multivariate function.
 
Matrix jive_helpers::gradFuncs (const FuncUtils::FuncArray funcs, const Vector &args)
 gets the gradients of an array of multivariate functions.
 
Matrix jive_helpers::eye (const idx_t dim=3)
 generates an identity matrix of the given dimension.
 
void jive_helpers::logMat (const Vector &rv, const Matrix &R)
 compute rotational vector from rotation matrix.
 
void jive_helpers::vec2mat (const Matrix &mat, const Vector &vec)
 rearrange a vector into a matrix.
 
void jive_helpers::mat2vec (const Vector &vec, const Matrix &mat)
 rearrange a matrix into a vector.
 
void jive_helpers::expVec (const Matrix &Exp, const Vector &v)
 compute the exponential of a axial vector.
 
void jive_helpers::expVecP (const Matrix &ExpP, const Vector &v, const Vector &vP)
 derivative of jive_helpers::expVec.
 
double jive_helpers::trace (const Matrix &mat)
 calculate the trace of a matrix.
 
idx_t jive_helpers::factorial (const idx_t n)
 calculates the factorial of an integer.
 
idx_t jive_helpers::binom (const idx_t n, const idx_t k)
 calculate the binomial coefficient.
 
double jive_helpers::matrixNorm2 (const Matrix &mat)
 calculates the 2-norm of a matrix.
 
Matrix jive_helpers::skew (const Vector &vec)
 construct a skew symetric matrix from a given vector.
 
Vector jive_helpers::unskew (const Matrix &mat)
 construct a axial vector from a given skew-symmetric matrix
 

Variables

const Vector jive_helpers::e1 = {1., 0., 0.}
 
const Vector jive_helpers::e2 = {0., 1., 0.}
 
const Vector jive_helpers::e3 = {0., 0., 1.}
 
const Vector jive_helpers::vec0 = {0., 0., 0.}
 
const double jive_helpers::TINY = __DBL_EPSILON__ * 1e6
 

Detailed Description

Author
Til Gärtner

Macro Definition Documentation

◆ ERR

#define ERR (   key)    jem::System::err() << key << "\n";

◆ WARN

#define WARN (   key)    jem::System::warn() << key << "\n";