TBCI Numerical high perf. C++ Library 2.8.0
Index Class Reference

Note that this #pragma interface might create problems as the class index is not templated! More...

#include <index.h>

Inheritance diagram for Index:
Collaboration diagram for Index:

Public Member Functions

 Index ()
 Index (const unsigned dim)
 Index (const unsigned value, const unsigned dim)
 Index (const Index &idx)
 Index (const Vector< unsigned > &vec)
 Index (const TVector< unsigned > &tv)
 Index (vararg va,...)
void lin_read (vararg va,...)
Index next_idx (const Index &max)
Index prev_idx (const Index &max)
TVector< unsigned > idx_fill_in1 (const unsigned, const unsigned) const
TVector< unsigned > idx_fill_in2 (const unsigned, const unsigned, const unsigned, const unsigned) const
TVector< unsigned > idx_remove1 (const unsigned) const
TVector< unsigned > idx_remove2 (const unsigned, const unsigned) const
TVector< unsigned > idx_set1 (const unsigned, const unsigned) const
Public Member Functions inherited from Vector< unsigned >
 Vector (const unsigned long d=0)
 ~Vector ()
tbci_traits< unsigned >::const_refval_type operator() (const unsigned long i) const
tbci_traits< unsigned >::const_refval_type operator[] (const unsigned long i) const
Vector< unsigned > & fill (const unsigned &v)
Vector< unsigned > & clear ()
TVector< unsigned > slice (unsigned long, unsigned long) const
TVector< unsigned > incr (const unsigned long, const unsigned=(unsigned) 1) const
Vector< unsigned > & operator= (const unsigned &a)
bool operator== (const Vector< unsigned > &v) const
bool operator!= (const Vector< unsigned > &v) const
bool operator<= (const Vector< unsigned > &v) const
bool operator>= (const Vector< unsigned > &v) const
bool operator< (const Vector< unsigned > &v) const
bool operator> (const Vector< unsigned > &v) const
TVector< unsigned > operator+ (const Vector< unsigned > &) const HOT
 TV = V + V.
TVector< unsigned > operator- (const Vector< unsigned > &) const HOT
 TV = V - V.
TSVector< unsigned > operator* (const unsigned &) const
TSVector< unsigned > operator/ (const unsigned &) const
unsigned min () const
unsigned max () const
unsigned sum () const
double fabssqr () const HOT
double fabs () const
unsigned abs () const
bool contains (const unsigned &v) const
Public Member Functions inherited from TVector< unsigned >
 TVector (const unsigned long d=0)
 ~TVector ()
unsigned long size () const
TVector< unsigned > & operator= (const unsigned &a)
bool operator== (const TVector< unsigned > &tv) const
bool operator!= (const TVector< unsigned > &tv) const
TVector< unsigned > & operator+= (const unsigned &)
 TV += a.
TVector< unsigned > & operator-= (const unsigned &)
 TV -= a.
TVector< unsigned > & operator*= (const unsigned &)
 TV *= a.
TVector< unsigned > & operator/= (const unsigned &)
 TV /= a.
unsigned min ()
unsigned max ()
unsigned sum ()
double fabssqr ()
double fabs ()
unsigned abs ()
TVector< unsigned > & operator+ (const Vector< unsigned > &) HOT
TVector< unsigned > & operator- (const Vector< unsigned > &) HOT
unsigned operator() (const unsigned long i)
unsigned operator[] (const unsigned long i)
const unsigned & getcref (const unsigned long i) const
tbci_traits< unsigned >::const_refval_type get (const unsigned long i) const
unsigned & setval (const unsigned long i) const
unsigned & set (const unsigned &val, const unsigned long i) const
TVector< unsigned > slice (const unsigned long, const unsigned long)
TVector< unsigned > & incr (const unsigned long, const unsigned=(unsigned) 1)
TSVector< unsigned > operator* (const unsigned &)
TSVector< unsigned > operator/ (const unsigned &)
Public Member Functions inherited from BVector< unsigned >
void destroy ()
 ~BVector ()
BVector< unsigned > & init_0 ()
BVector< unsigned > & fill (const unsigned &) HOT
BVector< unsigned > & resize (const BVector< unsigned > &)
 Actually it's a resize and copy (some people would expect the assignment op to do this).
BVector< unsigned > & cheapdownsize (const unsigned long)
BVector< unsigned > & clear ()
BVector< unsigned > & append (const unsigned &)
 performs poorly
BVector< unsigned > & push_back (const unsigned &value)
 performs poorly
BVector< unsigned > & remove (const unsigned long)
BVector< unsigned > & revert ()
BVector< unsigned > & bubble_sort ()
BVector< unsigned > & swap (BVector< unsigned > &v)
unsigned & operator() (const unsigned long) HOT
const unsigned & getcref (const unsigned long idx) const
tbci_traits< unsigned >::const_refval_type get (const unsigned long idx) const HOT
unsigned & set (const unsigned long idx) HOT
unsigned & operator[] (const unsigned long i)
unsigned long size () const HOT
unsigned *const & vecptr () const
iterator begin ()
iterator end ()
BVector< unsigned > & setptr (unsigned *pointer)
BVector< unsigned > & setsize (const unsigned long size)
unsigned *const & get_fortran_vector () const
void set_fortran_vector (unsigned *pointer)
BVector< unsigned > & operator= (const unsigned &a)
BVector< unsigned > & alias (const BVector< unsigned > &bv)
BVector< unsigned > & copy (const BVector< unsigned > &bv)
 copy does a resize, if necessary
bool operator== (const BVector< unsigned > &) const HOT
 KG, 2001-06-29: Strange: If we don't inline this, we seems to get better performance in our solver benchmark (iPIII).
bool operator!= (const BVector< unsigned > &bv) const
bool operator<= (const BVector< unsigned > &bv) const
bool operator>= (const BVector< unsigned > &bv) const
bool operator< (const BVector< unsigned > &bv) const
bool operator> (const BVector< unsigned > &bv) const
bool contains (const unsigned &, unsigned long *=0) const
BVector< unsigned > concat (const BVector< unsigned > &) const
Public Member Functions inherited from BVector_Sig< unsigned >
 BVector_Sig ()
 ~BVector_Sig ()
unsigned & operator() (const unsigned long)
unsigned long size () const
BVector_Sig< unsigned > & fill (const unsigned &)
BVector_Sig< unsigned > & clear ()
bool operator== (const BVector_Sig< unsigned > &) const
bool operator!= (const BVector_Sig< unsigned > &) const
Public Member Functions inherited from Vector_Sig< unsigned >
 Vector_Sig ()
 ~Vector_Sig ()
Vector_Sig< unsigned > operator+ (const Vector_Sig< unsigned > &) const
Vector_Sig< unsigned > operator- (const Vector_Sig< unsigned > &) const
Vector_Sig< unsigned > operator* (const unsigned &) const
Vector_Sig< unsigned > operator/ (const unsigned &) const
Vector_Sig< unsigned > & operator+= (const Vector_Sig< unsigned > &)
Vector_Sig< unsigned > & operator-= (const Vector_Sig< unsigned > &)
Vector_Sig< unsigned > & operator*= (const unsigned &)
Vector_Sig< unsigned > & operator/= (const unsigned &)
bool operator<= (const Vector_Sig< unsigned > &) const
bool operator>= (const Vector_Sig< unsigned > &) const
bool operator< (const Vector_Sig< unsigned > &) const
bool operator> (const Vector_Sig< unsigned > &) const

Additional Inherited Members

Public Types inherited from Vector< unsigned >
typedef unsigned value_type
typedef unsigned element_type
typedef unsigned aligned_value_type TALIGN(MIN_ALIGN2)
Public Types inherited from TVector< unsigned >
typedef unsigned value_type
typedef unsigned element_type
typedef unsigned aligned_value_type TALIGN(MIN_ALIGN2)
Public Types inherited from BVector< unsigned >
typedef unsigned * iterator
 STL-like iterator support.
typedef const unsigned * const_iterator
Static Public Member Functions inherited from Vector< unsigned >
static const char * vec_info ()
Static Public Member Functions inherited from TVector< unsigned >
static const char * vec_info ()
Static Public Member Functions inherited from BVector< unsigned >
static const char * vec_info ()
Static Public Member Functions inherited from BVector_Sig< unsigned >
static const char * vec_info ()
Protected Types inherited from BVector< unsigned >
typedef unsigned value_type
typedef unsigned element_type
typedef unsigned aligned_value_type TALIGN(MIN_ALIGN2)
Protected Attributes inherited from BVector< unsigned >
unsigned * vec
unsigned long dim
bool keep

Detailed Description

Note that this #pragma interface might create problems as the class index is not templated!

Class to address TBCI::Tensor elements. Derived from TBCI::Vector <unsigned>

Definition at line 48 of file index.h.

Constructor & Destructor Documentation

◆ Index() [1/7]

Index::Index ( )
inline

Definition at line 54 of file index.h.

References Vector< unsigned >::Vector().

Referenced by idx_fill_in1(), idx_fill_in2(), idx_remove2(), Index(), next_idx(), and prev_idx().

◆ Index() [2/7]

Index::Index ( const unsigned dim)
inline

Definition at line 55 of file index.h.

References BVector< unsigned >::dim, and Vector< unsigned >::Vector().

◆ Index() [3/7]

Index::Index ( const unsigned value,
const unsigned dim )
inline

Definition at line 56 of file index.h.

References BVector< unsigned >::dim, and Vector< unsigned >::Vector().

◆ Index() [4/7]

Index::Index ( const Index & idx)
inline

Definition at line 57 of file index.h.

References Index(), and Vector< unsigned >::Vector().

◆ Index() [5/7]

Index::Index ( const Vector< unsigned > & vec)
inline

Definition at line 58 of file index.h.

References BVector< unsigned >::vec, and Vector< unsigned >::Vector().

◆ Index() [6/7]

Index::Index ( const TVector< unsigned > & tv)
inline

Definition at line 59 of file index.h.

References Vector< unsigned >::Vector().

◆ Index() [7/7]

Index::Index ( vararg va,
... )
inline

Definition at line 61 of file index.h.

References i, and Vector< unsigned >::Vector().

Member Function Documentation

◆ idx_fill_in1()

TVector< unsigned > Index::idx_fill_in1 ( const unsigned where,
const unsigned what ) const
inline

◆ idx_fill_in2()

TVector< unsigned > Index::idx_fill_in2 ( const unsigned where1,
const unsigned what1,
const unsigned where2,
const unsigned what2 ) const
inline

◆ idx_remove1()

TVector< unsigned > Index::idx_remove1 ( const unsigned which) const
inline

◆ idx_remove2()

TVector< unsigned > Index::idx_remove2 ( const unsigned which1,
const unsigned which2 ) const
inline

◆ idx_set1()

TVector< unsigned > Index::idx_set1 ( const unsigned which,
const unsigned what ) const
inline

◆ lin_read()

void Index::lin_read ( vararg va,
... )
inline

Definition at line 70 of file index.h.

References i.

◆ next_idx()

◆ prev_idx()

Index Index::prev_idx ( const Index & max)
inline

Definition at line 94 of file index.h.

References BCHK, BVector< unsigned >::dim, Index(), and Vector< unsigned >::max().


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