OpenMD 3.0
Molecular Dynamics in the Open
Loading...
Searching...
No Matches
DynamicVector.hpp File Reference
#include <algorithm>
#include <cassert>
#include <cmath>
#include <initializer_list>
#include <iostream>
#include <vector>
#include "math/Vector.hpp"

Go to the source code of this file.

Classes

class  OpenMD::DynamicVector< Real, Alloc >
 Dynamically-sized vector class. More...
 

Namespaces

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

Functions

template<typename Real >
DynamicVector< Real > OpenMD::operator- (const DynamicVector< Real > &v1)
 unary minus
 
template<typename Real >
DynamicVector< Real > OpenMD::operator+ (const DynamicVector< Real > &v1, const DynamicVector< Real > &v2)
 Return the sum of two vectors (v1 - v2).
 
template<typename Real >
DynamicVector< Real > OpenMD::operator- (const DynamicVector< Real > &v1, const DynamicVector< Real > &v2)
 Return the difference of two vectors (v1 - v2).
 
template<typename Real >
DynamicVector< Real > OpenMD::operator* (const DynamicVector< Real > &v1, Real s)
 Returns the vaule of scalar multiplication of this vector v1 (v1 * r).
 
template<typename Real >
DynamicVector< Real > OpenMD::operator* (Real s, const DynamicVector< Real > &v1)
 Returns the vaule of scalar multiplication of this vector v1 (v1 * r).
 
template<typename Real >
DynamicVector< Real > OpenMD::operator/ (const DynamicVector< Real > &v1, Real s)
 Returns the value of division of a vector by a scalar.
 
template<typename Real >
Real OpenMD::dot (const DynamicVector< Real > &v1, const DynamicVector< Real > &v2)
 Returns the dot product of two DynamicVectors.
 
template<typename Real >
Real OpenMD::distance (const DynamicVector< Real > &v1, const DynamicVector< Real > &v2)
 Returns the distance between two DynamicVectors.
 
template<typename Real >
Real OpenMD::distanceSquare (const DynamicVector< Real > &v1, const DynamicVector< Real > &v2)
 Returns the squared distance between two DynamicVectors.
 
template<typename Real >
std::ostream & OpenMD::operator<< (std::ostream &strm, const DynamicVector< Real > &v)
 Write to an output stream.
 

Detailed Description

Author
Teng Lin
Date
09/14/2004
Version
1.0

Definition in file DynamicVector.hpp.