APM:Libraries
Public Member Functions | Private Attributes | List of all members
VectorN< T, N > Class Template Reference

#include <matrixN.h>

Public Member Functions

 VectorN ()
 
 VectorN (const T *v)
 
T & operator[] (uint8_t i)
 
const T & operator[] (uint8_t i) const
 
bool operator== (const VectorN< T, N > &v) const
 
void zero ()
 
VectorN< T, Noperator- (void) const
 
VectorN< T, Noperator+ (const VectorN< T, N > &v) const
 
VectorN< T, Noperator- (const VectorN< T, N > &v) const
 
VectorN< T, Noperator* (const T num) const
 
VectorN< T, Noperator/ (const T num) const
 
VectorN< T, N > & operator+= (const VectorN< T, N > &v)
 
VectorN< T, N > & operator-= (const VectorN< T, N > &v)
 
VectorN< T, N > & operator*= (const T num)
 
VectorN< T, N > & operator/= (const T num)
 
operator* (const VectorN< T, N > &v) const
 
void mult (const MatrixN< T, N > &A, const VectorN< T, N > &B)
 

Private Attributes

_v [N]
 

Detailed Description

template<typename T, uint8_t N>
class VectorN< T, N >

Definition at line 12 of file matrixN.h.

Constructor & Destructor Documentation

◆ VectorN() [1/2]

template<typename T, uint8_t N>
VectorN< T, N >::VectorN ( )
inline

Definition at line 38 of file vectorN.h.

◆ VectorN() [2/2]

template<typename T, uint8_t N>
VectorN< T, N >::VectorN ( const T *  v)
inline

Definition at line 43 of file vectorN.h.

Member Function Documentation

◆ mult()

template<typename T, uint8_t N>
void VectorN< T, N >::mult ( const MatrixN< T, N > &  A,
const VectorN< T, N > &  B 
)
inline

Definition at line 163 of file vectorN.h.

Referenced by ExtendedKalmanFilter::update().

Here is the caller graph for this function:

◆ operator*() [1/2]

template<typename T, uint8_t N>
VectorN<T,N> VectorN< T, N >::operator* ( const T  num) const
inline

Definition at line 103 of file vectorN.h.

◆ operator*() [2/2]

template<typename T, uint8_t N>
T VectorN< T, N >::operator* ( const VectorN< T, N > &  v) const
inline

Definition at line 153 of file vectorN.h.

◆ operator*=()

template<typename T, uint8_t N>
VectorN<T,N>& VectorN< T, N >::operator*= ( const T  num)
inline

Definition at line 137 of file vectorN.h.

◆ operator+()

template<typename T, uint8_t N>
VectorN<T,N> VectorN< T, N >::operator+ ( const VectorN< T, N > &  v) const
inline

Definition at line 85 of file vectorN.h.

◆ operator+=()

template<typename T, uint8_t N>
VectorN<T,N>& VectorN< T, N >::operator+= ( const VectorN< T, N > &  v)
inline

Definition at line 121 of file vectorN.h.

◆ operator-() [1/2]

template<typename T, uint8_t N>
VectorN<T,N> VectorN< T, N >::operator- ( void  ) const
inline

Definition at line 76 of file vectorN.h.

◆ operator-() [2/2]

template<typename T, uint8_t N>
VectorN<T,N> VectorN< T, N >::operator- ( const VectorN< T, N > &  v) const
inline

Definition at line 94 of file vectorN.h.

◆ operator-=()

template<typename T, uint8_t N>
VectorN<T,N>& VectorN< T, N >::operator-= ( const VectorN< T, N > &  v)
inline

Definition at line 129 of file vectorN.h.

◆ operator/()

template<typename T, uint8_t N>
VectorN<T,N> VectorN< T, N >::operator/ ( const T  num) const
inline

Definition at line 112 of file vectorN.h.

◆ operator/=()

template<typename T, uint8_t N>
VectorN<T,N>& VectorN< T, N >::operator/= ( const T  num)
inline

Definition at line 145 of file vectorN.h.

◆ operator==()

template<typename T, uint8_t N>
bool VectorN< T, N >::operator== ( const VectorN< T, N > &  v) const
inline

Definition at line 62 of file vectorN.h.

◆ operator[]() [1/2]

template<typename T, uint8_t N>
T& VectorN< T, N >::operator[] ( uint8_t  i)
inline

Definition at line 47 of file vectorN.h.

◆ operator[]() [2/2]

template<typename T, uint8_t N>
const T& VectorN< T, N >::operator[] ( uint8_t  i) const
inline

Definition at line 54 of file vectorN.h.

◆ zero()

template<typename T, uint8_t N>
void VectorN< T, N >::zero ( void  )
inline

Definition at line 70 of file vectorN.h.

Member Data Documentation

◆ _v

template<typename T, uint8_t N>
T VectorN< T, N >::_v[N]
private

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