CASM
AClustersApproachtoStatisticalMechanics
|
#include <OccupantFunction.hh>
Definition at line 25 of file OccupantFunction.hh.
Public Member Functions | |
OccupantFunction (const DiscreteDoF &init_var, const Eigen::VectorXd &init_eval, int _occ_func_ind, int _basis_ind, SymGroupRepID _sym_rep_ID) | |
OccupantFunction (const OccupantFunction &RHS) | |
~OccupantFunction () | |
int | class_ID () const |
std::string | type_name () const |
Index | occ_func_ind () const |
Index | basis_ind () const |
void | set_basis_ind (int new_ind) |
const DiscreteDoF & | dof () const |
Function * | copy () const |
bool | is_zero () const |
Index | num_terms () const |
const Eigen::VectorXd & | eval_table () const |
double | leading_coefficient () const |
double | leading_coefficient (Index &index) const |
double | get_coefficient (Index i) const |
void | small_to_zero (double tol=TOL) |
void | scale (double scale_factor) |
void | make_formula () const |
int | register_remotes (const std::string &dof_name, const Array< DoF::RemoteHandle > &remote_handles) |
bool | compare (const OccupantFunction *RHS) const |
Eigen::VectorXd const * | get_eigen_coeffs () const |
double | remote_eval () const |
double | remote_deval (const DoF::RemoteHandle &dvar) const |
double | cache_eval () const |
double | cache_deval (const DoF::RemoteHandle &dvar) const |
double | eval (const Array< Index > &dof_IDs, const Array< Index > &var_states) const |
jsonParser & | to_json (jsonParser &json) const |
void | from_json (const jsonParser &json) |
void | refresh_ID () |
Index | ID () const |
Index | num_args () const |
std::string | formula () const |
std::string | tex_formula () const |
void | print (std::ostream &stream) const |
void | print_tex (std::ostream &stream) const |
void | set_label_format (const std::string &format) |
const std::string & | label_format () const |
void | set_formula (const std::string &new_formula) |
void | set_tex_formula (const std::string &new_formula) |
void | clear_formula () |
virtual bool | depends_on (const Function *test_func) const |
bool | accept (const FunctionVisitor &visitor, BasisSet const *home_basis_ptr=NULL) |
virtual SparseTensor< double > const * | get_coeffs () const |
virtual double | eval (const Array< Index > &dof_IDs, const Array< double > &arg_states) const |
bool | update_dof_IDs (const Array< Index > &before_IDs, const Array< Index > &after_IDs) |
virtual Function * | apply_sym_coeffs (const SymOp &op, int dependency_layer=1) |
Function * | sym_copy_coeffs (const SymOp &op, int dependency_layer=1) const |
void | normalize () |
double | dot (Function const *RHS) const |
bool | shallow_compare (Function const *RHS) const |
bool | compare (Function const *RHS) const |
Function * | minus (Function const *RHS) const |
Function * | plus (Function const *RHS) const |
Function * | multiply (Function const *RHS) const |
Function * | poly_quotient (Function const *RHS) const |
Function * | poly_remainder (Function const *RHS) const |
Function * | minus_in_place (Function const *RHS) |
Function * | plus_in_place (Function const *RHS) |
void | set_arguments (const ArgumentContainer &new_arg) |
const ArgumentContainer & | argument_bases () const |
Static Public Member Functions | |
static int | sclass_ID () |
static void | fill_dispatch_table () |
static void | print_table () |
Protected Types | |
typedef std::vector < std::shared_ptr< BasisSet > > | ArgumentContainer |
Protected Member Functions | |
Function * | _apply_sym (const SymOp &op) |
bool | _accept (const FunctionVisitor &visitor, BasisSet const *home_basis_ptr=NULL) |
bool | _update_dof_IDs (const Array< Index > &before_IDs, const Array< Index > &after_IDs) |
ReturnArray< SymGroupRepID > | _sub_sym_reps () const |
Function const * | _argument (Index i) const |
double | _arg_eval_cache (Index i) const |
double | _arg_deval_cache (Index i) const |
int | _dependency_layer () const |
Static Protected Member Functions | |
static void | extend_hierarchy () |
static int | new_class_ID () |
static int | get_class_ID () |
static int | new_class_ID () |
Protected Attributes | |
Index | func_ID |
ArgumentContainer | m_argument |
std::string | m_label_format |
Array< Index > | m_arg2sub |
Array< Index > | m_arg2fun |
std::string | m_formula |
std::string | m_tex_formula |
Static Protected Attributes | |
static Array< Array < InnerProduct * > > | inner_prod_table = Array<Array< InnerProduct * > > () |
static Array< Array < FunctionOperation * > > | operation_table = Array<Array< FunctionOperation * > > () |
Private Member Functions | |
OccupantFunction () | |
Private Attributes | |
DiscreteDoF * | m_var |
Eigen::VectorXd | m_eval_table |
SymGroupRepID | m_sym_rep_ID |
Index | m_occ_func_ind |
Index | m_basis_ind |
|
protectedinherited |
Definition at line 46 of file BasisFunction.hh.
|
inline |
Definition at line 28 of file OccupantFunction.hh.
|
inline |
Definition at line 31 of file OccupantFunction.hh.
|
inline |
Definition at line 34 of file OccupantFunction.hh.
|
inlineprivate |
Definition at line 125 of file OccupantFunction.hh.
|
protectedvirtual |
Implements CASM::Function.
Definition at line 47 of file OccupantFunction.cc.
Implements CASM::Function.
Definition at line 258 of file OccupantFunction.cc.
|
protectedinherited |
Definition at line 129 of file BasisFunction.cc.
|
protectedinherited |
Definition at line 123 of file BasisFunction.cc.
Definition at line 117 of file BasisFunction.cc.
|
protectedinherited |
Definition at line 135 of file BasisFunction.cc.
|
protectedinherited |
Definition at line 107 of file BasisFunction.cc.
|
protectedvirtual |
Reimplemented from CASM::Function.
Definition at line 150 of file OccupantFunction.cc.
|
inherited |
Definition at line 150 of file BasisFunction.cc.
|
inlinevirtualinherited |
Reimplemented in CASM::PolynomialFunction.
Definition at line 138 of file BasisFunction.hh.
|
inlineinherited |
Definition at line 174 of file BasisFunction.hh.
|
inline |
Definition at line 50 of file OccupantFunction.hh.
|
inlinevirtual |
Implements CASM::Function.
Definition at line 96 of file OccupantFunction.hh.
|
inlinevirtual |
Implements CASM::Function.
Definition at line 92 of file OccupantFunction.hh.
|
virtual |
Implements CASM::Function.
Definition at line 24 of file OccupantFunction.cc.
|
inlineinherited |
Definition at line 86 of file BasisFunction.hh.
bool CASM::OccupantFunction::compare | ( | const OccupantFunction * | RHS | ) | const |
Definition at line 168 of file OccupantFunction.cc.
|
inherited |
Definition at line 47 of file BasisFunction.cc.
|
virtual |
Implements CASM::Function.
Definition at line 38 of file OccupantFunction.cc.
|
inlinevirtualinherited |
Reimplemented in CASM::PolynomialFunction.
Definition at line 101 of file BasisFunction.hh.
|
inline |
Definition at line 58 of file OccupantFunction.hh.
|
inherited |
Definition at line 24 of file BasisFunction.cc.
|
virtual |
Reimplemented from CASM::Function.
Definition at line 305 of file OccupantFunction.cc.
|
virtualinherited |
Reimplemented in CASM::PolynomialFunction.
Definition at line 257 of file BasisFunction.cc.
|
inline |
Definition at line 68 of file OccupantFunction.hh.
|
inlinestaticprotectedinherited |
Definition at line 194 of file BasisFunction.hh.
|
static |
Definition at line 13 of file OccupantFunction.cc.
|
inherited |
Definition at line 227 of file BasisFunction.cc.
void CASM::OccupantFunction::from_json | ( | const jsonParser & | json | ) |
|
inlinestaticprotectedinherited |
Definition at line 32 of file HierarchyID.hh.
|
virtual |
Implements CASM::Function.
Definition at line 248 of file OccupantFunction.cc.
|
inlinevirtualinherited |
Reimplemented in CASM::PolynomialFunction.
Definition at line 115 of file BasisFunction.hh.
|
virtual |
Reimplemented from CASM::Function.
Definition at line 177 of file OccupantFunction.cc.
|
inlineinherited |
Definition at line 59 of file BasisFunction.hh.
|
virtual |
Implements CASM::Function.
Definition at line 186 of file OccupantFunction.cc.
|
inlineinherited |
Definition at line 76 of file BasisFunction.hh.
|
virtual |
Implements CASM::Function.
Definition at line 224 of file OccupantFunction.cc.
|
virtual |
Implements CASM::Function.
Definition at line 236 of file OccupantFunction.cc.
|
virtual |
Implements CASM::Function.
Definition at line 55 of file OccupantFunction.cc.
Definition at line 70 of file BasisFunction.cc.
Definition at line 98 of file BasisFunction.cc.
Definition at line 85 of file BasisFunction.cc.
|
inlinestaticprotectedinherited |
Definition at line 17 of file HierarchyID.hh.
|
inlinestaticprotectedinherited |
Definition at line 17 of file HierarchyID.hh.
|
inherited |
Definition at line 29 of file BasisFunction.cc.
|
inlineinherited |
Definition at line 63 of file BasisFunction.hh.
|
virtual |
Implements CASM::Function.
Definition at line 211 of file OccupantFunction.cc.
|
inline |
Definition at line 46 of file OccupantFunction.hh.
Definition at line 65 of file BasisFunction.cc.
Definition at line 90 of file BasisFunction.cc.
Definition at line 75 of file BasisFunction.cc.
Definition at line 80 of file BasisFunction.cc.
|
inherited |
Definition at line 173 of file BasisFunction.cc.
|
inlinestaticinherited |
Definition at line 178 of file BasisFunction.hh.
|
inherited |
Definition at line 182 of file BasisFunction.cc.
|
inherited |
Definition at line 167 of file BasisFunction.cc.
|
virtual |
Reimplemented from CASM::Function.
Definition at line 131 of file OccupantFunction.cc.
|
virtual |
Implements CASM::Function.
Definition at line 294 of file OccupantFunction.cc.
|
virtual |
Implements CASM::Function.
Definition at line 288 of file OccupantFunction.cc.
|
virtual |
Implements CASM::Function.
Definition at line 279 of file OccupantFunction.cc.
|
static |
Definition at line 31 of file OccupantFunction.cc.
|
inlineinherited |
Definition at line 169 of file BasisFunction.hh.
|
inline |
Definition at line 54 of file OccupantFunction.hh.
|
inlineinherited |
Definition at line 79 of file BasisFunction.hh.
|
inlineinherited |
Definition at line 73 of file BasisFunction.hh.
|
inlineinherited |
Definition at line 83 of file BasisFunction.hh.
|
inherited |
Definition at line 41 of file BasisFunction.cc.
|
virtual |
Implements CASM::Function.
Definition at line 199 of file OccupantFunction.cc.
|
inherited |
Definition at line 192 of file BasisFunction.cc.
|
inherited |
Definition at line 237 of file BasisFunction.cc.
|
virtual |
Reimplemented from CASM::Function.
Definition at line 328 of file OccupantFunction.cc.
|
inlinevirtual |
Implements CASM::Function.
Definition at line 42 of file OccupantFunction.hh.
|
inherited |
Definition at line 210 of file BasisFunction.cc.
|
protectedinherited |
Definition at line 204 of file BasisFunction.hh.
|
staticprotectedinherited |
Definition at line 190 of file BasisFunction.hh.
Definition at line 229 of file BasisFunction.hh.
Definition at line 228 of file BasisFunction.hh.
|
protectedinherited |
Definition at line 206 of file BasisFunction.hh.
|
private |
Definition at line 123 of file OccupantFunction.hh.
|
private |
Definition at line 121 of file OccupantFunction.hh.
|
mutableprotectedinherited |
Definition at line 232 of file BasisFunction.hh.
|
protectedinherited |
m_label_format sets the label format used to generate a label string for a Function object. It is specified as a string of the form (substr1 + "%a" + substr2 + "%b" + substr3 + ... ), where "%a" and "%b" are flags that specify object-specific values. The following flags are allowed:
Definition at line 220 of file BasisFunction.hh.
|
private |
Definition at line 123 of file OccupantFunction.hh.
|
private |
Definition at line 122 of file OccupantFunction.hh.
|
mutableprotectedinherited |
Definition at line 232 of file BasisFunction.hh.
|
private |
Definition at line 120 of file OccupantFunction.hh.
|
staticprotectedinherited |
Definition at line 191 of file BasisFunction.hh.