HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
PyImath::FixedMatrix< T > Class Template Reference

#include <PyImathFixedMatrix.h>

Public Member Functions

 FixedMatrix (T *ptr, int rows, int cols, int rowStride=1, int colStride=1)
 
 FixedMatrix (int rows, int cols)
 
 FixedMatrix (const FixedMatrix &other)
 
const FixedMatrixoperator= (const FixedMatrix &other)
 
void unref ()
 
 ~FixedMatrix ()
 
Py_ssize_t convert_index (int index) const
 
void extract_slice_indices (PyObject *index, Py_ssize_t &start, Py_ssize_t &end, Py_ssize_t &step, Py_ssize_t &slicelength) const
 
const FixedArray< T > * getitem (int index) const
 
FixedMatrix getslice (PyObject *index) const
 
void setitem_scalar (PyObject *index, const T &data)
 
void setitem_vector (PyObject *index, const FixedArray< T > &data)
 
void setitem_matrix (PyObject *index, const FixedMatrix &data)
 
int rows () const
 
int cols () const
 
int rowStride () const
 
int colStride () const
 
T & element (int i, int j)
 
const T & element (int i, int j) const
 
FixedArray< T > operator[] (int i)
 
const FixedArray< T > operator[] (int i) const
 
template<class T2 >
int match_dimension (const FixedMatrix< T2 > &a1) const
 

Static Public Member Functions

static hboost::python::class_
< FixedMatrix< T > > 
register_ (const char *name, const char *doc)
 

Detailed Description

template<class T>
class PyImath::FixedMatrix< T >

Definition at line 23 of file PyImathFixedMatrix.h.

Constructor & Destructor Documentation

template<class T>
PyImath::FixedMatrix< T >::FixedMatrix ( T *  ptr,
int  rows,
int  cols,
int  rowStride = 1,
int  colStride = 1 
)
inline

Definition at line 34 of file PyImathFixedMatrix.h.

template<class T>
PyImath::FixedMatrix< T >::FixedMatrix ( int  rows,
int  cols 
)
inline

Definition at line 41 of file PyImathFixedMatrix.h.

template<class T>
PyImath::FixedMatrix< T >::FixedMatrix ( const FixedMatrix< T > &  other)
inline

Definition at line 48 of file PyImathFixedMatrix.h.

template<class T>
PyImath::FixedMatrix< T >::~FixedMatrix ( )
inline

Definition at line 90 of file PyImathFixedMatrix.h.

Member Function Documentation

template<class T>
int PyImath::FixedMatrix< T >::cols ( ) const
inline

Definition at line 192 of file PyImathFixedMatrix.h.

template<class T>
int PyImath::FixedMatrix< T >::colStride ( ) const
inline

Definition at line 194 of file PyImathFixedMatrix.h.

template<class T>
Py_ssize_t PyImath::FixedMatrix< T >::convert_index ( int  index) const
inline

Definition at line 95 of file PyImathFixedMatrix.h.

template<class T>
T& PyImath::FixedMatrix< T >::element ( int  i,
int  j 
)
inline

Definition at line 196 of file PyImathFixedMatrix.h.

template<class T>
const T& PyImath::FixedMatrix< T >::element ( int  i,
int  j 
) const
inline

Definition at line 197 of file PyImathFixedMatrix.h.

template<class T>
void PyImath::FixedMatrix< T >::extract_slice_indices ( PyObject *  index,
Py_ssize_t &  start,
Py_ssize_t &  end,
Py_ssize_t &  step,
Py_ssize_t &  slicelength 
) const
inline

Definition at line 105 of file PyImathFixedMatrix.h.

template<class T>
const FixedArray<T>* PyImath::FixedMatrix< T >::getitem ( int  index) const
inline

Definition at line 127 of file PyImathFixedMatrix.h.

template<class T>
FixedMatrix PyImath::FixedMatrix< T >::getslice ( PyObject *  index) const
inline

Definition at line 132 of file PyImathFixedMatrix.h.

template<class T>
template<class T2 >
int PyImath::FixedMatrix< T >::match_dimension ( const FixedMatrix< T2 > &  a1) const
inline

Definition at line 219 of file PyImathFixedMatrix.h.

template<class T>
const FixedMatrix& PyImath::FixedMatrix< T >::operator= ( const FixedMatrix< T > &  other)
inline

Definition at line 57 of file PyImathFixedMatrix.h.

template<class T>
FixedArray<T> PyImath::FixedMatrix< T >::operator[] ( int  i)
inline

Definition at line 199 of file PyImathFixedMatrix.h.

template<class T>
const FixedArray<T> PyImath::FixedMatrix< T >::operator[] ( int  i) const
inline

Definition at line 200 of file PyImathFixedMatrix.h.

template<class T>
static hboost::python::class_<FixedMatrix<T> > PyImath::FixedMatrix< T >::register_ ( const char *  name,
const char *  doc 
)
inlinestatic

Definition at line 202 of file PyImathFixedMatrix.h.

template<class T>
int PyImath::FixedMatrix< T >::rows ( ) const
inline

Definition at line 191 of file PyImathFixedMatrix.h.

template<class T>
int PyImath::FixedMatrix< T >::rowStride ( ) const
inline

Definition at line 193 of file PyImathFixedMatrix.h.

template<class T>
void PyImath::FixedMatrix< T >::setitem_matrix ( PyObject *  index,
const FixedMatrix< T > &  data 
)
inline

Definition at line 174 of file PyImathFixedMatrix.h.

template<class T>
void PyImath::FixedMatrix< T >::setitem_scalar ( PyObject *  index,
const T &  data 
)
inline

Definition at line 146 of file PyImathFixedMatrix.h.

template<class T>
void PyImath::FixedMatrix< T >::setitem_vector ( PyObject *  index,
const FixedArray< T > &  data 
)
inline

Definition at line 158 of file PyImathFixedMatrix.h.

template<class T>
void PyImath::FixedMatrix< T >::unref ( )
inline

Definition at line 73 of file PyImathFixedMatrix.h.


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