VectorMath.h File Reference

This file defines a large number of standard math functions that can be applied to vectors and matrices (both the large matrix and small matrix classes). More...

#include "SimTKcommon/basics.h"
#include "SimTKcommon/Simmatrix.h"
#include <cmath>
#include <algorithm>

Go to the source code of this file.

Namespaces

namespace  SimTK
 

This is the top-level SimTK namespace into which all SimTK names are placed to avoid collision with other symbols.


Defines

#define SimTK_ELEMENTWISE_FUNCTION(func)

Functions

 SimTK_ELEMENTWISE_FUNCTION (exp) SimTK_ELEMENTWISE_FUNCTION(log) SimTK_ELEMENTWISE_FUNCTION(sqrt) SimTK_ELEMENTWISE_FUNCTION(sin) SimTK_ELEMENTWISE_FUNCTION(cos) SimTK_ELEMENTWISE_FUNCTION(tan) SimTK_ELEMENTWISE_FUNCTION(asin) SimTK_ELEMENTWISE_FUNCTION(acos) SimTK_ELEMENTWISE_FUNCTION(atan) SimTK_ELEMENTWISE_FUNCTION(sinh) SimTK_ELEMENTWISE_FUNCTION(cosh) SimTK_ELEMENTWISE_FUNCTION(tanh) template< class ELEM > VectorBase< typename CNT< ELEM >
template<class ELEM >
RowVectorBase< typename CNT
< ELEM >::TAbs > 
abs (const RowVectorBase< ELEM > v)
template<class ELEM >
MatrixBase< typename CNT< ELEM >
::TAbs > 
abs (const MatrixBase< ELEM > v)
template<int N, class ELEM >
Vec< N, typename CNT< ELEM >
::TAbs > 
abs (const Vec< N, ELEM > v)
template<int N, class ELEM >
Row< N, typename CNT< ELEM >
::TAbs > 
abs (const Row< N, ELEM > v)
template<int M, int N, class ELEM >
Mat< M, N, typename CNT< ELEM >
::TAbs > 
abs (const Mat< M, N, ELEM > v)
template<int N, class ELEM >
SymMat< N, typename CNT< ELEM >
::TAbs > 
abs (const SymMat< N, ELEM > v)
template<class ELEM >
ELEM sum (const VectorBase< ELEM > v)
template<class ELEM >
ELEM sum (const RowVectorBase< ELEM > v)
template<class ELEM >
RowVectorBase< ELEM > sum (const MatrixBase< ELEM > v)
template<int N, class ELEM >
ELEM sum (const Vec< N, ELEM > v)
template<int N, class ELEM >
ELEM sum (const Row< N, ELEM > v)
template<int M, int N, class ELEM >
Row< N, ELEM > sum (const Mat< M, N, ELEM > v)
template<int N, class ELEM >
Row< N, ELEM > sum (const SymMat< N, ELEM > v)
template<class ELEM >
ELEM min (const VectorBase< ELEM > v)
template<class ELEM >
ELEM min (const RowVectorBase< ELEM > v)
template<class ELEM >
RowVectorBase< ELEM > min (const MatrixBase< ELEM > v)
template<int N, class ELEM >
ELEM min (const Vec< N, ELEM > v)
template<int N, class ELEM >
ELEM min (Row< N, ELEM > v)
template<int M, int N, class ELEM >
Row< N, ELEM > min (const Mat< M, N, ELEM > v)
template<int N, class ELEM >
Row< N, ELEM > min (SymMat< N, ELEM > v)
template<class ELEM >
ELEM max (const VectorBase< ELEM > v)
template<class ELEM >
ELEM max (const RowVectorBase< ELEM > v)
template<class ELEM >
RowVectorBase< ELEM > max (const MatrixBase< ELEM > v)
template<int N, class ELEM >
ELEM max (Vec< N, ELEM > v)
template<int N, class ELEM >
ELEM max (const Row< N, ELEM > v)
template<int M, int N, class ELEM >
Row< N, ELEM > max (const Mat< M, N, ELEM > v)
template<int N, class ELEM >
Row< N, ELEM > max (const SymMat< N, ELEM > v)
template<class ELEM >
ELEM mean (const VectorBase< ELEM > v)
template<class ELEM >
ELEM mean (const RowVectorBase< ELEM > v)
template<class ELEM >
RowVectorBase< ELEM > mean (const MatrixBase< ELEM > v)
template<int N, class ELEM >
ELEM mean (const Vec< N, ELEM > v)
template<int N, class ELEM >
ELEM mean (const Row< N, ELEM > v)
template<int M, int N, class ELEM >
Row< N, ELEM > mean (const Mat< M, N, ELEM > v)
template<int N, class ELEM >
Row< N, ELEM > mean (const SymMat< N, ELEM > v)
template<class ELEM >
VectorBase< ELEM > sort (const VectorBase< ELEM > v)
template<class ELEM >
RowVectorBase< ELEM > sort (const RowVectorBase< ELEM > v)
template<class ELEM >
MatrixBase< ELEM > sort (const MatrixBase< ELEM > v)
template<int N, class ELEM >
Vec< N, ELEM > sort (Vec< N, ELEM > v)
template<int N, class ELEM >
Row< N, ELEM > sort (Row< N, ELEM > v)
template<int M, int N, class ELEM >
Mat< M, N, ELEM > sort (Mat< M, N, ELEM > v)
template<int N, class ELEM >
Mat< N, N, ELEM > sort (const SymMat< N, ELEM > v)
template<class ELEM , class RandomAccessIterator >
ELEM median (RandomAccessIterator start, RandomAccessIterator end)
template<class ELEM >
ELEM median (const VectorBase< ELEM > v)
template<class ELEM >
ELEM median (const RowVectorBase< ELEM > v)
template<class ELEM >
RowVectorBase< ELEM > median (const MatrixBase< ELEM > v)
template<int N, class ELEM >
ELEM median (Vec< N, ELEM > v)
template<int N, class ELEM >
ELEM median (Row< N, ELEM > v)
template<int M, int N, class ELEM >
Row< N, ELEM > median (const Mat< M, N, ELEM > v)
template<int N, class ELEM >
Row< N, ELEM > median (const SymMat< N, ELEM > v)

Detailed Description

This file defines a large number of standard math functions that can be applied to vectors and matrices (both the large matrix and small matrix classes).


Define Documentation

#define SimTK_ELEMENTWISE_FUNCTION ( func   ) 

Generated on Thu Aug 12 16:37:47 2010 for SimTKcore by  doxygen 1.6.1