Public Member Functions | Private Attributes
vector2 Class Reference

List of all members.

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]

Detailed Description

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.


Member Function Documentation

double const* vector2::data ( ) const [inline]

Definition at line 57 of file gaussian.cpp.

vector2 vector2::operator+ ( vector2 const &  other) const [inline]

Definition at line 59 of file gaussian.cpp.

vector2 vector2::operator- ( vector2 const &  other) const [inline]

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.


Member Data Documentation

double vector2::_data[2] [private]

Definition at line 74 of file gaussian.cpp.


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


boost_numpy
Author(s): Jim Bosch, Ankit Daftery
autogenerated on Fri Aug 28 2015 10:10:40