n2p2 - A neural network potential package
Loading...
Searching...
No Matches
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.
 
Vec3D nnp::operator- (Vec3D lhs, Vec3D const &rhs)
 Overload - operator to implement vector subtraction.
 
Vec3D nnp::operator- (Vec3D v)
 Overload - operator to implement vector sign change.
 
Vec3D nnp::operator* (Vec3D v, double const a)
 Overload * operator to implement multiplication with scalar.
 
Vec3D nnp::operator* (Vec3D const (&A)[3], Vec3D v)
 Overload * operator to implement (left) multiplication with a matrix.
 
Vec3D nnp::operator/ (Vec3D v, double const a)
 Overload / operator to implement division by scalar.
 
Vec3D nnp::operator* (double const a, Vec3D v)
 Overload * operator to implement multiplication with scalar (scalar first).