|
SIRIUS 7.5.0
Electronic structure library and applications
|
Simple implementation of 3d vector. More...
#include <r3.hpp>
Inherits std::array< T, 3 >.
Public Member Functions | |
| vector () | |
| Create zero vector. More... | |
| vector (T x, T y, T z) | |
| Create arbitrary vector. More... | |
| vector (std::initializer_list< T > v__) | |
| Create from std::initializer_list. More... | |
| vector & | operator= (std::initializer_list< T > v__) |
| vector (std::vector< T > const &v__) | |
| Create from std::vector. More... | |
| vector & | operator= (std::vector< T > const &v__) |
| vector (T const *ptr__) | |
| Create from raw pointer. More... | |
| vector (std::array< T, 3 > v__) | |
| Create from array. More... | |
| vector (vector< T > const &vec__) | |
| Copy constructor. More... | |
| T | l1norm () const |
| Return L1 norm of the vector. More... | |
| double | length () const |
| Return vector length (L2 norm). More... | |
| double | length2 () const |
| Return square length of the vector. More... | |
| vector< T > & | operator+= (vector< T > const &b) |
| vector< T > & | operator-= (vector< T > const &b) |
Simple implementation of 3d vector.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |