Public Member Functions | |
double const * | data () const |
vector2 | operator+ (vector2 const &other) const |
vector2 | operator- (vector2 const &other) const |
double & | operator[] (int i) |
double const & | operator[] (int i) const |
Private Attributes | |
double | _data [2] |
A 2-element vector class, purely for demonstration purposes.
Instead of wrapping this class with Boost.Python, we'll convert it to/from numpy.ndarray.
Definition at line 46 of file gaussian.cpp.
double const* vector2::data | ( | ) | const [inline] |
Definition at line 57 of file gaussian.cpp.
Definition at line 59 of file gaussian.cpp.
Definition at line 66 of file gaussian.cpp.
double& vector2::operator[] | ( | int | i | ) | [inline] |
Definition at line 49 of file gaussian.cpp.
double const& vector2::operator[] | ( | int | i | ) | const [inline] |
Definition at line 53 of file gaussian.cpp.
double vector2::_data[2] [private] |
Definition at line 74 of file gaussian.cpp.