class LoopIndex

LoopIndex replace a loop over a matrix

Public

[more]double value_t
define required typedef value_t
[more]Index ref_t
define required typedef ref_t
[more] Explanation
[more] Example
[more] constructor(s), destructor
[more] set/get members

Private Fields

[more]ref_t my_i
pos
[more]ref_t* my_i_ref
a ref to this pos
[more]const my_isConstant
is constant

Private Methods

[more]LoopIndex operator=( LoopIndex const& rhs )
disable these operators


Documentation

LoopIndex replace a loop over a matrix
odouble value_t
define required typedef value_t

oIndex ref_t
define required typedef ref_t

o Explanation
LoopIndex is use in place of a loop index. For example:
         double a[10];
         for( i=0 ; i<10 ; i++) a[i] = i*2;
      
is replace by
         sl::TinyVector<double,10> a;
         sl::LoopIndex i;
	 a(i) = 2*i;
      
We can of course do the same with a matrix with one or two loopindex.

o Example
see \verb| sl++/test/loopindex_test.cc|

o constructor(s), destructor

oexplicit LoopIndex()
default constructor

oexplicit LoopIndex( Index const i )
constant constructor

o LoopIndex( Index const val, Index* ref, bool isConstant )

o
WARNING: Do NOT declare the copy constructor !

o set/get members

oref_t rows() const

oref_t cols() const

ovalue_t getNum( ref_t const i ) const

ovalue_t valNum() const

oref_t get( ref_t const i ) const

oref_t val() const

oref_t* ref() const

obool isConstant() const
is constant

oref_t my_i
pos

oref_t* my_i_ref
a ref to this pos

oconst my_isConstant
is constant

oLoopIndex operator=( LoopIndex const& rhs )
disable these operators


This class has no child classes.

Alphabetic index HTML hierarchy of classes or Java



This page was generated with the help of DOC++.