STK::BinOpBase< Mult, ExpLeft, Matrix > Class Template Reference
[Subproject STKAlgebra::TempExp]

Specialized Binary Operator Base class for the case ExpLeft * Matrix.

#include <STK_TExpAlgebra.h>

List of all members.

Public Member Functions

Real operator[] (Integer i) const

Protected Member Functions

 BinOpBase (const ExpLeft &X, const Matrix &y)
 ~BinOpBase ()

Protected Attributes

const ExpLeft & lhs_
 Reference on the Left Side.
const Matrixrhs_
 Reference on the Right term.


Detailed Description

template<class ExpLeft>
class STK::BinOpBase< Mult, ExpLeft, Matrix >

Definition at line 197 of file STK_TExpAlgebra.h.


Constructor & Destructor Documentation

template<class ExpLeft >
STK::BinOpBase< Mult, ExpLeft, Matrix >::BinOpBase ( const ExpLeft &  X,
const Matrix y 
) [inline, protected]

Protected Ctor.

Definition at line 204 of file STK_TExpAlgebra.h.

00204                                                  : lhs_(X), rhs_(y)
00205     { ;}

template<class ExpLeft >
STK::BinOpBase< Mult, ExpLeft, Matrix >::~BinOpBase (  )  [inline, protected]

Protected Dtor.

Definition at line 208 of file STK_TExpAlgebra.h.

00208 { ;}


Member Function Documentation

template<class ExpLeft >
Real STK::BinOpBase< Mult, ExpLeft, Matrix >::operator[] ( Integer  i  )  const [inline]

The operator[] will perform lhs_ Op Matrix(j) where Op Mult (*)

Definition at line 214 of file STK_TExpAlgebra.h.

References STK::Mult::apply(), STK::BinOpBase< Op, ExpLeft, ExpRight >::lhs_, and STK::BinOpBase< Op, ExpLeft, ExpRight >::rhs_.

00215     {
00216       Real aux = 0.0;
00217       for (Integer j = rhs_.firstRow(); j<= rhs_.lastRow(); j++)
00218         aux += Mult::apply(lhs_[j],rhs_(j,i));
00219       return aux;
00220     }


Member Data Documentation

template<class ExpLeft >
const ExpLeft& STK::BinOpBase< Mult, ExpLeft, Matrix >::lhs_ [protected]

Definition at line 200 of file STK_TExpAlgebra.h.

template<class ExpLeft >
const Matrix& STK::BinOpBase< Mult, ExpLeft, Matrix >::rhs_ [protected]

Definition at line 201 of file STK_TExpAlgebra.h.


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

Generated on Fri Sep 25 10:31:00 2009 for STK++ by  doxygen 1.5.8