Vector of primitive numeric values. More...
#include <vec.hpp>
Public Member Functions | |
Vec (int size=0) | |
Vec (const Vec &) | |
~Vec () | |
void | setSize (int size) |
int | size () const |
T & | operator[] (int n) |
const T & | operator[] (int n) const |
T & | operator() (int n) |
const T & | operator() (int n) const |
Vec< T > & | operator= (const Vec< T > &) |
Vec< T > | operator+ (const Vec< T > &) const |
Vec< T > & | operator+= (const Vec< T > &) |
Vec< T > | operator- (const Vec< T > &) const |
Vec< T > & | operator-= (const Vec< T > &) |
Vec< T > | operator- () const |
Vec< T > & | operator= (const T &) |
Vec< T > | operator* (const T &) const |
Vec< T > & | operator*= (const T &) |
bool | operator== (const Vec< T > &) const |
bool | operator!= (const Vec< T > &) const |
bool | operator< (const Vec< T > &) const |
bool | operator<= (const Vec< T > &) const |
bool | operator> (const Vec< T > &) const |
bool | operator>= (const Vec< T > &) const |
bool | operator== (const T &t) const |
bool | operator!= (const T &t) const |
bool | operator< (const T &t) const |
bool | operator<= (const T &t) const |
bool | operator> (const T &t) const |
bool | operator>= (const T &t) const |
Private Attributes | |
int | _size |
T * | _v |
Vector of primitive numeric values.
This implementation is built for speed. It does not work with non-primitive types!
Definition at line 19 of file vec.hpp.
Definition at line 73 of file vec.hpp.
References Vec< T >::_size, and Vec< T >::_v.
Definition at line 80 of file vec.hpp.
References Vec< T >::_size, and Vec< T >::_v.
Definition at line 92 of file vec.hpp.
References Vec< T >::_v.
bool Vec< T >::operator!= | ( | const T & | t | ) | const [inline] |
Definition at line 316 of file vec.hpp.
References Vec< T >::_size, and Vec< T >::_v.
Definition at line 251 of file vec.hpp.
References Vec< T >::_size, and Vec< T >::_v.
const T & Vec< T >::operator() | ( | int | n | ) | const [inline] |
Definition at line 140 of file vec.hpp.
References Vec< T >::_size, and Vec< T >::_v.
T & Vec< T >::operator() | ( | int | n | ) | [inline] |
Definition at line 133 of file vec.hpp.
References Vec< T >::_size, and Vec< T >::_v.
Definition at line 223 of file vec.hpp.
References Vec< T >::_size, and Vec< T >::_v.
Definition at line 232 of file vec.hpp.
References Vec< T >::_size, and Vec< T >::_v.
Definition at line 166 of file vec.hpp.
References Vec< T >::_size, and Vec< T >::_v.
Definition at line 176 of file vec.hpp.
References Vec< T >::_size, and Vec< T >::_v.
Definition at line 206 of file vec.hpp.
References Vec< T >::_size, and Vec< T >::_v.
Definition at line 186 of file vec.hpp.
References Vec< T >::_size, and Vec< T >::_v.
Definition at line 196 of file vec.hpp.
References Vec< T >::_size, and Vec< T >::_v.
bool Vec< T >::operator< | ( | const T & | t | ) | const [inline] |
Definition at line 326 of file vec.hpp.
References Vec< T >::_size, and Vec< T >::_v.
Definition at line 262 of file vec.hpp.
References Vec< T >::_size, and Vec< T >::_v.
bool Vec< T >::operator<= | ( | const T & | t | ) | const [inline] |
Definition at line 336 of file vec.hpp.
References Vec< T >::_size, and Vec< T >::_v.
Definition at line 273 of file vec.hpp.
References Vec< T >::_size, and Vec< T >::_v.
Definition at line 215 of file vec.hpp.
References Vec< T >::_size, and Vec< T >::_v.
Definition at line 147 of file vec.hpp.
References Vec< T >::_size, and Vec< T >::_v.
bool Vec< T >::operator== | ( | const T & | t | ) | const [inline] |
Definition at line 306 of file vec.hpp.
References Vec< T >::_size, and Vec< T >::_v.
Definition at line 240 of file vec.hpp.
References Vec< T >::_size, and Vec< T >::_v.
bool Vec< T >::operator> | ( | const T & | t | ) | const [inline] |
Definition at line 346 of file vec.hpp.
References Vec< T >::_size, and Vec< T >::_v.
Definition at line 284 of file vec.hpp.
References Vec< T >::_size, and Vec< T >::_v.
bool Vec< T >::operator>= | ( | const T & | t | ) | const [inline] |
Definition at line 356 of file vec.hpp.
References Vec< T >::_size, and Vec< T >::_v.
Definition at line 295 of file vec.hpp.
References Vec< T >::_size, and Vec< T >::_v.
const T & Vec< T >::operator[] | ( | int | n | ) | const [inline] |
Definition at line 126 of file vec.hpp.
References Vec< T >::_size, and Vec< T >::_v.
T & Vec< T >::operator[] | ( | int | n | ) | [inline] |
Definition at line 119 of file vec.hpp.
References Vec< T >::_size, and Vec< T >::_v.
void Vec< T >::setSize | ( | int | size | ) | [inline] |
Definition at line 99 of file vec.hpp.
References Vec< T >::_size, and Vec< T >::_v.
Referenced by lu().
int Vec< T >::size | ( | ) | const [inline] |
Definition at line 113 of file vec.hpp.
References Vec< T >::_size.
Referenced by backwardSubstitution(), forwardSubstitution(), interchangePermutations(), operator*(), and Mat< T >::operator*().
Definition at line 58 of file vec.hpp.
Referenced by Vec< T >::operator!=(), Vec< T >::operator()(), Vec< T >::operator*(), Vec< T >::operator*=(), Vec< T >::operator+(), Vec< T >::operator+=(), Vec< T >::operator-(), Vec< T >::operator-=(), Vec< T >::operator<(), Vec< T >::operator<=(), Vec< T >::operator=(), Vec< T >::operator==(), Vec< T >::operator>(), Vec< T >::operator>=(), Vec< T >::operator[](), Vec< T >::setSize(), Vec< T >::size(), and Vec< T >::Vec().
Definition at line 59 of file vec.hpp.
Referenced by Vec< T >::operator!=(), Vec< T >::operator()(), Vec< T >::operator*(), Vec< T >::operator*=(), Vec< T >::operator+(), Vec< T >::operator+=(), Vec< T >::operator-(), Vec< T >::operator-=(), Vec< T >::operator<(), Vec< T >::operator<=(), Vec< T >::operator=(), Vec< T >::operator==(), Vec< T >::operator>(), Vec< T >::operator>=(), Vec< T >::operator[](), Vec< T >::setSize(), Vec< T >::Vec(), and Vec< T >::~Vec().