mpqc::Cluster Class Reference
Documentation
is the unit that holds a collection of clusterables that go together.
Cluster will hold a vector of clusterables that all belong together. To update the center of the cluster compute_com must be called, this is to avoid computing a new center of mass (COM) every time a clusterable is added.
Public Member Functions | |
Cluster ()=default | |
Cluster (const Cluster &c)=default | |
Cluster & | operator= (const Cluster &c)=default |
Cluster (Cluster &&c)=default | |
Cluster & | operator= (Cluster &&c)=default |
Cluster (std::vector< Clusterable > const &elems) | |
Cluster (std::vector< Clusterable > &&elems) | |
template<typename... Cs> | |
Cluster (Cs... cs) | |
template<typename T > | |
void | add_clusterable (T t) |
int64_t | size () const |
void | clear () |
void | set_center (Vector3d point) |
sets the center equal to a point. More... | |
void | update_center () |
will update the center based on the current elements. More... | |
double | sum_distances_from_center () const |
sum_distances_from_center calculates the sum of the disances of each clusterable to the center of the cluster. More... | |
Vector3d const & | center () const |
std::vector< Clusterable >::const_iterator | begin () const |
begin returns the begin iterator to the vector of clusterables. More... | |
std::vector< Clusterable >::const_iterator | end () const |
end returns the end iterator to the vector of clusterables More... | |
Constructor & Destructor Documentation
◆ Cluster() [1/6]
|
default |
◆ Cluster() [2/6]
|
default |
◆ Cluster() [3/6]
|
default |
◆ Cluster() [4/6]
|
inline |
◆ Cluster() [5/6]
|
inline |
◆ Cluster() [6/6]
template<typename... Cs>
|
inline |
Member Function Documentation
◆ add_clusterable()
template<typename T >
|
inline |
◆ begin()
|
inline |
begin returns the begin iterator to the vector of clusterables.
◆ center()
|
inline |
◆ clear()
|
inline |
◆ end()
|
inline |
end returns the end iterator to the vector of clusterables
◆ operator=() [1/2]
◆ operator=() [2/2]
◆ set_center()
|
inline |
sets the center equal to a point.
◆ size()
|
inline |
◆ sum_distances_from_center()
double mpqc::Cluster::sum_distances_from_center | ( | ) | const |
sum_distances_from_center calculates the sum of the disances of each clusterable to the center of the cluster.
- Returns
- reduction over the distances to the cluster center of the clusterables.
◆ update_center()
void mpqc::Cluster::update_center | ( | ) |
will update the center based on the current elements.
The documentation for this class was generated from the following files:
- mpqc/chemistry/molecule/cluster.h
- mpqc/chemistry/molecule/cluster.cpp