Main Page   Packages   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members   Search  

smatrix::svector Class Template Reference

#include <Smatrix.hpp>

Inheritance diagram for smatrix::svector::

map List of all members.

Public Methods

 svector (const t &ep)
GetEpsilon () const
template<class tb> t operator * (const tb &b)
svector & operator= (const class const_svector_ref &a)
Coef (const_iterator p) const
void CalcEpsilon (const t &d)
iterator insert (iterator p, size_t x, const t &d)
t & operator() (size_t n)
operator() (size_t n) const

Static Public Methods

size_t Index (iterator p)
size_t Index (const_iterator p)
t & Coef (iterator p)

Public Attributes

rng range
epsilon
maxCoef

template<class t>
class smatrix< t >::svector


Constructor & Destructor Documentation

template<class t>
smatrix< t >::svector::svector const t &    ep [inline]
 

Definition at line 319 of file Smatrix.hpp.

00319 : epsilon(ep), maxCoef(0) { }


Member Function Documentation

template<class t>
void smatrix< t >::svector::CalcEpsilon const t &    d [inline]
 

Definition at line 335 of file Smatrix.hpp.

Referenced by insert().

00336         {
00337             sm::CalcEpsilon(maxCoef, epsilon, d);
00338         }

template<class t>
t& smatrix< t >::svector::Coef iterator    p [inline, static]
 

Definition at line 334 of file Smatrix.hpp.

00334 { return(p->second); }

template<class t>
t smatrix< t >::svector::Coef const_iterator    p const [inline]
 

Definition at line 328 of file Smatrix.hpp.

00329         {
00330             return(p->second);
00331         }

template<class t>
t smatrix< t >::svector::GetEpsilon   const [inline]
 

Definition at line 320 of file Smatrix.hpp.

00320 { return(epsilon); }

template<class t>
size_t smatrix< t >::svector::Index const_iterator    p [inline, static]
 

Definition at line 333 of file Smatrix.hpp.

00333 { return(p->first); }

template<class t>
size_t smatrix< t >::svector::Index iterator    p [inline, static]
 

Definition at line 332 of file Smatrix.hpp.

00332 { return(p->first); }

template<class t>
iterator smatrix< t >::svector::insert iterator    p,
size_t    x,
const t &    d
[inline]
 

Definition at line 339 of file Smatrix.hpp.

00340         {
00341             CalcEpsilon(d);
00342             return(map<size_t, t>::insert(p, pair<size_t, t>(x, d)));
00343         }

template<class t>
template<class tb>
t smatrix< t >::svector::operator * const tb &    b [inline]
 

Definition at line 321 of file Smatrix.hpp.

00322         {
00323             epsilon *= b;
00324             maxCoef *= b;
00325             return(svMultiply(*this, b));
00326         }

template<class t>
t smatrix< t >::svector::operator() size_t    n const [inline]
 

Definition at line 348 of file Smatrix.hpp.

00349         {
00350             const_iterator p = find(n);
00351             return(p == end() ? 0 : p->second);
00352         }

template<class t>
t& smatrix< t >::svector::operator() size_t    n [inline]
 

Definition at line 344 of file Smatrix.hpp.

00345         {
00346             return(operator[](n)->second);
00347         }

template<class t>
svector& smatrix< t >::svector::operator= const class const_svector_ref   a
 


Member Data Documentation

template<class t>
t smatrix::svector::epsilon
 

Definition at line 317 of file Smatrix.hpp.

template<class t>
t smatrix::svector::maxCoef
 

Definition at line 317 of file Smatrix.hpp.

template<class t>
rng smatrix::svector::range
 

Definition at line 316 of file Smatrix.hpp.


The documentation for this class was generated from the following file:
Generated on Sun Oct 14 18:50:31 2001 for Standard J2K Library by doxygen1.2.11.1 written by Dimitri van Heesch, © 1997-2001