OpenMD 3.1
Molecular Dynamics in the Open
Loading...
Searching...
No Matches
Vector.hpp File Reference
#include <config.h>
#include <cassert>
#include <cmath>
#include <iostream>

Go to the source code of this file.

Classes

class  OpenMD::Vector< Real, Dim >
 Fix length vector class. More...
 

Namespaces

namespace  OpenMD
 This basic Periodic Table class was originally taken from the data.cpp file in OpenBabel.
 

Functions

template<typename T >
bool OpenMD::equal (T e1, T e2)
 
template<typename Real , unsigned int Dim>
Vector< Real, Dim > OpenMD::operator- (const Vector< Real, Dim > &v1)
 unary minus
 
template<typename Real , unsigned int Dim>
Vector< Real, Dim > OpenMD::operator+ (const Vector< Real, Dim > &v1, const Vector< Real, Dim > &v2)
 Return the sum of two vectors (v1 - v2).
 
template<typename Real , unsigned int Dim>
Vector< Real, Dim > OpenMD::operator- (const Vector< Real, Dim > &v1, const Vector< Real, Dim > &v2)
 Return the difference of two vectors (v1 - v2).
 
template<typename Real , unsigned int Dim>
Vector< Real, Dim > OpenMD::operator* (const Vector< Real, Dim > &v1, Real s)
 Returns the vaule of scalar multiplication of this vector v1 (v1 * r).
 
template<typename Real , unsigned int Dim>
Vector< Real, Dim > OpenMD::operator* (Real s, const Vector< Real, Dim > &v1)
 Returns the vaule of scalar multiplication of this vector v1 (v1 * r).
 
template<typename Real , unsigned int Dim>
Vector< Real, Dim > OpenMD::operator/ (const Vector< Real, Dim > &v1, Real s)
 Returns the value of division of a vector by a scalar.
 
template<typename Real , unsigned int Dim>
Real OpenMD::dot (const Vector< Real, Dim > &v1, const Vector< Real, Dim > &v2)
 Returns the dot product of two Vectors.
 
template<typename Real , unsigned int Dim>
Real OpenMD::dot (const Vector< Real, Dim > &v1, const Vector< Real, Dim > &v2, const Vector< Real, Dim > &v3)
 Returns the wide dot product of three Vectors.
 
template<typename Real , unsigned int Dim>
Real OpenMD::distance (const Vector< Real, Dim > &v1, const Vector< Real, Dim > &v2)
 Returns the distance between two Vectors.
 
template<typename Real , unsigned int Dim>
Real OpenMD::distanceSquare (const Vector< Real, Dim > &v1, const Vector< Real, Dim > &v2)
 Returns the squared distance between two Vectors.
 
template<typename Real , unsigned int Dim>
std::ostream & OpenMD::operator<< (std::ostream &o, const Vector< Real, Dim > &v)
 Write to an output stream.
 

Variables

static constexpr RealType OpenMD::epsilon = 0.000001
 

Detailed Description

Author
Teng Lin
Date
09/14/2004
Version
1.0

Definition in file Vector.hpp.