Mathematical functions


Namespaces

namespace  exmat::Math
 Namespace for math constants, mathematical and utility functions.
namespace  exmat::Math
 Namespace for math constants, mathematical and utility functions.

Vector functions

template<class L, class R, class ErrChk1, class ErrChk2>
static TypeTraits< typename
L::value_type, typename R::value_type
>::HigherValue 
exmat::dot (const Vec< L, ErrChk1 > &lv, const Vec< R, ErrChk2 > &rv)
 Compute the dot/inner product.
template<class Rep, class ErrChk>
static Rep::value_type exmat::norm (const Vec< Rep, ErrChk > &v)
 Vector norm function.
template<class Rep, class ErrChk>
static Rep::value_type exmat::norm2 (const Vec< Rep, ErrChk > &v)
 Squared norm.
template<class L, class R, class LErrChk, class RErrChk>
static const Vec< DenseColVecCon<
typename TypeTraits< typename
L::value_type, typename R::value_type
>::HigherValue, 3 >, typename
ResultantChecker< LErrChk,
RErrChk >::RET > 
exmat::cross (const Vec< L, LErrChk > &A, const Vec< R, RErrChk > &B)
 Vector cross product.

Functions

template<class Rep, class ErrChk>
static EXMAT_INLINE2 Rep::value_type exmat::determinant (const Mat< Rep, ErrChk > &m)

Detailed Description

These are the available mathematical functions

Function Documentation

template<class Rep, class ErrChk>
static EXMAT_INLINE2 Rep::value_type exmat::determinant const Mat< Rep, ErrChk > &  m  )  [static]
 

Matrix determinant

Note:
Compile-time unrolling of loops for calculating determinant is only supported if the compiler can perform partial specialization.

template<class L, class R, class ErrChk1, class ErrChk2>
exmat::dot const Vec< L, ErrChk1 > &  lv,
const Vec< R, ErrChk2 > &  rv
[inline, static]
 

Compute the dot/inner product.

\[ \sum_{i = 0}^{Sz - 1} ( lv[i] * rv[i] ) \]

where lv and rv are in type of vector, both vectors have the same size.


Generated on Sat May 6 23:12:04 2006 for Exmat by  doxygen 1.4.6-NO