Collective Variables Module - Developer Documentation
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Friends Pages
Public Member Functions | Static Public Member Functions | Public Attributes | Friends | List of all members
colvarmodule::rvector Class Reference

vector of real numbers with three components More...

#include <colvartypes.h>

Public Member Functions

 rvector (cvm::real const &x_i, cvm::real const &y_i, cvm::real const &z_i)
 
 rvector (cvm::vector1d< cvm::real > const &v)
 
 rvector (cvm::real t)
 
void set (cvm::real const &value)
 Set all components to a scalar value.
 
void set (cvm::real const &x_i, cvm::real const &y_i, cvm::real const &z_i)
 Assign all components.
 
void reset ()
 Set all components to zero.
 
cvm::realoperator[] (int const &i)
 Access cartesian components by index.
 
cvm::real const & operator[] (int const &i) const
 Access cartesian components by index.
 
cvm::vector1d< cvm::real > const as_vector () const
 
cvm::rvectoroperator= (cvm::real const &v)
 
void operator+= (cvm::rvector const &v)
 
void operator-= (cvm::rvector const &v)
 
void operator*= (cvm::real const &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 Member Functions

static size_t output_width (size_t const &real_width)
 
static 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)
 
int operator== (cvm::rvector const &v1, cvm::rvector const &v2)
 
int operator!= (cvm::rvector const &v1, cvm::rvector const &v2)
 
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)
 
cvm::rvector operator* (cvm::real const &a, cvm::rvector const &v)
 
cvm::rvector operator* (cvm::rvector const &v, cvm::real const &a)
 
cvm::rvector operator/ (cvm::rvector const &v, cvm::real const &a)
 

Detailed Description

vector of real numbers with three components


The documentation for this class was generated from the following files: