latest version v1.9 - last update 10 Apr 2010 |
Dot Product of two vectors. More...
#include <ltiLinearAlgebraFunctor.h>
Public Member Functions | |
scalarProduct () | |
virtual | ~scalarProduct () |
T & | apply (const vector< T > &mult1, const vector< U > &mult2, T &result) const |
virtual functor * | clone () const |
virtual const char * | getTypeName () const |
Dot Product of two vectors.
computes the dot product of two vectors (elementtypes T and U) and returns the product (type T!)
lti::scalarProduct< T, U >::scalarProduct | ( | ) | [inline] |
default constructor
virtual lti::scalarProduct< T, U >::~scalarProduct | ( | ) | [inline, virtual] |
destructor
T& lti::scalarProduct< T, U >::apply | ( | const vector< T > & | mult1, | |
const vector< U > & | mult2, | |||
T & | result | |||
) | const |
onCopy version of apply.
virtual functor* lti::scalarProduct< T, U >::clone | ( | ) | const [inline, virtual] |
returns a pointer to a clone of the functor.
Implements lti::functor.
virtual const char* lti::scalarProduct< T, U >::getTypeName | ( | void | ) | const [inline, virtual] |
returns the name of this type
Reimplemented from lti::linearAlgebraFunctor.