n2p2 - A neural network potential package
Vec3D.h File Reference
#include <cstddef>
#include <utility>
#include <cmath>
#include <stdexcept>
Include dependency graph for Vec3D.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  nnp::Vec3D
 Vector in 3 dimensional real space. More...
 

Namespaces

namespace  nnp
 

Functions

Vec3D nnp::operator+ (Vec3D lhs, Vec3D const &rhs)
 Overload + operator to implement vector addition. More...
 
Vec3D nnp::operator- (Vec3D lhs, Vec3D const &rhs)
 Overload - operator to implement vector subtraction. More...
 
Vec3D nnp::operator- (Vec3D v)
 Overload - operator to implement vector sign change. More...
 
Vec3D nnp::operator* (Vec3D v, double const a)
 Overload * operator to implement multiplication with scalar. More...
 
Vec3D nnp::operator* (Vec3D const (&A)[3], Vec3D v)
 Overload * operator to implement (left) multiplication with a matrix. More...
 
Vec3D nnp::operator/ (Vec3D v, double const a)
 Overload / operator to implement division by scalar. More...
 
Vec3D nnp::operator* (double const a, Vec3D v)
 Overload * operator to implement multiplication with scalar (scalar first). More...