Public Member Functions | Private Attributes | Friends | List of all members
PLMD::ReferenceValuePack Class Reference

#include <ReferenceValuePack.h>

Public Member Functions

 ReferenceValuePack (const unsigned &nargs, const unsigned &natoms, MultiValue &vals)
 
void resize (const unsigned &nargs, const unsigned &natoms)
 
void clear ()
 
unsigned getNumberOfDerivatives () const
 
unsigned getNumberOfArguments () const
 
unsigned getNumberOfAtoms () const
 
void setAtomIndex (const unsigned &iatom, const unsigned &jindex)
 
unsigned getAtomIndex (const unsigned &iatom) const
 
void copyScaledDerivatives (const unsigned &from, const double &scalef, const MultiValue &tvals)
 
void addArgumentDerivatives (const unsigned &iarg, const double &der)
 
void setArgumentDerivatives (const unsigned &iarg, const double &der)
 
void setAtomDerivatives (const unsigned &jder, const Vector &der)
 
void addAtomDerivatives (const unsigned &iatom, const Vector &der)
 
void addBoxDerivatives (const Tensor &vir)
 
bool updateComplete () const
 
void updateDynamicLists ()
 
void scaleAllDerivatives (const double &scalef)
 
void setValIndex (const unsigned &ind)
 
void moveDerivatives (const unsigned &from, const unsigned &to)
 
bool virialWasSet () const
 
Vector getAtomDerivative (const unsigned &iatom) const
 
double getArgumentDerivative (const unsigned &ival) const
 
Tensor getBoxDerivatives () const
 
bool calcUsingPCAOption () const
 
void switchOnPCAOption ()
 
std::vector< Vector > & getAtomVector ()
 
std::vector< Vector > & getAtomsDisplacementVector ()
 

Private Attributes

bool boxWasSet
 Was the virial set. More...
 
unsigned numberOfArgs
 
bool oind_set
 
unsigned oind
 
MultiValuemyvals
 Copy of the values that we are adding to. More...
 
std::vector< unsigned > & atom_indices
 Ths list of atom indices. More...
 
bool pca
 Are we using pca. More...
 
std::vector< Vectorcenteredpos
 A vector of vectors to save us some overhead for vector resizes. More...
 
std::vector< Vectordisplacement
 
std::vector< Tensorrot
 
Matrix< std::vector< Vector > > DRotDPos
 

Friends

class MultiDomainRMSD
 
class OptimalRMSD
 

Constructor & Destructor Documentation

PLMD::ReferenceValuePack::ReferenceValuePack ( const unsigned &  nargs,
const unsigned &  natoms,
MultiValue vals 
)

Member Function Documentation

void PLMD::ReferenceValuePack::addArgumentDerivatives ( const unsigned &  iarg,
const double &  der 
)
inline
void PLMD::ReferenceValuePack::addAtomDerivatives ( const unsigned &  iatom,
const Vector der 
)
inline
void PLMD::ReferenceValuePack::addBoxDerivatives ( const Tensor vir)
inline
bool PLMD::ReferenceValuePack::calcUsingPCAOption ( ) const
inline
void PLMD::ReferenceValuePack::clear ( )
void PLMD::ReferenceValuePack::copyScaledDerivatives ( const unsigned &  from,
const double &  scalef,
const MultiValue tvals 
)
double PLMD::ReferenceValuePack::getArgumentDerivative ( const unsigned &  ival) const
inline
Vector PLMD::ReferenceValuePack::getAtomDerivative ( const unsigned &  iatom) const
inline
unsigned PLMD::ReferenceValuePack::getAtomIndex ( const unsigned &  iatom) const
inline
std::vector< Vector > & PLMD::ReferenceValuePack::getAtomsDisplacementVector ( )
inline
std::vector< Vector > & PLMD::ReferenceValuePack::getAtomVector ( )
inline
Tensor PLMD::ReferenceValuePack::getBoxDerivatives ( ) const
inline
unsigned PLMD::ReferenceValuePack::getNumberOfArguments ( ) const
inline
unsigned PLMD::ReferenceValuePack::getNumberOfAtoms ( ) const
inline
unsigned PLMD::ReferenceValuePack::getNumberOfDerivatives ( ) const
inline
void PLMD::ReferenceValuePack::moveDerivatives ( const unsigned &  from,
const unsigned &  to 
)
void PLMD::ReferenceValuePack::resize ( const unsigned &  nargs,
const unsigned &  natoms 
)
void PLMD::ReferenceValuePack::scaleAllDerivatives ( const double &  scalef)
void PLMD::ReferenceValuePack::setArgumentDerivatives ( const unsigned &  iarg,
const double &  der 
)
inline
void PLMD::ReferenceValuePack::setAtomDerivatives ( const unsigned &  jder,
const Vector der 
)
inline
void PLMD::ReferenceValuePack::setAtomIndex ( const unsigned &  iatom,
const unsigned &  jindex 
)
inline
void PLMD::ReferenceValuePack::setValIndex ( const unsigned &  ind)
inline
void PLMD::ReferenceValuePack::switchOnPCAOption ( )
inline
bool PLMD::ReferenceValuePack::updateComplete ( ) const
inline
void PLMD::ReferenceValuePack::updateDynamicLists ( )
bool PLMD::ReferenceValuePack::virialWasSet ( ) const
inline

Friends And Related Function Documentation

friend class MultiDomainRMSD
friend
friend class OptimalRMSD
friend

Member Data Documentation

std::vector<unsigned>& PLMD::ReferenceValuePack::atom_indices
private

Ths list of atom indices.

bool PLMD::ReferenceValuePack::boxWasSet
private

Was the virial set.

std::vector<Vector> PLMD::ReferenceValuePack::centeredpos
private

A vector of vectors to save us some overhead for vector resizes.

std::vector<Vector> PLMD::ReferenceValuePack::displacement
private
Matrix< std::vector<Vector> > PLMD::ReferenceValuePack::DRotDPos
private
MultiValue& PLMD::ReferenceValuePack::myvals
private

Copy of the values that we are adding to.

unsigned PLMD::ReferenceValuePack::numberOfArgs
private
unsigned PLMD::ReferenceValuePack::oind
private
bool PLMD::ReferenceValuePack::oind_set
private
bool PLMD::ReferenceValuePack::pca
private

Are we using pca.

std::vector<Tensor> PLMD::ReferenceValuePack::rot
private

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