STK++ 1.0

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

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

#include <STK_TExpAlgebra.h>

List of all members.

Public Member Functions

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

Protected Member Functions

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

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 >

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

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

Definition at line 314 of file STK_TExpAlgebra.h.

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

Protected destructor.

Definition at line 319 of file STK_TExpAlgebra.h.

{ ;}

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 325 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_.firstRow(); j<= rhs_.compLastVe(i); j++)
        aux += Mult::apply(lhs_[j], rhs_(j,i));
      return aux;
    }

Member Data Documentation

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

Reference on the Left Side.

Definition at line 310 of file STK_TExpAlgebra.h.

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

Reference on the Right term.

Definition at line 311 of file STK_TExpAlgebra.h.


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