dynLattice
Loading...
Searching...
No Matches
Namespaces | Functions
helpers.cpp File Reference

file containing some basic helper functions More...

Include dependency graph for helpers.cpp:

Namespaces

namespace  jive_helpers
 namespace for all helper functions
 

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
 

Detailed Description

Author
Til Gärtner