STK::BinOpBase< Mult, MatrixUpperTriangular, ExpRight > Class Template Reference
[Subproject STKAlgebra::TempExp]

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

#include <STK_TExpAlgebra.h>

List of all members.

Public Member Functions

Real operator[] (Integer i) const

Protected Member Functions

 BinOpBase (const MatrixUpperTriangular &y, const ExpRight &X)
 ~BinOpBase ()

Protected Attributes

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


Detailed Description

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

Definition at line 290 of file STK_TExpAlgebra.h.


Constructor & Destructor Documentation

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

Protected Ctor.

Definition at line 297 of file STK_TExpAlgebra.h.

00298              : lhs_(y), rhs_(X)
00299     { ;}

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

Protected Dtor.

Definition at line 302 of file STK_TExpAlgebra.h.

00302 { ;}


Member Function Documentation

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

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

Definition at line 308 of file STK_TExpAlgebra.h.

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

00309     {
00310       Real aux = 0.0;
00311       for (Integer j = lhs_.compFirstHo(i); j <=lhs_.lastCol(); j++)
00312         aux += Mult::apply(lhs_(i,j),rhs_[j]);
00313       return aux;
00314     }


Member Data Documentation

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

Definition at line 293 of file STK_TExpAlgebra.h.

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

Definition at line 294 of file STK_TExpAlgebra.h.


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

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