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

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

#include <STK_TExpAlgebra.h>

List of all members.

Public Member Functions

Real operator[] (Integer i) const

Protected Member Functions

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

Protected Attributes

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


Detailed Description

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

Definition at line 386 of file STK_TExpAlgebra.h.


Constructor & Destructor Documentation

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

Protected Ctor.

Definition at line 393 of file STK_TExpAlgebra.h.

00394              : lhs_(X), rhs_(y)
00395     { ;}

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

Protected Dtor.

Definition at line 398 of file STK_TExpAlgebra.h.

00398 { ;}


Member Function Documentation

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

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

Definition at line 404 of file STK_TExpAlgebra.h.

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

00405     {
00406       Real aux = 0.0;
00407       for (Integer j = rhs_.compFirstVe(i); j<= rhs_.lastRow(); j++)
00408         aux += Mult::apply(lhs_[j], rhs_(j,i));
00409       return aux;
00410     }


Member Data Documentation

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

Definition at line 389 of file STK_TExpAlgebra.h.

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

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