Simbody  3.5
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
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...

Go to the source code of this file.

Namespaces

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

Macros

#define SimTK_ELEMENTWISE_FUNCTION(func)
 

Functions

 SimTK::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 > 
SimTK::abs (const RowVectorBase< ELEM > &v)
 
template<class ELEM >
MatrixBase< typename CNT< ELEM >
::TAbs > 
SimTK::abs (const MatrixBase< ELEM > &v)
 
template<int N, class ELEM >
Vec< N, typename CNT< ELEM >
::TAbs > 
SimTK::abs (const Vec< N, ELEM > &v)
 
template<int N, class ELEM >
Row< N, typename CNT< ELEM >
::TAbs > 
SimTK::abs (const Row< N, ELEM > &v)
 
template<int M, int N, class ELEM >
Mat< M, N, typename CNT< ELEM >
::TAbs > 
SimTK::abs (const Mat< M, N, ELEM > &v)
 
template<int N, class ELEM >
SymMat< N, typename CNT< ELEM >
::TAbs > 
SimTK::abs (const SymMat< N, ELEM > &v)
 
template<class ELEM >
ELEM SimTK::sum (const VectorBase< ELEM > &v)
 
template<class ELEM >
ELEM SimTK::sum (const RowVectorBase< ELEM > &v)
 
template<class ELEM >
RowVectorBase< ELEM > SimTK::sum (const MatrixBase< ELEM > &v)
 
template<int N, class ELEM >
ELEM SimTK::sum (const Vec< N, ELEM > &v)
 
template<int N, class ELEM >
ELEM SimTK::sum (const Row< N, ELEM > &v)
 
template<int M, int N, class ELEM >
Row< N, ELEM > SimTK::sum (const Mat< M, N, ELEM > &v)
 
template<int N, class ELEM >
Row< N, ELEM > SimTK::sum (const SymMat< N, ELEM > &v)
 
template<class ELEM >
ELEM SimTK::min (const VectorBase< ELEM > &v)
 
template<class ELEM >
ELEM SimTK::min (const RowVectorBase< ELEM > &v)
 
template<class ELEM >
RowVectorBase< ELEM > SimTK::min (const MatrixBase< ELEM > &v)
 
template<int N, class ELEM >
ELEM SimTK::min (const Vec< N, ELEM > &v)
 
template<int N, class ELEM >
ELEM SimTK::min (const Row< N, ELEM > &v)
 
template<int M, int N, class ELEM >
Row< N, ELEM > SimTK::min (const Mat< M, N, ELEM > &v)
 
template<int N, class ELEM >
Row< N, ELEM > SimTK::min (const SymMat< N, ELEM > &v)
 
template<class ELEM >
ELEM SimTK::max (const VectorBase< ELEM > &v)
 
template<class ELEM >
ELEM SimTK::max (const RowVectorBase< ELEM > &v)
 
template<class ELEM >
RowVectorBase< ELEM > SimTK::max (const MatrixBase< ELEM > &v)
 
template<int N, class ELEM >
ELEM SimTK::max (const Vec< N, ELEM > &v)
 
template<int N, class ELEM >
ELEM SimTK::max (const Row< N, ELEM > &v)
 
template<int M, int N, class ELEM >
Row< N, ELEM > SimTK::max (const Mat< M, N, ELEM > &v)
 
template<int N, class ELEM >
Row< N, ELEM > SimTK::max (const SymMat< N, ELEM > &v)
 
template<class ELEM >
ELEM SimTK::mean (const VectorBase< ELEM > &v)
 
template<class ELEM >
ELEM SimTK::mean (const RowVectorBase< ELEM > &v)
 
template<class ELEM >
RowVectorBase< ELEM > SimTK::mean (const MatrixBase< ELEM > &v)
 
template<int N, class ELEM >
ELEM SimTK::mean (const Vec< N, ELEM > &v)
 
template<int N, class ELEM >
ELEM SimTK::mean (const Row< N, ELEM > &v)
 
template<int M, int N, class ELEM >
Row< N, ELEM > SimTK::mean (const Mat< M, N, ELEM > &v)
 
template<int N, class ELEM >
Row< N, ELEM > SimTK::mean (const SymMat< N, ELEM > &v)
 
template<class ELEM >
VectorBase< ELEM > SimTK::sort (const VectorBase< ELEM > &v)
 
template<class ELEM >
RowVectorBase< ELEM > SimTK::sort (const RowVectorBase< ELEM > &v)
 
template<class ELEM >
MatrixBase< ELEM > SimTK::sort (const MatrixBase< ELEM > &v)
 
template<int N, class ELEM >
Vec< N, ELEM > SimTK::sort (Vec< N, ELEM > v)
 
template<int N, class ELEM >
Row< N, ELEM > SimTK::sort (Row< N, ELEM > v)
 
template<int M, int N, class ELEM >
Mat< M, N, ELEM > SimTK::sort (Mat< M, N, ELEM > v)
 
template<int N, class ELEM >
Mat< N, N, ELEM > SimTK::sort (const SymMat< N, ELEM > &v)
 
template<class ELEM , class RandomAccessIterator >
ELEM SimTK::median (RandomAccessIterator start, RandomAccessIterator end)
 
template<class ELEM >
ELEM SimTK::median (const VectorBase< ELEM > &v)
 
template<class ELEM >
ELEM SimTK::median (const RowVectorBase< ELEM > &v)
 
template<class ELEM >
RowVectorBase< ELEM > SimTK::median (const MatrixBase< ELEM > &v)
 
template<int N, class ELEM >
ELEM SimTK::median (Vec< N, ELEM > v)
 
template<int N, class ELEM >
ELEM SimTK::median (Row< N, ELEM > v)
 
template<int M, int N, class ELEM >
Row< N, ELEM > SimTK::median (const Mat< M, N, ELEM > &v)
 
template<int N, class ELEM >
Row< N, ELEM > SimTK::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).

Macro Definition Documentation

#define SimTK_ELEMENTWISE_FUNCTION (   func)