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

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

#include <STK_TExpAlgebra.h>

List of all members.

Public Member Functions

Real operator[] (Integer i) const

Protected Member Functions

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

Protected Attributes

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


Detailed Description

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

Definition at line 259 of file STK_TExpAlgebra.h.


Constructor & Destructor Documentation

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

Protected Ctor.

Definition at line 266 of file STK_TExpAlgebra.h.

00266                                                        : lhs_(X), rhs_(y)
00267     { ;}

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

Protected Dtor.

Definition at line 270 of file STK_TExpAlgebra.h.

00270 { ;}


Member Function Documentation

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

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

Definition at line 276 of file STK_TExpAlgebra.h.

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

00277     {
00278       Real aux = 0.0;
00279       for (Integer j = rhs_.firstRow(); j<= rhs_.lastRow(); j++)
00280         aux += Mult::apply(lhs_[j],rhs_(j,i));
00281       return aux;
00282     }


Member Data Documentation

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

Definition at line 262 of file STK_TExpAlgebra.h.

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

Definition at line 263 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