votca 2024-dev
Loading...
Searching...
No Matches
Public Member Functions | Private Attributes | List of all members
votca::xtp::vc2index Class Reference

This class transforms a pair of indices v,c into a compound index I, via I=ctotal*v+c the fast dimension is c. If you have a choice iterate over c and v not over I. More...

#include <vc2index.h>

Public Member Functions

 vc2index (Index vmin, Index cmin, Index ctotal)
 
Index I (Index v, Index c) const
 
Index v (Index index) const
 
Index c (Index index) const
 

Private Attributes

Index vmin_
 
Index cmin_
 
Index ctotal_
 

Detailed Description

This class transforms a pair of indices v,c into a compound index I, via I=ctotal*v+c the fast dimension is c. If you have a choice iterate over c and v not over I.

Definition at line 36 of file vc2index.h.

Constructor & Destructor Documentation

◆ vc2index()

votca::xtp::vc2index::vc2index ( Index  vmin,
Index  cmin,
Index  ctotal 
)
inline

Definition at line 39 of file vc2index.h.

Member Function Documentation

◆ c()

Index votca::xtp::vc2index::c ( Index  index) const
inline

Definition at line 48 of file vc2index.h.

◆ I()

Index votca::xtp::vc2index::I ( Index  v,
Index  c 
) const
inline

Definition at line 42 of file vc2index.h.

◆ v()

Index votca::xtp::vc2index::v ( Index  index) const
inline

Definition at line 46 of file vc2index.h.

Member Data Documentation

◆ cmin_

Index votca::xtp::vc2index::cmin_
private

Definition at line 52 of file vc2index.h.

◆ ctotal_

Index votca::xtp::vc2index::ctotal_
private

Definition at line 53 of file vc2index.h.

◆ vmin_

Index votca::xtp::vc2index::vmin_
private

Definition at line 51 of file vc2index.h.


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