|
TBTK
|
#include <Vector3d.h>
Public Member Functions | |
| Vector3d () | |
| Vector3d (std::initializer_list< double > components) | |
| Vector3d (const std::vector< double > &components) | |
| ~Vector3d () | |
| const Vector3d | operator+ (const Vector3d &rhs) const |
| const Vector3d | operator- (const Vector3d &rhs) const |
| const Vector3d | operator* (const Vector3d &rhs) const |
| const Vector3d | operator* (double rhs) |
| const Vector3d | operator/ (double rhs) const |
| double | norm () const |
| const std::vector< double > | getStdVector () const |
Static Public Member Functions | |
| static double | dotProduct (const Vector3d &lhs, const Vector3d &rhs) |
Public Attributes | |
| double | x |
| double | y |
| double | z |
Friends | |
| const Vector3d | operator* (double lhs, const Vector3d &rhs) |
Container for density of states (DOS).
| TBTK::Vector3d::Vector3d | ( | ) |
Constructor.
| TBTK::Vector3d::Vector3d | ( | std::initializer_list< double > | components | ) |
Constructor.
| TBTK::Vector3d::Vector3d | ( | const std::vector< double > & | components | ) |
Constructor.
| TBTK::Vector3d::~Vector3d | ( | ) |
Destructor.
Dot product.
|
inline |
Get a std::vector<double> representation of the vector.
|
inline |
Norm.
Multiplication operator (cross product).
|
inline |
Multiplication operator (vector*scalar).
|
inline |
Division operator.
Multiplication operator (scalar*vector).
| double TBTK::Vector3d::x |
x-component.
| double TBTK::Vector3d::y |
y-component.
| double TBTK::Vector3d::z |
z-component.
1.8.11