#include <CoeffsVector.h>

Public Member Functions | |
| CoeffsVector (const std::string &, CoeffsMatrix *, Communicator &) | |
| CoeffsVector (const std::string &, const std::vector< std::string > &, const std::vector< unsigned int > &, Communicator &, const bool use_counter=false) | |
| CoeffsVector (const std::string &, const std::vector< Value * > &, std::vector< BasisFunctions * > &, Communicator &, const bool use_counter=false) | |
| CoeffsVector (const std::string &, std::vector< std::vector< Value * > > &, std::vector< std::vector< BasisFunctions * > > &, Communicator &, const bool use_counter=false, const std::string &multicoeffs_label="bias") | |
| ~CoeffsVector () | |
| void | activate () |
| void | addToAverage (const CoeffsVector &) |
| void | addToValue (const size_t, const double) |
| void | addToValue (const std::vector< unsigned int > &, const double) |
| void | addToValues (const CoeffsVector &) |
| void | addToValues (const double) |
| void | addToValues (const std::vector< double > &) |
| void | checkCoeffsInfo (const std::string &, const std::string &, const unsigned int, const size_t, const std::vector< unsigned int > &) |
| void | clear () |
| size_t | countValues (const double) const |
| void | deactivate () |
| std::vector< std::string > | getAllCoeffsDescriptions () const |
| std::vector< std::string > | getAllDimensionLabels () const |
| std::string | getCoeffDescription (const size_t index) const |
| std::string | getCoeffDescription (const std::vector< unsigned int > &) const |
| void | getCoeffsInfoFromFile (IFile &, const bool ignore_coeffs_info=false) |
| Communicator & | getCommunicator () const |
| std::vector< double > | getDataAsVector () const |
| std::string | getDataLabel () const |
| std::string | getDimensionLabel (const unsigned int) const |
| size_t | getIndex (const std::vector< unsigned int > &) const |
| std::vector< unsigned int > | getIndices (const size_t) const |
| unsigned int | getIterationCounter () const |
| double | getL1Norm () const |
| double | getL2Norm () const |
| std::string | getLabel () const |
| double | getLpNorm (const double) const |
| double | getMaxAbsValue () const |
| double | getMaxAbsValue (size_t &) const |
| double | getMaxValue () const |
| double | getMaxValue (size_t &) const |
| double | getMinAbsValue () const |
| double | getMinAbsValue (size_t &) const |
| double | getMinValue () const |
| double | getMinValue (size_t &) const |
| double | getNorm () const |
| std::string | getOutputFmt () const |
| Action * | getPntrToAction () const |
| VesBias * | getPntrToVesBias () const |
| double | getRMS () const |
| size_t | getSize () const |
| double | getTimeValue () const |
| CoeffsType | getType () const |
| std::string | getTypeStr () const |
| double | getValue (const size_t) const |
| double | getValue (const std::vector< unsigned int > &) const |
| bool | indicesExist (const std::vector< unsigned int > &) const |
| bool | isActive () const |
| bool | isGenericCoeffs () const |
| bool | isIterationCounterActive () const |
| bool | isLinearBasisSetCoeffs () const |
| bool | isMultiLinearBasisSetCoeffs () const |
| void | linkAction (Action *) |
| void | linkVesBias (VesBias *) |
| void | multiplyWithValues (const std::vector< double > &) |
| void | normalizeCoeffs () |
| size_t | numberOfCoeffs () const |
| unsigned int | numberOfDimensions () const |
| double & | operator() (const size_t index) |
| const double & | operator() (const size_t index) const |
| double & | operator() (const std::vector< unsigned int > &) |
| const double & | operator() (const std::vector< unsigned int > &) const |
| CoeffsVector | operator* (const CoeffsVector &) const |
| CoeffsVector & | operator*= (const CoeffsVector &) |
| CoeffsVector & | operator*= (const double) |
| CoeffsVector & | operator*= (const std::vector< double > &) |
| CoeffsVector | operator+ () const |
| CoeffsVector | operator+ (const CoeffsVector &) const |
| CoeffsVector & | operator+= (const CoeffsVector &) |
| CoeffsVector & | operator+= (const double) |
| CoeffsVector & | operator+= (const std::vector< double > &) |
| CoeffsVector | operator- () const |
| CoeffsVector | operator- (const CoeffsVector &) const |
| CoeffsVector & | operator-= (const CoeffsVector &) |
| CoeffsVector & | operator-= (const double) |
| CoeffsVector & | operator-= (const std::vector< double > &) |
| CoeffsVector & | operator= (const double) |
| CoeffsVector & | operator= (const std::vector< double > &) |
| double & | operator[] (const size_t index) |
| const double & | operator[] (const size_t index) const |
| double & | operator[] (const std::vector< unsigned int > &) |
| const double & | operator[] (const std::vector< unsigned int > &) const |
| void | randomizeValuesGaussian (int) |
| size_t | readFromFile (const std::string &, const bool ignore_missing_coeffs=false, const bool ignore_header=false) |
| size_t | readFromFile (IFile &, const bool ignore_missing_coeffs=false, const bool ignore_header=false) |
| size_t | readOneSetFromFile (IFile &ifile, const bool ignore_header=false) |
| void | replaceLabelString (const std::string &, const std::string &) |
| void | resetAveraging () |
| void | resetAveragingCounter () |
| void | resetOutputFmt () |
| void | resizeCoeffs (const std::vector< unsigned int > &) |
| void | resizeCoeffs (std::vector< BasisFunctions * > &) |
| bool | sameShape (CoeffsMatrix &) const |
| bool | sameShape (CoeffsVector &) const |
| void | scaleAllValues (const double) |
| void | setAllCoeffsDescriptions (const std::string &description_prefix="C") |
| void | setAllCoeffsDescriptions (const std::vector< std::string > &) |
| void | setAllDimensionLabels (const std::string &) |
| void | setAllDimensionLabels (const std::vector< std::string > &) |
| void | setAllValuesToZero () |
| void | setCoeffDescription (const size_t, const std::string &) |
| void | setCoeffDescription (const std::vector< unsigned int > &, const std::string &) |
| void | setDataLabel (const std::string &) |
| void | setDimensionLabel (const unsigned int, const std::string &) |
| void | setIterationCounter (const unsigned int) |
| void | setIterationCounterAndTime (const unsigned int, const double) |
| void | setLabel (const std::string &) |
| void | setLabels (const std::string &) |
| void | setLabels (const std::string &, const std::string &) |
| void | setOutputFmt (const std::string &ss) |
| void | setTime (const double) |
| void | setType (const CoeffsType coeffs_type) |
| void | setupExponentiallyDecayingAveraging (const unsigned int averaging_exp_decay_in) |
| void | setValue (const size_t, const double) |
| void | setValue (const std::vector< unsigned int > &, const double) |
| void | setValues (const CoeffsVector &) |
| void | setValues (const double) |
| void | setValues (const std::vector< double > &) |
| void | setValuesFromDifferentShape (const CoeffsVector &) |
| std::vector< unsigned int > | shapeOfIndices () const |
| unsigned int | shapeOfIndices (const unsigned int dim_index) const |
| void | subtractFromValues (const CoeffsVector &) |
| void | subtractFromValues (const double) |
| void | subtractFromValues (const std::vector< double > &) |
| void | sumCommMPI () |
| void | sumCommMPI (Communicator &cc) |
| void | sumMultiSimCommMPI (Communicator &) |
| void | turnOffExponentiallyDecayingAveraging () |
| void | turnOffIterationCounter () |
| void | turnOnIterationCounter () |
| void | writeCoeffsInfoToFile (OFile &) const |
| void | writeTimeInfoToFile (OFile &, const double) const |
| void | writeToFile (const std::string &, const bool print_description=false, const bool append_file=false, Action *action_pntr=NULL) |
| void | writeToFile (OFile &, const bool print_description=false) |
| void | writeToFile (OFile &ofile, CoeffsVector *, const bool print_coeffs_descriptions=false) |
Static Public Member Functions | |
| static void | averageVectors (CoeffsVector &, CoeffsVector &) |
| static void | averageVectors (const std::vector< CoeffsVector * > &) |
| static bool | sameShape (CoeffsVector &, CoeffsVector &) |
| static void | writeToFile (const std::string &, const std::vector< CoeffsVector * > &, const bool print_description=false, const bool append_file=false, Action *action_pntr=NULL) |
| static void | writeToFile (OFile &, const std::vector< CoeffsVector * > &, const bool print_description=false) |
Protected Member Functions | |
| bool | getIterationCounterAndTimeFromFile (IFile &) |
| void | resizeIndices (const std::vector< unsigned int > &) |
| void | resizeIndices (std::vector< BasisFunctions * > &) |
| bool | sameShape (const CoeffsBase &) const |
| void | setupBasisFunctionsInfo () |
| void | writeIterationCounterAndTimeToFile (OFile &) const |
Private Types | |
| enum | CoeffsType { Generic , LinearBasisSet , MultiCoeffs_LinearBasisSet } |
Private Member Functions | |
| void | initializeIndices (const std::vector< unsigned int > &, const std::vector< std::string > &) |
| CoeffsVector & | operator= (const CoeffsVector &) |
| size_t | readDataFromFile (IFile &, const bool ignore_missing_coeffs=false) |
| void | readHeaderFromFile (IFile &, const bool ignore_coeffs_info=false) |
| void | reinitializeIndices (const std::vector< unsigned int > &) |
| void | writeHeaderToFile (OFile &) const |
Static Private Member Functions | |
| static void | writeDataToFile (OFile &, const std::vector< CoeffsVector * > &, const bool print_description=false) |
Private Attributes | |
| Action * | action_pntr_ |
| bool | active |
| std::vector< Value * > | args_ |
| unsigned int | averaging_counter |
| unsigned int | averaging_exp_decay_ |
| std::vector< BasisFunctions * > | basisf_ |
| std::vector< std::string > | coeffs_descriptions_ |
| enum PLMD::ves::CoeffsBase::CoeffsType | coeffs_type_ |
| std::vector< double > | data |
| std::string | data_label_ |
| std::vector< std::string > | dimension_labels_ |
| const std::string | field_iteration_ |
| const std::string | field_ncoeffs_total_ |
| const std::string | field_ndimensions_ |
| const std::string | field_shape_prefix_ |
| const std::string | field_time_ |
| const std::string | field_type_ |
| std::vector< unsigned int > | indices_shape_ |
| bool | iteration_and_time_active_ |
| unsigned int | iteration_opt |
| std::string | label_ |
| bool | multicoeffs_ |
| std::vector< std::vector< Value * > > | multicoeffs_args_ |
| std::vector< std::vector< BasisFunctions * > > | multicoeffs_basisf_ |
| Communicator & | mycomm |
| size_t | ncoeffs_ |
| unsigned int | ndimensions_ |
| std::string | output_fmt_ |
| double | time_md |
| VesBias * | vesbias_pntr_ |
Friends | |
| CoeffsVector | operator* (const CoeffsVector &coeffsvector, const double scalef) |
| CoeffsVector | operator* (const CoeffsVector &coeffsvector, const std::vector< double > &values) |
| CoeffsVector | operator* (const double scalef, const CoeffsVector &coeffsvector) |
| CoeffsVector | operator* (const std::vector< double > &values, const CoeffsVector &coeffsvector) |
| CoeffsVector | operator+ (const CoeffsVector &coeffsvector, const double value) |
| CoeffsVector | operator+ (const CoeffsVector &coeffsvector, const std::vector< double > &values) |
| CoeffsVector | operator+ (const double value, const CoeffsVector &coeffsvector) |
| CoeffsVector | operator+ (const std::vector< double > &values, const CoeffsVector &coeffsvector) |
| CoeffsVector | operator- (const CoeffsVector &coeffsvector, const double value) |
| CoeffsVector | operator- (const CoeffsVector &coeffsvector, const std::vector< double > &values) |
| CoeffsVector | operator- (const double value, const CoeffsVector &coeffsvector) |
| CoeffsVector | operator- (const std::vector< double > &values, const CoeffsVector &coeffsvector) |
|
privateinherited |
|
explicit |
|
explicit |
|
explicit |
|
explicit |
| PLMD::ves::CoeffsVector::~CoeffsVector | ( | ) |
|
inlineinherited |
| void PLMD::ves::CoeffsVector::addToAverage | ( | const CoeffsVector & | coeffsvec | ) |
| void PLMD::ves::CoeffsVector::addToValue | ( | const size_t | index, |
| const double | value ) |
| void PLMD::ves::CoeffsVector::addToValue | ( | const std::vector< unsigned int > & | indices, |
| const double | value ) |
| void PLMD::ves::CoeffsVector::addToValues | ( | const CoeffsVector & | other_coeffsvector | ) |
| void PLMD::ves::CoeffsVector::addToValues | ( | const double | value | ) |
| void PLMD::ves::CoeffsVector::addToValues | ( | const std::vector< double > & | values | ) |
|
static |
|
static |
|
inherited |
| void PLMD::ves::CoeffsVector::clear | ( | ) |
| size_t PLMD::ves::CoeffsVector::countValues | ( | const double | value | ) | const |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inherited |
|
inline |
|
inline |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
protectedinherited |
| double PLMD::ves::CoeffsVector::getL1Norm | ( | ) | const |
| double PLMD::ves::CoeffsVector::getL2Norm | ( | ) | const |
|
inlineinherited |
| double PLMD::ves::CoeffsVector::getLpNorm | ( | const double | p | ) | const |
| double PLMD::ves::CoeffsVector::getMaxAbsValue | ( | ) | const |
| double PLMD::ves::CoeffsVector::getMaxAbsValue | ( | size_t & | max_index | ) | const |
| double PLMD::ves::CoeffsVector::getMaxValue | ( | ) | const |
| double PLMD::ves::CoeffsVector::getMaxValue | ( | size_t & | max_index | ) | const |
| double PLMD::ves::CoeffsVector::getMinAbsValue | ( | ) | const |
| double PLMD::ves::CoeffsVector::getMinAbsValue | ( | size_t & | min_index | ) | const |
| double PLMD::ves::CoeffsVector::getMinValue | ( | ) | const |
| double PLMD::ves::CoeffsVector::getMinValue | ( | size_t & | min_index | ) | const |
| double PLMD::ves::CoeffsVector::getNorm | ( | ) | const |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
| double PLMD::ves::CoeffsVector::getRMS | ( | ) | const |
|
inline |
|
inlineinherited |
|
inlineinherited |
|
inherited |
|
inline |
|
inline |
|
inherited |
|
privateinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inherited |
|
inherited |
| void PLMD::ves::CoeffsVector::multiplyWithValues | ( | const std::vector< double > & | values | ) |
| void PLMD::ves::CoeffsVector::normalizeCoeffs | ( | ) |
|
inlineinherited |
|
inlineinherited |
| double & PLMD::ves::CoeffsVector::operator() | ( | const size_t | index | ) |
| const double & PLMD::ves::CoeffsVector::operator() | ( | const size_t | index | ) | const |
| double & PLMD::ves::CoeffsVector::operator() | ( | const std::vector< unsigned int > & | indices | ) |
| const double & PLMD::ves::CoeffsVector::operator() | ( | const std::vector< unsigned int > & | indices | ) | const |
| CoeffsVector PLMD::ves::CoeffsVector::operator* | ( | const CoeffsVector & | other_coeffsvector | ) | const |
| CoeffsVector & PLMD::ves::CoeffsVector::operator*= | ( | const CoeffsVector & | other_coeffsvector | ) |
| CoeffsVector & PLMD::ves::CoeffsVector::operator*= | ( | const double | scalef | ) |
| CoeffsVector & PLMD::ves::CoeffsVector::operator*= | ( | const std::vector< double > & | values | ) |
| CoeffsVector PLMD::ves::CoeffsVector::operator+ | ( | ) | const |
| CoeffsVector PLMD::ves::CoeffsVector::operator+ | ( | const CoeffsVector & | other_coeffsvector | ) | const |
| CoeffsVector & PLMD::ves::CoeffsVector::operator+= | ( | const CoeffsVector & | other_coeffsvector | ) |
| CoeffsVector & PLMD::ves::CoeffsVector::operator+= | ( | const double | value | ) |
| CoeffsVector & PLMD::ves::CoeffsVector::operator+= | ( | const std::vector< double > & | values | ) |
| CoeffsVector PLMD::ves::CoeffsVector::operator- | ( | ) | const |
| CoeffsVector PLMD::ves::CoeffsVector::operator- | ( | const CoeffsVector & | other_coeffsvector | ) | const |
| CoeffsVector & PLMD::ves::CoeffsVector::operator-= | ( | const CoeffsVector & | other_coeffsvector | ) |
| CoeffsVector & PLMD::ves::CoeffsVector::operator-= | ( | const double | value | ) |
| CoeffsVector & PLMD::ves::CoeffsVector::operator-= | ( | const std::vector< double > & | values | ) |
|
private |
| CoeffsVector & PLMD::ves::CoeffsVector::operator= | ( | const double | value | ) |
| CoeffsVector & PLMD::ves::CoeffsVector::operator= | ( | const std::vector< double > & | values | ) |
| double & PLMD::ves::CoeffsVector::operator[] | ( | const size_t | index | ) |
| const double & PLMD::ves::CoeffsVector::operator[] | ( | const size_t | index | ) | const |
| double & PLMD::ves::CoeffsVector::operator[] | ( | const std::vector< unsigned int > & | indices | ) |
| const double & PLMD::ves::CoeffsVector::operator[] | ( | const std::vector< unsigned int > & | indices | ) | const |
| void PLMD::ves::CoeffsVector::randomizeValuesGaussian | ( | int | randomSeed | ) |
|
private |
| size_t PLMD::ves::CoeffsVector::readFromFile | ( | const std::string & | filepath, |
| const bool | ignore_missing_coeffs = false, | ||
| const bool | ignore_header = false ) |
| size_t PLMD::ves::CoeffsVector::readFromFile | ( | IFile & | ifile, |
| const bool | ignore_missing_coeffs = false, | ||
| const bool | ignore_header = false ) |
|
private |
| size_t PLMD::ves::CoeffsVector::readOneSetFromFile | ( | IFile & | ifile, |
| const bool | ignore_header = false ) |
|
privateinherited |
|
inherited |
| void PLMD::ves::CoeffsVector::resetAveraging | ( | ) |
|
inline |
|
inlineinherited |
| void PLMD::ves::CoeffsVector::resizeCoeffs | ( | const std::vector< unsigned int > & | indices_shape_new | ) |
| void PLMD::ves::CoeffsVector::resizeCoeffs | ( | std::vector< BasisFunctions * > & | basisf_new | ) |
|
protectedinherited |
|
protectedinherited |
|
protectedinherited |
| bool PLMD::ves::CoeffsVector::sameShape | ( | CoeffsMatrix & | coeffsmat_in | ) | const |
| bool PLMD::ves::CoeffsVector::sameShape | ( | CoeffsVector & | coeffsvector_in | ) | const |
|
static |
| void PLMD::ves::CoeffsVector::scaleAllValues | ( | const double | scalef | ) |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
| void PLMD::ves::CoeffsVector::setAllValuesToZero | ( | ) |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inlineinherited |
|
inlineinherited |
|
inherited |
|
inherited |
|
inherited |
|
inlineinherited |
|
inlineinherited |
|
inherited |
|
protectedinherited |
|
inline |
| void PLMD::ves::CoeffsVector::setValue | ( | const size_t | index, |
| const double | value ) |
| void PLMD::ves::CoeffsVector::setValue | ( | const std::vector< unsigned int > & | indices, |
| const double | value ) |
| void PLMD::ves::CoeffsVector::setValues | ( | const CoeffsVector & | other_coeffsvector | ) |
| void PLMD::ves::CoeffsVector::setValues | ( | const double | value | ) |
| void PLMD::ves::CoeffsVector::setValues | ( | const std::vector< double > & | values | ) |
| void PLMD::ves::CoeffsVector::setValuesFromDifferentShape | ( | const CoeffsVector & | other_coeffsvector | ) |
|
inlineinherited |
|
inlineinherited |
| void PLMD::ves::CoeffsVector::subtractFromValues | ( | const CoeffsVector & | other_coeffsvector | ) |
| void PLMD::ves::CoeffsVector::subtractFromValues | ( | const double | value | ) |
| void PLMD::ves::CoeffsVector::subtractFromValues | ( | const std::vector< double > & | values | ) |
| void PLMD::ves::CoeffsVector::sumCommMPI | ( | ) |
| void PLMD::ves::CoeffsVector::sumCommMPI | ( | Communicator & | cc | ) |
| void PLMD::ves::CoeffsVector::sumMultiSimCommMPI | ( | Communicator & | multi_sim_cc | ) |
|
inline |
|
inlineinherited |
|
inlineinherited |
|
inherited |
|
staticprivate |
|
private |
|
protectedinherited |
|
inherited |
| void PLMD::ves::CoeffsVector::writeToFile | ( | const std::string & | filepath, |
| const bool | print_description = false, | ||
| const bool | append_file = false, | ||
| Action * | action_pntr = NULL ) |
|
static |
| void PLMD::ves::CoeffsVector::writeToFile | ( | OFile & | ofile, |
| const bool | print_description = false ) |
|
static |
| void PLMD::ves::CoeffsVector::writeToFile | ( | OFile & | ofile, |
| CoeffsVector * | aux_coeffsvector, | ||
| const bool | print_coeffs_descriptions = false ) |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
privateinherited |
|
privateinherited |
|
privateinherited |
|
private |
|
private |
|
privateinherited |
|
privateinherited |
|
privateinherited |
|
private |
|
privateinherited |
|
privateinherited |
|
privateinherited |
|
privateinherited |
|
privateinherited |
|
privateinherited |
|
privateinherited |
|
privateinherited |
|
privateinherited |
|
privateinherited |
|
privateinherited |
|
privateinherited |
|
privateinherited |
|
privateinherited |
|
privateinherited |
|
private |
|
privateinherited |
|
privateinherited |
|
privateinherited |
|
privateinherited |
|
privateinherited |
Hosted by GitHub
|
1.17.0
|