Public Member Functions | Private Attributes
matrix2 Class Reference

List of all members.

Public Member Functions

double const * data () const
double & operator() (int i, int j)
double const & operator() (int i, int j) const

Private Attributes

double _data [4]

Detailed Description

A 2x2 matrix class, purely for demonstration purposes.

Instead of wrapping this class with Boost.Python, we'll convert it to/from numpy.ndarray.

Definition at line 24 of file gaussian.cpp.


Member Function Documentation

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

Definition at line 35 of file gaussian.cpp.

double& matrix2::operator() ( int  i,
int  j 
) [inline]

Definition at line 27 of file gaussian.cpp.

double const& matrix2::operator() ( int  i,
int  j 
) const [inline]

Definition at line 31 of file gaussian.cpp.


Member Data Documentation

double matrix2::_data[4] [private]

Definition at line 38 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