Main MRPT website > C++ reference
MRPT logo
Public Types | Public Member Functions | Protected Attributes

ScaledProduct< NestedProduct > Class Template Reference


Detailed Description

template<typename NestedProduct>
class ScaledProduct< NestedProduct >

Definition at line 236 of file ProductBase.h.

#include <src/Core/ProductBase.h>

Inheritance diagram for ScaledProduct< NestedProduct >:
Inheritance graph
[legend]

List of all members.

Public Types

typedef ProductBase
< ScaledProduct< NestedProduct >
, typename
NestedProduct::_LhsNested,
typename
NestedProduct::_RhsNested > 
Base
typedef Base::Scalar Scalar
typedef Base::PlainObject PlainObject
 The plain matrix type corresponding to this expression.

Public Member Functions

 ScaledProduct (const NestedProduct &prod, Scalar x)
template<typename Dest >
void evalTo (Dest &dst) const
template<typename Dest >
void addTo (Dest &dst) const
template<typename Dest >
void subTo (Dest &dst) const
template<typename Dest >
void scaleAndAddTo (Dest &dst, Scalar alpha) const
const Scalaralpha () const

Protected Attributes

const NestedProduct & m_prod
Scalar m_alpha

Member Typedef Documentation

template<typename NestedProduct>
typedef ProductBase<ScaledProduct<NestedProduct>, typename NestedProduct::_LhsNested, typename NestedProduct::_RhsNested> ScaledProduct< NestedProduct >::Base
template<typename NestedProduct>
typedef Base::PlainObject ScaledProduct< NestedProduct >::PlainObject

The plain matrix type corresponding to this expression.

This is not necessarily exactly the return type of eval(). In the case of plain matrices, the return type of eval() is a const reference to a matrix, not a matrix! It is however guaranteed that the return type of eval() is either PlainObject or const PlainObject&.

Reimplemented from ProductBase< ScaledProduct< NestedProduct >, NestedProduct::_LhsNested, NestedProduct::_RhsNested >.

Definition at line 246 of file ProductBase.h.

template<typename NestedProduct>
typedef Base::Scalar ScaledProduct< NestedProduct >::Scalar

Reimplemented from DenseBase< ScaledProduct< NestedProduct > >.

Definition at line 245 of file ProductBase.h.


Constructor & Destructor Documentation

template<typename NestedProduct>
ScaledProduct< NestedProduct >::ScaledProduct ( const NestedProduct &  prod,
Scalar  x 
) [inline]

Definition at line 249 of file ProductBase.h.


Member Function Documentation

template<typename NestedProduct>
template<typename Dest >
void ScaledProduct< NestedProduct >::addTo ( Dest &  dst) const [inline]
template<typename NestedProduct>
const Scalar& ScaledProduct< NestedProduct >::alpha ( ) const [inline]
template<typename NestedProduct>
template<typename Dest >
void ScaledProduct< NestedProduct >::evalTo ( Dest &  dst) const [inline]
template<typename NestedProduct>
template<typename Dest >
void ScaledProduct< NestedProduct >::scaleAndAddTo ( Dest &  dst,
Scalar  alpha 
) const [inline]

Definition at line 262 of file ProductBase.h.

template<typename NestedProduct>
template<typename Dest >
void ScaledProduct< NestedProduct >::subTo ( Dest &  dst) const [inline]

Member Data Documentation

template<typename NestedProduct>
Scalar ScaledProduct< NestedProduct >::m_alpha [protected]

Definition at line 268 of file ProductBase.h.

template<typename NestedProduct>
const NestedProduct& ScaledProduct< NestedProduct >::m_prod [protected]

Definition at line 267 of file ProductBase.h.




Page generated by Doxygen 1.7.3 for MRPT 0.9.4 SVN:exported at Tue Jan 25 21:56:31 UTC 2011