|
sokobo
|
Public Member Functions | |
| Vector (int size) | |
| Vector (const std::vector< T > &vec) | |
| T & | operator[] (int i) |
| const T & | operator[] (int i) const |
| int | size () const |
| Vector< T > | operator+ (const Vector< T > &other) const |
| Vector< T > | operator- (const Vector< T > &other) const |
| Vector< T > | operator* (T scalar) const |
| Vector< T > | operator/ (T scalar) const |
| T | dot (const Vector< T > &other) const |
| double | norm () const |
| void | normalize () |
| std::string | toString () const |
Static Public Member Functions | |
| static Vector< T > | zeros (int size) |
| static Vector< T > | ones (int size) |
Definition at line 5 of file vector.cpp.
Definition at line 8 of file vector.cpp.
Definition at line 11 of file vector.cpp.
Definition at line 76 of file vector.cpp.
| double Vector< T >::norm |
Definition at line 89 of file vector.cpp.
| void Vector< T >::normalize |
Definition at line 95 of file vector.cpp.
Definition at line 121 of file vector.cpp.
Definition at line 54 of file vector.cpp.
Definition at line 30 of file vector.cpp.
Definition at line 42 of file vector.cpp.
Definition at line 63 of file vector.cpp.
| T & Vector< T >::operator[] | ( | int | i | ) |
Definition at line 14 of file vector.cpp.
| const T & Vector< T >::operator[] | ( | int | i | ) | const |
Definition at line 19 of file vector.cpp.
| int Vector< T >::size |
Definition at line 24 of file vector.cpp.
| std::string Vector< T >::toString |
Definition at line 105 of file vector.cpp.
Definition at line 116 of file vector.cpp.