STK++ 1.0

STK::BinOpBase< Mult, ExpLeft, MatrixLowerTriangular > Class Template Reference

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

#include <STK_TExpAlgebra.h>

List of all members.

Public Member Functions

Real operator[] (Integer i) const
 The operator[] will perform lhs_ Op MatrixLowerTriangular(j) where Op Mult (*)

Protected Member Functions

 BinOpBase (const ExpLeft &X, const MatrixLowerTriangular &y)
 Protected constructor.
 ~BinOpBase ()
 Protected destructor.

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 >

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

Definition at line 371 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 constructor.

Definition at line 378 of file STK_TExpAlgebra.h.

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

Protected destructor.

Definition at line 383 of file STK_TExpAlgebra.h.

{ ;}

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 389 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 = rhs_.compFirstVe(i); j<= rhs_.lastRow(); j++)
        aux += Mult::apply(lhs_[j], rhs_(j,i));
      return aux;
    }

Member Data Documentation

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

Reference on the Left Side.

Definition at line 374 of file STK_TExpAlgebra.h.

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

Reference on the Right term.

Definition at line 375 of file STK_TExpAlgebra.h.


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