#include <CoeffsMatrix.h>
Public Member Functions | |
CoeffsMatrix (const std::string &, const std::vector< std::string > &, const std::vector< unsigned int > &, Communicator &cc, const bool diagonal=true, const bool use_iteration_counter=false) | |
CoeffsMatrix (const std::string &, std::vector< Value *> &, std::vector< BasisFunctions *> &, Communicator &cc, const bool diagonal=true, const bool use_iteration_counter=false) | |
CoeffsMatrix (const std::string &, std::vector< std::vector< Value *> > &argsv, std::vector< std::vector< BasisFunctions *> > &basisfv, Communicator &cc, const bool diagonal=true, const bool use_iteration_counter=false, const std::string &multicoeffs_label="bias") | |
CoeffsMatrix (const std::string &, CoeffsVector *, Communicator &cc, const bool diagonal=true) | |
~CoeffsMatrix () | |
size_t | getSize () const |
bool | isSymmetric () const |
bool | isDiagonal () const |
bool | sameShape (CoeffsVector &) const |
bool | sameShape (CoeffsMatrix &) const |
void | sumCommMPI () |
void | sumCommMPI (Communicator &) |
void | sumMultiSimCommMPI (Communicator &) |
size_t | getMatrixIndex (const size_t, const size_t) const |
void | clear () |
void | setAllValuesToZero () |
std::vector< double > | getDataAsVector () const |
double | getValue (const size_t, const size_t) const |
double | getValue (const std::vector< unsigned int > &, const std::vector< unsigned int > &) const |
void | setValue (const size_t, const size_t, const double) |
void | setValue (const std::vector< unsigned int > &, const std::vector< unsigned int > &, const double) |
double & | operator() (const size_t, const size_t) |
const double & | operator() (const size_t, const size_t) const |
double & | operator() (const std::vector< unsigned int > &, const std::vector< unsigned int > &) |
const double & | operator() (const std::vector< unsigned int > &, const std::vector< unsigned int > &) const |
void | addToValue (const size_t, const size_t, const double) |
void | addToValue (const std::vector< unsigned int > &, const std::vector< unsigned int > &, const double) |
void | scaleAllValues (const double) |
CoeffsMatrix & | operator*= (const double) |
CoeffsMatrix & | operator*= (const CoeffsMatrix &) |
CoeffsMatrix | operator* (const CoeffsMatrix &) const |
void | setValues (const double) |
void | setValues (const std::vector< double > &) |
void | setValues (const CoeffsMatrix &) |
CoeffsMatrix & | operator= (const double) |
CoeffsMatrix & | operator= (const std::vector< double > &) |
CoeffsMatrix | operator+ () const |
CoeffsMatrix | operator- () const |
void | addToValues (const double) |
void | addToValues (const std::vector< double > &) |
void | addToValues (const CoeffsMatrix &) |
void | subtractFromValues (const double) |
void | subtractFromValues (const std::vector< double > &) |
void | subtractFromValues (const CoeffsMatrix &) |
CoeffsMatrix & | operator+= (const double) |
CoeffsMatrix & | operator+= (const std::vector< double > &) |
CoeffsMatrix & | operator-= (const double) |
CoeffsMatrix & | operator-= (const std::vector< double > &) |
CoeffsMatrix & | operator+= (const CoeffsMatrix &) |
CoeffsMatrix | operator+ (const CoeffsMatrix &) const |
CoeffsMatrix & | operator-= (const CoeffsMatrix &) |
CoeffsMatrix | operator- (const CoeffsMatrix &) const |
double | getMinValue () const |
double | getMaxValue () const |
void | randomizeValuesGaussian (int) |
void | resetAveragingCounter () |
void | setupExponentiallyDecayingAveraging (const unsigned int averaging_exp_decay_in) |
void | turnOffExponentiallyDecayingAveraging () |
void | resetAveraging () |
void | addToAverage (const CoeffsMatrix &) |
void | addToAverage (const CoeffsMatrix &, const unsigned int) |
void | writeToFile (OFile &) |
void | writeToFile (const std::string &, const bool append_file=false, Action *action_pntr=NULL) |
Communicator & | getCommunicator () const |
std::string | getLabel () const |
void | setLabel (const std::string &) |
std::string | getDataLabel () const |
void | setDataLabel (const std::string &) |
void | setLabels (const std::string &) |
void | setLabels (const std::string &, const std::string &) |
CoeffsType | getType () const |
std::string | getTypeStr () const |
void | setType (const CoeffsType coeffs_type) |
void | linkVesBias (VesBias *) |
void | linkAction (Action *) |
VesBias * | getPntrToVesBias () const |
Action * | getPntrToAction () const |
bool | isGenericCoeffs () const |
bool | isLinearBasisSetCoeffs () const |
bool | isMultiLinearBasisSetCoeffs () const |
std::vector< unsigned int > | shapeOfIndices () const |
unsigned int | shapeOfIndices (const unsigned int dim_index) const |
size_t | numberOfCoeffs () const |
unsigned int | numberOfDimensions () const |
bool | isActive () const |
void | activate () |
void | deactivate () |
size_t | getIndex (const std::vector< unsigned int > &) const |
std::vector< unsigned int > | getIndices (const size_t) const |
bool | indicesExist (const std::vector< unsigned int > &) const |
std::string | getCoeffDescription (const size_t index) const |
std::string | getCoeffDescription (const std::vector< unsigned int > &) const |
std::vector< std::string > | getAllCoeffsDescriptions () const |
void | setCoeffDescription (const size_t, const std::string &) |
void | setCoeffDescription (const std::vector< unsigned int > &, const std::string &) |
void | setAllCoeffsDescriptions (const std::string &description_prefix="C") |
void | setAllCoeffsDescriptions (const std::vector< std::string > &) |
std::string | getDimensionLabel (const unsigned int) const |
std::vector< std::string > | getAllDimensionLabels () const |
void | setDimensionLabel (const unsigned int, const std::string &) |
void | setAllDimensionLabels (const std::string &) |
void | setAllDimensionLabels (const std::vector< std::string > &) |
void | writeCoeffsInfoToFile (OFile &) const |
void | writeTimeInfoToFile (OFile &, const double) const |
void | getCoeffsInfoFromFile (IFile &, const bool ignore_coeffs_info=false) |
void | checkCoeffsInfo (const std::string &, const std::string &, const unsigned int, const size_t, const std::vector< unsigned int > &) |
void | turnOnIterationCounter () |
void | turnOffIterationCounter () |
bool | isIterationCounterActive () const |
void | setIterationCounter (const unsigned int) |
void | setTime (const double) |
void | setIterationCounterAndTime (const unsigned int, const double) |
unsigned int | getIterationCounter () const |
double | getTimeValue () const |
void | setOutputFmt (const std::string &ss) |
void | resetOutputFmt () |
std::string | getOutputFmt () const |
Static Public Member Functions | |
static bool | sameShape (CoeffsMatrix &, CoeffsMatrix &) |
static bool | sameShape (CoeffsVector &, CoeffsMatrix &) |
static bool | sameShape (CoeffsMatrix &, CoeffsVector &) |
static void | averageMatrices (CoeffsMatrix &, CoeffsMatrix &) |
static void | averageMatrices (const std::vector< CoeffsMatrix *> &) |
Protected Member Functions | |
void | setupBasisFunctionsInfo () |
void | resizeIndices (const std::vector< unsigned int > &) |
void | resizeIndices (std::vector< BasisFunctions *> &) |
bool | sameShape (const CoeffsBase &) const |
void | writeIterationCounterAndTimeToFile (OFile &) const |
bool | getIterationCounterAndTimeFromFile (IFile &) |
Private Member Functions | |
void | setupMatrix () |
CoeffsMatrix & | operator= (const CoeffsMatrix &) |
void | writeDataToFile (OFile &) |
void | writeMatrixInfoToFile (OFile &) |
void | writeHeaderToFile (OFile &) |
void | writeDataDiagonalToFile (OFile &) |
void | writeDataFullToFile (OFile &) |
Private Attributes | |
std::vector< double > | data |
size_t | size_ |
size_t | nrows_ |
size_t | ncolumns_ |
bool | diagonal_ |
unsigned int | averaging_counter |
unsigned int | averaging_exp_decay_ |
Communicator & | mycomm |
Friends | |
CoeffsVector | operator* (const CoeffsMatrix &, const CoeffsVector &) |
CoeffsMatrix | operator* (const double, const CoeffsMatrix &) |
CoeffsMatrix | operator* (const CoeffsMatrix &, const double) |
CoeffsMatrix | operator+ (const double, const CoeffsMatrix &) |
CoeffsMatrix | operator+ (const CoeffsMatrix &, const double) |
CoeffsMatrix | operator+ (const std::vector< double > &, const CoeffsMatrix &) |
CoeffsMatrix | operator+ (const CoeffsMatrix &, const std::vector< double > &) |
CoeffsMatrix | operator- (const double, const CoeffsMatrix &) |
CoeffsMatrix | operator- (const CoeffsMatrix &, const double) |
CoeffsMatrix | operator- (const std::vector< double > &, const CoeffsMatrix &) |
CoeffsMatrix | operator- (const CoeffsMatrix &, const std::vector< double > &) |
|
explicit |
|
explicit |
|
explicit |
|
explicit |
PLMD::ves::CoeffsMatrix::~CoeffsMatrix | ( | ) |
|
inlineinherited |
void PLMD::ves::CoeffsMatrix::addToAverage | ( | const CoeffsMatrix & | coeffsmat | ) |
void PLMD::ves::CoeffsMatrix::addToAverage | ( | const CoeffsMatrix & | , |
const unsigned | int | ||
) |
void PLMD::ves::CoeffsMatrix::addToValue | ( | const size_t | index1, |
const size_t | index2, | ||
const double | value | ||
) |
void PLMD::ves::CoeffsMatrix::addToValue | ( | const std::vector< unsigned int > & | indices1, |
const std::vector< unsigned int > & | indices2, | ||
const double | value | ||
) |
void PLMD::ves::CoeffsMatrix::addToValues | ( | const double | value | ) |
void PLMD::ves::CoeffsMatrix::addToValues | ( | const std::vector< double > & | values | ) |
void PLMD::ves::CoeffsMatrix::addToValues | ( | const CoeffsMatrix & | other_coeffsmatrix | ) |
|
static |
|
static |
|
inherited |
void PLMD::ves::CoeffsMatrix::clear | ( | ) |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inherited |
|
inline |
|
inline |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
protectedinherited |
|
inlineinherited |
size_t PLMD::ves::CoeffsMatrix::getMatrixIndex | ( | const size_t | index1, |
const size_t | index2 | ||
) | const |
double PLMD::ves::CoeffsMatrix::getMaxValue | ( | ) | const |
double PLMD::ves::CoeffsMatrix::getMinValue | ( | ) | const |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
size_t PLMD::ves::CoeffsMatrix::getSize | ( | ) | const |
|
inlineinherited |
|
inlineinherited |
|
inherited |
double PLMD::ves::CoeffsMatrix::getValue | ( | const size_t | index1, |
const size_t | index2 | ||
) | const |
double PLMD::ves::CoeffsMatrix::getValue | ( | const std::vector< unsigned int > & | indices1, |
const std::vector< unsigned int > & | indices2 | ||
) | const |
|
inherited |
|
inlineinherited |
bool PLMD::ves::CoeffsMatrix::isDiagonal | ( | ) | const |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
bool PLMD::ves::CoeffsMatrix::isSymmetric | ( | ) | const |
|
inherited |
|
inherited |
|
inlineinherited |
|
inlineinherited |
double & PLMD::ves::CoeffsMatrix::operator() | ( | const size_t | index1, |
const size_t | index2 | ||
) |
const double & PLMD::ves::CoeffsMatrix::operator() | ( | const size_t | index1, |
const size_t | index2 | ||
) | const |
double & PLMD::ves::CoeffsMatrix::operator() | ( | const std::vector< unsigned int > & | indices1, |
const std::vector< unsigned int > & | indices2 | ||
) |
const double & PLMD::ves::CoeffsMatrix::operator() | ( | const std::vector< unsigned int > & | indices1, |
const std::vector< unsigned int > & | indices2 | ||
) | const |
CoeffsMatrix PLMD::ves::CoeffsMatrix::operator* | ( | const CoeffsMatrix & | other_coeffsmatrix | ) | const |
CoeffsMatrix & PLMD::ves::CoeffsMatrix::operator*= | ( | const double | scalef | ) |
CoeffsMatrix & PLMD::ves::CoeffsMatrix::operator*= | ( | const CoeffsMatrix & | other_coeffsmatrix | ) |
CoeffsMatrix PLMD::ves::CoeffsMatrix::operator+ | ( | ) | const |
CoeffsMatrix PLMD::ves::CoeffsMatrix::operator+ | ( | const CoeffsMatrix & | other_coeffsmatrix | ) | const |
CoeffsMatrix & PLMD::ves::CoeffsMatrix::operator+= | ( | const double | value | ) |
CoeffsMatrix & PLMD::ves::CoeffsMatrix::operator+= | ( | const std::vector< double > & | values | ) |
CoeffsMatrix & PLMD::ves::CoeffsMatrix::operator+= | ( | const CoeffsMatrix & | other_coeffsmatrix | ) |
CoeffsMatrix PLMD::ves::CoeffsMatrix::operator- | ( | ) | const |
CoeffsMatrix PLMD::ves::CoeffsMatrix::operator- | ( | const CoeffsMatrix & | other_coeffsmatrix | ) | const |
CoeffsMatrix & PLMD::ves::CoeffsMatrix::operator-= | ( | const double | value | ) |
CoeffsMatrix & PLMD::ves::CoeffsMatrix::operator-= | ( | const std::vector< double > & | values | ) |
CoeffsMatrix & PLMD::ves::CoeffsMatrix::operator-= | ( | const CoeffsMatrix & | other_coeffsmatrix | ) |
|
private |
CoeffsMatrix & PLMD::ves::CoeffsMatrix::operator= | ( | const double | value | ) |
CoeffsMatrix & PLMD::ves::CoeffsMatrix::operator= | ( | const std::vector< double > & | values | ) |
void PLMD::ves::CoeffsMatrix::randomizeValuesGaussian | ( | int | randomSeed | ) |
void PLMD::ves::CoeffsMatrix::resetAveraging | ( | ) |
|
inline |
|
inlineinherited |
|
protectedinherited |
|
protectedinherited |
bool PLMD::ves::CoeffsMatrix::sameShape | ( | CoeffsVector & | coeffsvector_in | ) | const |
bool PLMD::ves::CoeffsMatrix::sameShape | ( | CoeffsMatrix & | coeffsmat_in | ) | const |
|
static |
|
static |
|
static |
|
protectedinherited |
void PLMD::ves::CoeffsMatrix::scaleAllValues | ( | const double | scalef | ) |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
void PLMD::ves::CoeffsMatrix::setAllValuesToZero | ( | ) |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inlineinherited |
|
inlineinherited |
|
inherited |
|
inherited |
|
inherited |
|
inlineinherited |
|
inlineinherited |
|
inherited |
|
protectedinherited |
|
inline |
|
private |
void PLMD::ves::CoeffsMatrix::setValue | ( | const size_t | index1, |
const size_t | index2, | ||
const double | value | ||
) |
void PLMD::ves::CoeffsMatrix::setValue | ( | const std::vector< unsigned int > & | indices1, |
const std::vector< unsigned int > & | indices2, | ||
const double | value | ||
) |
void PLMD::ves::CoeffsMatrix::setValues | ( | const double | value | ) |
void PLMD::ves::CoeffsMatrix::setValues | ( | const std::vector< double > & | values | ) |
void PLMD::ves::CoeffsMatrix::setValues | ( | const CoeffsMatrix & | other_coeffsmatrix | ) |
|
inlineinherited |
|
inlineinherited |
void PLMD::ves::CoeffsMatrix::subtractFromValues | ( | const double | value | ) |
void PLMD::ves::CoeffsMatrix::subtractFromValues | ( | const std::vector< double > & | values | ) |
void PLMD::ves::CoeffsMatrix::subtractFromValues | ( | const CoeffsMatrix & | other_coeffsmatrix | ) |
void PLMD::ves::CoeffsMatrix::sumCommMPI | ( | ) |
void PLMD::ves::CoeffsMatrix::sumCommMPI | ( | Communicator & | cc | ) |
void PLMD::ves::CoeffsMatrix::sumMultiSimCommMPI | ( | Communicator & | multi_sim_cc | ) |
|
inline |
|
inlineinherited |
|
inlineinherited |
|
inherited |
|
private |
|
private |
|
private |
|
private |
|
protectedinherited |
|
private |
|
inherited |
void PLMD::ves::CoeffsMatrix::writeToFile | ( | OFile & | ofile | ) |
void PLMD::ves::CoeffsMatrix::writeToFile | ( | const std::string & | filepath, |
const bool | append_file = false , |
||
Action * | action_pntr = NULL |
||
) |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
Hosted by GitHub | 1.8.14 |