molecular
|
Vector base class template. More...
#include <Vector.h>
Public Types | |
typedef _T | T |
using | Subclass = TSubclass |
Public Member Functions | |
VectorTmpl () | |
T | operator[] (const int n) const |
T & | operator[] (const int n) |
operator const T * () const | |
operator T * () | |
Subclass | operator* (T r) const |
Component-wise multiplication. More... | |
Subclass | operator* (const VectorTmpl &in) const |
Component-wise multiplication. More... | |
Subclass & | operator+= (const VectorTmpl &in) |
Subclass & | operator*= (T r) |
Component-wise in-place multiplication. More... | |
Subclass & | operator*= (const VectorTmpl &in) |
Component-wise in-place multiplication. More... | |
Subclass | operator/ (T r) const |
Component-wise scalar division. More... | |
Subclass & | operator/= (T r) |
Component-wise in-place scalar division. More... | |
Subclass & | operator/= (const VectorTmpl &in) |
Component-wise in-place division. More... | |
Subclass | operator- (const VectorTmpl &in) const |
Subclass | operator- () const |
Subclass | operator+ (const VectorTmpl &in) const |
bool | operator== (const VectorTmpl &in) const |
T | LengthSquared () const |
T | Length () const |
Subclass | Normalized () const |
T | Dot (const VectorTmpl &in) |
Dot product. More... | |
Protected Attributes | |
T | v [components] |
Vector base class template.
Cannot be instanciated directly. Use typedef or subclassing, or the Vector template.
using molecular::util::VectorTmpl< components, TSubclass, _T >::Subclass = TSubclass |
typedef _T molecular::util::VectorTmpl< components, TSubclass, _T >::T |
|
inline |
|
inline |
Dot product.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Component-wise multiplication.
|
inline |
Component-wise multiplication.
|
inline |
Component-wise in-place multiplication.
|
inline |
Component-wise in-place multiplication.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Component-wise scalar division.
|
inline |
Component-wise in-place scalar division.
|
inline |
Component-wise in-place division.
|
inline |
|
inline |
|
inline |
|
protected |