|
latest version v1.9 - last update 10 Apr 2010 |
|
Multiply by Scalar functor class. More...
#include <ltiMultScalar.h>


Public Member Functions | |
| multiplyScalar () | |
| multiplyScalar (const T theValue) | |
| multiplyScalar (const parameters &theParams) | |
| virtual | ~multiplyScalar () |
| virtual vector< T > & | apply (vector< T > &theObject) const |
| virtual vector< T > & | apply (const vector< T > &theObject, vector< T > &newObject) const |
| virtual matrix< T > & | apply (matrix< T > &theObject) const |
| virtual matrix< T > & | apply (const matrix< T > &theObject, matrix< T > &newObject) const |
| virtual functor * | clone () const |
| virtual const char * | getTypeName () const |
Multiply by Scalar functor class.
apply() multiplies each element of the mathObj by the given scalar value.
| lti::multiplyScalar< T >::multiplyScalar | ( | ) | [inline] |
default constructor, sets the scalar value to 0
| lti::multiplyScalar< T >::multiplyScalar | ( | const T | theValue | ) | [inline] |
constructor, sets the scalar value.
| lti::multiplyScalar< T >::multiplyScalar | ( | const parameters & | theParams | ) | [inline] |
constructor, sets the parameters, i.e. the scalar value.
| virtual lti::multiplyScalar< T >::~multiplyScalar | ( | ) | [virtual] |
destructor
| virtual matrix<T>& lti::multiplyScalar< T >::apply | ( | const matrix< T > & | theObject, | |
| matrix< T > & | newObject | |||
| ) | const [virtual] |
onCopy version of apply.
applies the functor's function to the copy of 'theObject', 'newObject'.
Implements lti::iteratingFunctor< T >.
| virtual matrix<T>& lti::multiplyScalar< T >::apply | ( | matrix< T > & | theObject | ) | const [virtual] |
onPlace version of apply.
applies the functor's function to 'theObject'.
Implements lti::iteratingFunctor< T >.
| virtual vector<T>& lti::multiplyScalar< T >::apply | ( | const vector< T > & | theObject, | |
| vector< T > & | newObject | |||
| ) | const [virtual] |
onCopy version of apply.
applies the functor's function to the copy of 'theObject', 'newObject'.
Implements lti::iteratingFunctor< T >.
| virtual vector<T>& lti::multiplyScalar< T >::apply | ( | vector< T > & | theObject | ) | const [virtual] |
onPlace version of apply.
applies the functor's function to 'theObject'.
Implements lti::iteratingFunctor< T >.
| virtual functor* lti::multiplyScalar< T >::clone | ( | ) | const [virtual] |
returns a pointer to a clone of the functor.
Implements lti::functor.
| virtual const char* lti::multiplyScalar< T >::getTypeName | ( | ) | const [virtual] |
returns the name of this type
Reimplemented from lti::iteratingFunctor< T >.