29#if !defined(LOOS_ENMLIB_HPP)
30#define LOOS_ENMLIB_HPP
79 void setSuperBlockFunction(SuperBlock* p) { blocker_ = p; }
85 void prefix(
const std::string& s) { prefix_ = s; }
86 std::string prefix()
const {
return(prefix_); }
89 void meta(
const std::string& s) { meta_ = s; }
90 std::string meta()
const {
return(meta_); }
94 bool debugging()
const {
return(debugging_); }
98 int verbosity()
const {
return(verbosity_); }
102 SpringFunction::Params
setParams(
const SpringFunction::Params& v) {
Interface for all ENMs.
Definition enm-lib.hpp:67
void debugging(const bool b)
Debugging flag (generally means write out all intermediate matrices)
Definition enm-lib.hpp:93
void prefix(const std::string &s)
Filename prefix when we have to write something out.
Definition enm-lib.hpp:85
void meta(const std::string &s)
Any metadata that gets added to matrices written out.
Definition enm-lib.hpp:89
const loos::DoubleMatrix & hessian() const
Accessors for eigenpairs and hessian.
Definition enm-lib.hpp:121
const loos::DoubleMatrix & eigenvectors() const
Accessors for eigenpairs and hessian.
Definition enm-lib.hpp:115
bool validParams() const
Forwards to contained superblock.
Definition enm-lib.hpp:107
ElasticNetworkModel(SuperBlock *blocker)
Base constructor for all ENMs.
Definition enm-lib.hpp:75
void verbosity(const int i)
How wordy are we?
Definition enm-lib.hpp:97
SpringFunction::Params setParams(const SpringFunction::Params &v)
Forwards to contained superblock.
Definition enm-lib.hpp:102
uint paramSize() const
Forwards to contained superblock.
Definition enm-lib.hpp:110
void buildHessian()
Construct the hessian using the contained SuperBlock.
Definition enm-lib.cpp:84
virtual void solve()=0
Computes the hessian and solves for the eigenpairs.
const loos::DoubleMatrix & eigenvalues() const
Accessors for eigenpairs and hessian.
Definition enm-lib.hpp:118
This class creates superblocks in a hessian.
Definition hessian.hpp:52
virtual bool validParams() const
Forwards to the contained SpringFunction...
Definition hessian.hpp:81
virtual SpringFunction::Params setParams(const SpringFunction::Params &v)
Forwards to the contained SpringFunction...
Definition hessian.hpp:76
virtual uint paramSize() const
Forwards to the contained SpringFunction...
Definition hessian.hpp:84
Class for handling groups of Atoms (pAtoms, actually)
Definition AtomicGroup.hpp:108
Simple matrix template class using policy classes to determine behavior.
Definition MatrixImpl.hpp:148
Namespace to encapsulate Elastic Network Model routines.
Definition anm-lib.hpp:32
void massFromOccupancy(AtomicGroup &grp)
The masses are stored in the occupancy field of a PDB...
Definition enm-lib.cpp:58
void copyMasses(AtomicGroup &target, const AtomicGroup &source)
Map masses from one group onto another... Minimal error checking...
Definition enm-lib.cpp:34
DoubleMatrix getMasses(const AtomicGroup &grp)
Build the 3n x 3n diagonal mass matrix for a group.
Definition enm-lib.cpp:65