molecular
Public Member Functions | List of all members
molecular::util::Vector< dim, T > Class Template Reference

Vector template with adjustable dimensionality. More...

#include <Vector.h>

Inheritance diagram for molecular::util::Vector< dim, T >:
molecular::util::VectorTmpl< dim, Vector< dim, T >, T >

Public Member Functions

 Vector ()=default
 
 Vector (std::initializer_list< T > l)
 
- Public Member Functions inherited from molecular::util::VectorTmpl< dim, Vector< dim, T >, T >
 VectorTmpl ()
 
T operator[] (const int n) const
 
Toperator[] (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...
 
Subclassoperator+= (const VectorTmpl &in)
 
Subclassoperator*= (T r)
 Component-wise in-place multiplication. More...
 
Subclassoperator*= (const VectorTmpl &in)
 Component-wise in-place multiplication. More...
 
Subclass operator/ (T r) const
 Component-wise scalar division. More...
 
Subclassoperator/= (T r)
 Component-wise in-place scalar division. More...
 
Subclassoperator/= (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...
 

Additional Inherited Members

- Public Types inherited from molecular::util::VectorTmpl< dim, Vector< dim, T >, T >
typedef T T
 
using Subclass = Vector< dim, T >
 
- Protected Attributes inherited from molecular::util::VectorTmpl< dim, Vector< dim, T >, T >
T v [components]
 

Detailed Description

template<int dim, class T = float>
class molecular::util::Vector< dim, T >

Vector template with adjustable dimensionality.

Constructor & Destructor Documentation

template<int dim, class T = float>
molecular::util::Vector< dim, T >::Vector ( )
default
template<int dim, class T = float>
molecular::util::Vector< dim, T >::Vector ( std::initializer_list< T l)
inline

The documentation for this class was generated from the following file: