LTI-Lib latest version v1.9 - last update 10 Apr 2010

lti::scalarProduct< T, U > Class Template Reference
[Linear Algebra]

Dot Product of two vectors. More...

#include <ltiLinearAlgebraFunctor.h>

Inheritance diagram for lti::scalarProduct< T, U >:
Inheritance graph
[legend]
Collaboration diagram for lti::scalarProduct< T, U >:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 scalarProduct ()
virtual ~scalarProduct ()
T & apply (const vector< T > &mult1, const vector< U > &mult2, T &result) const
virtual functorclone () const
virtual const char * getTypeName () const

Detailed Description

template<class T, class U = T>
class lti::scalarProduct< T, U >

Dot Product of two vectors.

computes the dot product of two vectors (elementtypes T and U) and returns the product (type T!)


Constructor & Destructor Documentation

template<class T , class U = T>
lti::scalarProduct< T, U >::scalarProduct (  )  [inline]

default constructor

template<class T , class U = T>
virtual lti::scalarProduct< T, U >::~scalarProduct (  )  [inline, virtual]

destructor


Member Function Documentation

template<class T , class U = T>
T& lti::scalarProduct< T, U >::apply ( const vector< T > &  mult1,
const vector< U > &  mult2,
T &  result 
) const

onCopy version of apply.

template<class T , class U = T>
virtual functor* lti::scalarProduct< T, U >::clone (  )  const [inline, virtual]

returns a pointer to a clone of the functor.

Implements lti::functor.

template<class T , class U = T>
virtual const char* lti::scalarProduct< T, U >::getTypeName ( void   )  const [inline, virtual]

returns the name of this type

Reimplemented from lti::linearAlgebraFunctor.


The documentation for this class was generated from the following file:

Generated on Sat Apr 10 15:28:28 2010 for LTI-Lib by Doxygen 1.6.1