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

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

#include <STK_TExpAlgebra.h>

List of all members.

Public Member Functions

Real operator[] (Integer i) const

Protected Member Functions

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

Protected Attributes

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


Detailed Description

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

Definition at line 322 of file STK_TExpAlgebra.h.


Constructor & Destructor Documentation

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

Protected Ctor.

Definition at line 329 of file STK_TExpAlgebra.h.

00330              : lhs_(X), rhs_(y)
00331     { ;}

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

Protected Dtor.

Definition at line 334 of file STK_TExpAlgebra.h.

00334 { ;}


Member Function Documentation

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

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

Definition at line 340 of file STK_TExpAlgebra.h.

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

00341     {
00342       Real aux = 0.0;
00343       for (Integer j = rhs_.firstRow(); j<= rhs_.compLastVe(i); j++)
00344         aux += Mult::apply(lhs_[j], rhs_(j,i));
00345       return aux;
00346     }


Member Data Documentation

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

Definition at line 325 of file STK_TExpAlgebra.h.

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

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