STK++ 1.0

STK::BinOpBase< Mult, Matrix, ExpRight > Class Template Reference

Specialized Binary Operator Base class for the case Matrix * ExpRight. More...

#include <STK_TExpAlgebra.h>

List of all members.

Public Member Functions

Real operator[] (Integer i) const
 The operator[] will perform Matrix(i) * rhs_ when Op is Mult (*)

Protected Member Functions

 BinOpBase (const Matrix &y, const ExpRight &X)
 Protected constructor.
 ~BinOpBase ()
 Protected destructor.

Protected Attributes

Matrix const & lhs_
 Reference on the Left term.
const ExpRight & rhs_
 Reference on the Right Side.

Detailed Description

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

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

Definition at line 151 of file STK_TExpAlgebra.h.


Constructor & Destructor Documentation

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

Protected constructor.

Definition at line 158 of file STK_TExpAlgebra.h.

                                                  : lhs_(y), rhs_(X)
    { ;}
template<class ExpRight >
STK::BinOpBase< Mult, Matrix, ExpRight >::~BinOpBase ( ) [inline, protected]

Protected destructor.

Definition at line 162 of file STK_TExpAlgebra.h.

{ ;}

Member Function Documentation

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

The operator[] will perform Matrix(i) * rhs_ when Op is Mult (*)

Definition at line 168 of file STK_TExpAlgebra.h.

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

    {
      Real aux = 0.0;
      for (Integer j = lhs_.firstCol(); j <=lhs_.lastCol(); j++)
        aux += Mult::apply(lhs_(i,j),rhs_[j]);
      return aux;
    }

Member Data Documentation

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

Reference on the Left term.

Definition at line 154 of file STK_TExpAlgebra.h.

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

Reference on the Right Side.

Definition at line 155 of file STK_TExpAlgebra.h.


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