VecMath.h File Reference

Contain functions that operate on Mat and Vec. More...

#include "../View/View.h"
#include "Utility.h"

Go to the source code of this file.

Namespaces

namespace  exmat
namespace  exmat::Math

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 Rep::value_type exmat::Math::min (Mat< Rep, ErrChk > &m)
 Min.
template<class Rep, class ErrChk>
static Rep::value_type exmat::Math::max (Mat< Rep, ErrChk > &m)
 Max.
template<class Rep, class ErrChk>
static Rep::value_type exmat::Math::sum (Mat< Rep, ErrChk > &m)
 Sum.
template<class Rep, class ErrChk>
static void exmat::Math::rcp (Mat< Rep, ErrChk > &m)
 1/x per element
template<class Rep, class ErrChk>
static void exmat::Math::sqrt (Mat< Rep, ErrChk > &m)
 Square root value per element.
template<class Rep, class ErrChk>
static void exmat::Math::rsqrt (Mat< Rep, ErrChk > &m)
 1/sqrt(x) per element
template<class Rep, class ErrChk>
static void exmat::Math::exp (Mat< Rep, ErrChk > &m)
 Exponential value per element.
template<class Rep, class ErrChk>
static void exmat::Math::log (Mat< Rep, ErrChk > &m)
 Logarithms value per element.
template<class Rep, class ErrChk>
static void exmat::Math::sin (Mat< Rep, ErrChk > &m)
 Sine value per element (in radian).
template<class Rep, class ErrChk>
static void exmat::Math::cos (Mat< Rep, ErrChk > &m)
 Cosine value per element (in radian).
template<class Rep, class ErrChk>
static void exmat::Math::tan (Mat< Rep, ErrChk > &m)
 Tangent value per element (in radian).
template<class Rep, class ErrChk>
static void exmat::Math::asin (Mat< Rep, ErrChk > &m)
 Arc sine value per element (in radian).
template<class Rep, class ErrChk>
static void exmat::Math::acos (Mat< Rep, ErrChk > &m)
 Arc cosine value per element (in radian).
template<class Rep, class ErrChk>
static void exmat::Math::atan (Mat< Rep, ErrChk > &m)
 Arc tangent value per element (in radian).


Detailed Description

Contain functions that operate on Mat and Vec.

Author:
Ricky Lung Man Tat
Details for VecMath.h
Generated on Sat May 6 23:12:04 2006 for Exmat by  doxygen 1.4.6-NO