#include <CoeffsBase.h>
Public Member Functions | |
CoeffsBase () | |
CoeffsBase (const std::string &, const std::vector< std::string > &, const std::vector< unsigned int > &, const bool use_iteration_counter=false) | |
CoeffsBase (const std::string &, std::vector< std::vector< Value * > > &, std::vector< std::vector< BasisFunctions * > > &, const bool use_iteration_counter=false, const std::string &multicoeffs_label="bias") | |
CoeffsBase (const std::string &, std::vector< Value * > &, std::vector< BasisFunctions * > &, const bool use_iteration_counter=false) | |
~CoeffsBase () | |
void | activate () |
void | checkCoeffsInfo (const std::string &, const std::string &, const unsigned int, const size_t, const std::vector< unsigned int > &) |
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) |
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 |
std::string | getLabel () const |
std::string | getOutputFmt () const |
Action * | getPntrToAction () const |
VesBias * | getPntrToVesBias () const |
double | getTimeValue () const |
CoeffsType | getType () const |
std::string | getTypeStr () 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 *) |
size_t | numberOfCoeffs () const |
unsigned int | numberOfDimensions () const |
void | resetOutputFmt () |
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 | 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) |
std::vector< unsigned int > | shapeOfIndices () const |
unsigned int | shapeOfIndices (const unsigned int dim_index) const |
void | turnOffIterationCounter () |
void | turnOnIterationCounter () |
void | writeCoeffsInfoToFile (OFile &) const |
void | writeTimeInfoToFile (OFile &, const double) const |
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 > &) |
void | reinitializeIndices (const std::vector< unsigned int > &) |
Private Attributes | |
Action * | action_pntr_ |
bool | active |
std::vector< Value * > | args_ |
std::vector< BasisFunctions * > | basisf_ |
std::vector< std::string > | coeffs_descriptions_ |
enum PLMD::ves::CoeffsBase::CoeffsType | coeffs_type_ |
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_ |
size_t | ncoeffs_ |
unsigned int | ndimensions_ |
std::string | output_fmt_ |
double | time_md |
VesBias * | vesbias_pntr_ |
|
private |
|
explicit |
|
explicit |
|
explicit |
|
explicit |
PLMD::ves::CoeffsBase::~CoeffsBase | ( | ) |
|
inline |
void PLMD::ves::CoeffsBase::checkCoeffsInfo | ( | const std::string & | msg_header, |
const std::string & | coeffs_type_f, | ||
const unsigned int | ndimensions_f, | ||
const size_t | ncoeffs_total_f, | ||
const std::vector< unsigned int > & | indices_shape_f | ||
) |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
void PLMD::ves::CoeffsBase::getCoeffsInfoFromFile | ( | IFile & | ifile, |
const bool | ignore_coeffs_info = false |
||
) |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
protected |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
std::string PLMD::ves::CoeffsBase::getTypeStr | ( | ) | const |
bool PLMD::ves::CoeffsBase::indicesExist | ( | const std::vector< unsigned int > & | indices | ) | const |
|
private |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
void PLMD::ves::CoeffsBase::linkAction | ( | Action * | action_pntr_in | ) |
void PLMD::ves::CoeffsBase::linkVesBias | ( | VesBias * | vesbias_pntr_in | ) |
|
inline |
|
inline |
|
private |
|
inline |
|
protected |
|
protected |
|
protected |
void PLMD::ves::CoeffsBase::setAllCoeffsDescriptions | ( | const std::string & | description_prefix = "C" | ) |
void PLMD::ves::CoeffsBase::setAllCoeffsDescriptions | ( | const std::vector< std::string > & | coeffs_descriptions | ) |
void PLMD::ves::CoeffsBase::setAllDimensionLabels | ( | const std::string & | label_prefix | ) |
void PLMD::ves::CoeffsBase::setAllDimensionLabels | ( | const std::vector< std::string > & | labels | ) |
void PLMD::ves::CoeffsBase::setCoeffDescription | ( | const size_t | index, |
const std::string & | description | ||
) |
void PLMD::ves::CoeffsBase::setCoeffDescription | ( | const std::vector< unsigned int > & | indices, |
const std::string & | description | ||
) |
void PLMD::ves::CoeffsBase::setDataLabel | ( | const std::string & | data_label | ) |
void PLMD::ves::CoeffsBase::setDimensionLabel | ( | const unsigned int | dim_index, |
const std::string & | label | ||
) |
|
inline |
|
inline |
void PLMD::ves::CoeffsBase::setLabel | ( | const std::string & | label | ) |
void PLMD::ves::CoeffsBase::setLabels | ( | const std::string & | label | ) |
void PLMD::ves::CoeffsBase::setLabels | ( | const std::string & | label, |
const std::string & | data_label | ||
) |
|
inline |
|
inline |
void PLMD::ves::CoeffsBase::setType | ( | const CoeffsType | coeffs_type | ) |
|
protected |
|
inline |
|
inline |
|
inline |
|
inline |
void PLMD::ves::CoeffsBase::writeCoeffsInfoToFile | ( | OFile & | ofile | ) | const |
|
protected |
void PLMD::ves::CoeffsBase::writeTimeInfoToFile | ( | OFile & | , |
const double | |||
) | const |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
Hosted by GitHub | 1.8.17 |