#include <AP_Vector.h>
Public Member Functions | |
Vector (const size_t &size=0, const size_t &extraAllocationSize=0) | |
Vector (const dataType &a, const dataType &b, const dataType &c) | |
Vector (const dataType *array, const size_t &size, const size_t &extraAllocationSize=0) | |
Vector (const Vector &v) | |
Vector< float > | toFloat () const |
virtual | ~Vector () |
void | empty () |
void | setSize (const size_t &n) |
const size_t & | getSize () const |
void | insert (const size_t index, const dataType value) |
void | remove (const size_t &index) |
void | push_back (const dataType &value) |
dataType & | pop_front () |
void | push_back (const Vector &vector) |
const dataType & | operator[] (const size_t &index) const |
dataType & | operator[] (const size_t &index) |
Vector & | operator= (const Vector &v) |
const bool | operator== (const Vector &v) const |
const bool | operator!= (const Vector &v) const |
const Vector | operator+ (const Vector &v) const |
const Vector | operator+ (const dataType &s) const |
const Vector | operator- (const Vector &v) const |
const Vector | operator- () const |
Vector & | operator+= (const Vector &v) |
Vector & | operator-= (const Vector &v) |
const Vector | operator* (const Vector &v) const |
const Vector | operator* (const dataType &s) const |
const Vector | operator/ (const dataType &s) const |
const Vector | operator/ (const Vector &v) const |
Vector & | operator/= (const dataType &s) |
Vector & | operator*= (const dataType &s) |
const Vector | cross (const Vector &v) const |
const dataType | dot (const Vector &v) const |
const dataType | norm () const |
const Vector | unit () const |
const sumType | sum (const size_t &start=0, const int &end=-1) const |
void | sumFletcher (uint8_t &CK_A, uint8_t &CK_B, const size_t &start=0, const int &end=-1) const |
const Vector | range (const size_t &start, const size_t &stop) const |
const dataType * | toArray () const |
void | print (Stream &serial=Serial, const char *msg="", size_t format=0) const |
Static Public Member Functions | |
static bool | selfTest (Stream &serial=Serial) |
Definition at line 32 of file AP_Vector.h.
Vector< dataType, sumType >::Vector | ( | const size_t & | size = 0 , |
|
const size_t & | extraAllocationSize = 0 | |||
) | [inline] |
Definition at line 41 of file AP_Vector.h.
Vector< dataType, sumType >::Vector | ( | const dataType & | a, | |
const dataType & | b, | |||
const dataType & | c | |||
) | [inline] |
Definition at line 45 of file AP_Vector.h.
Vector< dataType, sumType >::Vector | ( | const dataType * | array, | |
const size_t & | size, | |||
const size_t & | extraAllocationSize = 0 | |||
) | [inline] |
Definition at line 53 of file AP_Vector.h.
Vector< dataType, sumType >::Vector | ( | const Vector< dataType, sumType > & | v | ) | [inline] |
Definition at line 59 of file AP_Vector.h.
virtual Vector< dataType, sumType >::~Vector | ( | ) | [inline, virtual] |
Definition at line 72 of file AP_Vector.h.
const Vector Vector< dataType, sumType >::cross | ( | const Vector< dataType, sumType > & | v | ) | const [inline] |
Definition at line 279 of file AP_Vector.h.
const dataType Vector< dataType, sumType >::dot | ( | const Vector< dataType, sumType > & | v | ) | const [inline] |
Definition at line 290 of file AP_Vector.h.
void Vector< dataType, sumType >::empty | ( | ) | [inline] |
Definition at line 75 of file AP_Vector.h.
const size_t& Vector< dataType, sumType >::getSize | ( | ) | const [inline] |
Definition at line 99 of file AP_Vector.h.
void Vector< dataType, sumType >::insert | ( | const size_t | index, | |
const dataType | value | |||
) | [inline] |
Definition at line 103 of file AP_Vector.h.
const dataType Vector< dataType, sumType >::norm | ( | ) | const [inline] |
Definition at line 299 of file AP_Vector.h.
const bool Vector< dataType, sumType >::operator!= | ( | const Vector< dataType, sumType > & | v | ) | const [inline] |
Definition at line 179 of file AP_Vector.h.
const Vector Vector< dataType, sumType >::operator* | ( | const Vector< dataType, sumType > & | v | ) | const [inline] |
Definition at line 237 of file AP_Vector.h.
const Vector Vector< dataType, sumType >::operator* | ( | const dataType & | s | ) | const [inline] |
Definition at line 245 of file AP_Vector.h.
Vector& Vector< dataType, sumType >::operator*= | ( | const dataType & | s | ) | [inline] |
Definition at line 273 of file AP_Vector.h.
const Vector Vector< dataType, sumType >::operator+ | ( | const dataType & | s | ) | const [inline] |
Definition at line 193 of file AP_Vector.h.
const Vector Vector< dataType, sumType >::operator+ | ( | const Vector< dataType, sumType > & | v | ) | const [inline] |
Definition at line 183 of file AP_Vector.h.
Vector& Vector< dataType, sumType >::operator+= | ( | const Vector< dataType, sumType > & | v | ) | [inline] |
Definition at line 217 of file AP_Vector.h.
const Vector Vector< dataType, sumType >::operator- | ( | const Vector< dataType, sumType > & | v | ) | const [inline] |
Definition at line 200 of file AP_Vector.h.
const Vector Vector< dataType, sumType >::operator- | ( | ) | const [inline] |
Definition at line 210 of file AP_Vector.h.
Vector& Vector< dataType, sumType >::operator-= | ( | const Vector< dataType, sumType > & | v | ) | [inline] |
Definition at line 227 of file AP_Vector.h.
const Vector Vector< dataType, sumType >::operator/ | ( | const dataType & | s | ) | const [inline] |
Definition at line 252 of file AP_Vector.h.
const Vector Vector< dataType, sumType >::operator/ | ( | const Vector< dataType, sumType > & | v | ) | const [inline] |
Definition at line 259 of file AP_Vector.h.
Vector& Vector< dataType, sumType >::operator/= | ( | const dataType & | s | ) | [inline] |
Definition at line 267 of file AP_Vector.h.
Vector& Vector< dataType, sumType >::operator= | ( | const Vector< dataType, sumType > & | v | ) | [inline] |
Definition at line 162 of file AP_Vector.h.
const bool Vector< dataType, sumType >::operator== | ( | const Vector< dataType, sumType > & | v | ) | const [inline] |
Definition at line 169 of file AP_Vector.h.
const dataType& Vector< dataType, sumType >::operator[] | ( | const size_t & | index | ) | const [inline] |
Definition at line 148 of file AP_Vector.h.
dataType& Vector< dataType, sumType >::operator[] | ( | const size_t & | index | ) | [inline] |
Definition at line 155 of file AP_Vector.h.
dataType& Vector< dataType, sumType >::pop_front | ( | ) | [inline] |
Definition at line 137 of file AP_Vector.h.
void Vector< dataType, sumType >::print | ( | Stream & | serial = Serial , |
|
const char * | msg = "" , |
|||
size_t | format = 0 | |||
) | const [inline] |
Definition at line 338 of file AP_Vector.h.
void Vector< dataType, sumType >::push_back | ( | const Vector< dataType, sumType > & | vector | ) | [inline] |
Definition at line 143 of file AP_Vector.h.
void Vector< dataType, sumType >::push_back | ( | const dataType & | value | ) | [inline] |
Definition at line 131 of file AP_Vector.h.
const Vector Vector< dataType, sumType >::range | ( | const size_t & | start, | |
const size_t & | stop | |||
) | const [inline] |
Definition at line 326 of file AP_Vector.h.
void Vector< dataType, sumType >::remove | ( | const size_t & | index | ) | [inline] |
Definition at line 123 of file AP_Vector.h.
static bool Vector< dataType, sumType >::selfTest | ( | Stream & | serial = Serial |
) | [inline, static] |
Definition at line 347 of file AP_Vector.h.
void Vector< dataType, sumType >::setSize | ( | const size_t & | n | ) | [inline] |
Definition at line 82 of file AP_Vector.h.
const sumType Vector< dataType, sumType >::sum | ( | const size_t & | start = 0 , |
|
const int & | end = -1 | |||
) | const [inline] |
Definition at line 307 of file AP_Vector.h.
void Vector< dataType, sumType >::sumFletcher | ( | uint8_t & | CK_A, | |
uint8_t & | CK_B, | |||
const size_t & | start = 0 , |
|||
const int & | end = -1 | |||
) | const [inline] |
Definition at line 315 of file AP_Vector.h.
const dataType* Vector< dataType, sumType >::toArray | ( | ) | const [inline] |
Definition at line 332 of file AP_Vector.h.
Vector<float> Vector< dataType, sumType >::toFloat | ( | ) | const [inline] |
Definition at line 65 of file AP_Vector.h.
const Vector Vector< dataType, sumType >::unit | ( | ) | const [inline] |
Definition at line 303 of file AP_Vector.h.