Sundance::MultiIndex Class Reference

List of all members.

Public Member Functions

 MultiIndex ()
 MultiIndex (int x, int y, int z)
bool operator== (const MultiIndex &other) const
bool operator< (const MultiIndex &other) const
const int & operator[] (int i) const
int & operator[] (int i)
MultiIndex operator+ (const MultiIndex &other) const
MultiIndex operator- (const MultiIndex &other) const
MultiIndex operator- () const
std::string toString () const
XMLObject toXML () const
int order () const
int firstOrderDirection () const
bool isValid () const
std::string coordForm () const

Static Public Member Functions

static int maxDim ()

Private Attributes

Array< int > m_

Related Functions

(Note that these are not member functions.)

std::string toString (const Sundance::MultiIndex &h)
ostream & operator<< (std::ostream &os, const Sundance::MultiIndex &h)


Detailed Description

An integer vector representing a multivariate derivative.

Definition at line 48 of file SundanceMultiIndex.hpp.


Constructor & Destructor Documentation

MultiIndex::MultiIndex (  ) 

constructs D(0,0,0)

Definition at line 40 of file SundanceMultiIndex.cpp.

MultiIndex::MultiIndex ( int  x,
int  y,
int  z 
)

constructs a multiindex D(x,y,z)

Definition at line 44 of file SundanceMultiIndex.cpp.

References m_.


Member Function Documentation

string MultiIndex::coordForm (  )  const

Definition at line 152 of file SundanceMultiIndex.cpp.

References m_.

int MultiIndex::firstOrderDirection (  )  const

bool MultiIndex::isValid (  )  const

Definition at line 130 of file SundanceMultiIndex.cpp.

References m_, and maxDim().

Referenced by Sundance::applyTx().

static int Sundance::MultiIndex::maxDim (  )  [inline, static]

MultiIndex MultiIndex::operator+ ( const MultiIndex other  )  const

Definition at line 52 of file SundanceMultiIndex.cpp.

References m_, and maxDim().

MultiIndex MultiIndex::operator- (  )  const

Definition at line 74 of file SundanceMultiIndex.cpp.

References m_, and maxDim().

MultiIndex MultiIndex::operator- ( const MultiIndex other  )  const

Definition at line 63 of file SundanceMultiIndex.cpp.

References m_, and maxDim().

bool MultiIndex::operator< ( const MultiIndex other  )  const

Definition at line 108 of file SundanceMultiIndex.cpp.

References m_, and maxDim().

bool MultiIndex::operator== ( const MultiIndex other  )  const

Definition at line 99 of file SundanceMultiIndex.cpp.

References m_, and maxDim().

int& Sundance::MultiIndex::operator[] ( int  i  )  [inline]

Definition at line 66 of file SundanceMultiIndex.hpp.

References m_.

const int& Sundance::MultiIndex::operator[] ( int  i  )  const [inline]

Definition at line 63 of file SundanceMultiIndex.hpp.

References m_.

int MultiIndex::order (  )  const

string MultiIndex::toString (  )  const

XMLObject MultiIndex::toXML (  )  const

Definition at line 92 of file SundanceMultiIndex.cpp.

References toString().


Friends And Related Function Documentation

ostream & operator<< ( std::ostream &  os,
const Sundance::MultiIndex h 
) [related]

Definition at line 114 of file SundanceMultiIndex.hpp.

References toString().

std::string toString ( const Sundance::MultiIndex h  )  [related]

Definition at line 106 of file SundanceMultiIndex.hpp.

References toString().


Member Data Documentation

Array<int> Sundance::MultiIndex::m_ [private]

Site Contact