#include <colvartypes.h>
Public Methods | |
rvector () | |
void | reset () |
\brief Set all components to zero. More... | |
rvector (cvm::real x_i, cvm::real y_i, cvm::real z_i) | |
rvector (cvm::vector1d< cvm::real > const &v) | |
rvector (cvm::real t) | |
void | set (cvm::real value) |
\brief Set all components to a scalar. More... | |
void | set (cvm::real x_i, cvm::real y_i, cvm::real z_i) |
\brief Assign all components. More... | |
cvm::real & | operator[] (int i) |
\brief Access cartesian components by index. More... | |
cvm::real | operator[] (int i) const |
\brief Access cartesian components by index. More... | |
cvm::vector1d< cvm::real > const | as_vector () const |
void | operator+= (cvm::rvector const &v) |
void | operator-= (cvm::rvector const &v) |
void | operator *= (cvm::real v) |
void | operator/= (cvm::real const &v) |
cvm::real | norm2 () const |
cvm::real | norm () const |
cvm::rvector | unit () const |
std::string | to_simple_string () const |
int | from_simple_string (std::string const &s) |
Static Public Methods | |
size_t | output_width (size_t real_width) |
cvm::rvector | outer (cvm::rvector const &v1, cvm::rvector const &v2) |
Public Attributes | |
cvm::real | x |
cvm::real | y |
cvm::real | z |
Friends | |
cvm::rvector | operator- (cvm::rvector const &v) |
cvm::rvector | operator+ (cvm::rvector const &v1, cvm::rvector const &v2) |
cvm::rvector | operator- (cvm::rvector const &v1, cvm::rvector const &v2) |
cvm::real | operator * (cvm::rvector const &v1, cvm::rvector const &v2) |
Inner (dot) product. More... | |
cvm::rvector | operator * (cvm::real a, cvm::rvector const &v) |
cvm::rvector | operator * (cvm::rvector const &v, cvm::real a) |
cvm::rvector | operator/ (cvm::rvector const &v, cvm::real a) |
Definition at line 703 of file colvartypes.h.
|
Definition at line 709 of file colvartypes.h. References colvarmodule::reset. |
|
Definition at line 720 of file colvartypes.h. |
|
Definition at line 725 of file colvartypes.h. |
|
Definition at line 730 of file colvartypes.h. |
|
Definition at line 759 of file colvartypes.h. |
|
|
|
Definition at line 801 of file colvartypes.h. References colvarmodule::sqrt. |
|
Definition at line 796 of file colvartypes.h. References z. |
|
Definition at line 782 of file colvartypes.h. References z. |
|
Definition at line 768 of file colvartypes.h. References z. |
|
Definition at line 775 of file colvartypes.h. References z. |
|
Definition at line 789 of file colvartypes.h. References z. |
|
\brief Access cartesian components by index.
Definition at line 755 of file colvartypes.h. References z. |
|
\brief Access cartesian components by index.
Definition at line 750 of file colvartypes.h. References z. |
|
Definition at line 818 of file colvartypes.h. |
|
Definition at line 812 of file colvartypes.h. |
|
\brief Set all components to zero.
Definition at line 715 of file colvartypes.h. |
|
\brief Assign all components.
Definition at line 742 of file colvartypes.h. References z. |
|
\brief Set all components to a scalar.
Definition at line 736 of file colvartypes.h. References z. |
|
|
|
Definition at line 806 of file colvartypes.h. |
|
Definition at line 854 of file colvartypes.h. |
|
Definition at line 849 of file colvartypes.h. |
|
Inner (dot) product.
Definition at line 843 of file colvartypes.h. |
|
Definition at line 831 of file colvartypes.h. |
|
Definition at line 836 of file colvartypes.h. |
|
Definition at line 826 of file colvartypes.h. |
|
Definition at line 859 of file colvartypes.h. |
|
Definition at line 707 of file colvartypes.h. Referenced by operator<<, and operator>>. |
|
Definition at line 707 of file colvartypes.h. Referenced by operator<<, and operator>>. |
|
Definition at line 707 of file colvartypes.h. Referenced by operator<<, and operator>>. |