void register_N4Matrix_class(){ { //::SireMaths::N4Matrix typedef bp::class_< SireMaths::N4Matrix > N4Matrix_exposer_t; N4Matrix_exposer_t N4Matrix_exposer = N4Matrix_exposer_t( "N4Matrix", "This is a dense, double, general NMLK 4-dimensional matrix.\nThe data is stored as a column-major 2D matrix of column-major\n2D matricies (so each 2D sub-matrix is suitable for\nuse with Fortran BLAS or LAPACK functions). This is\ndesigned for high speed.\n\nThe data is implicitly shared (copy on write), so\ncopying a matrix is very fast.\n\nAuthor: Christopher Woods\n", bp::init< >("Null constructor") ); bp::scope N4Matrix_scope( N4Matrix_exposer ); N4Matrix_exposer.def( bp::init< int, int, int, int >(( bp::arg("nbigrows"), bp::arg("nbigcolumns"), bp::arg("nrows"), bp::arg("columns") ), "Construct a matrix with nbigrows big rows, nbigcolumns big columns,\nnrows rows and ncolumns columns. The values in the matrix are not initialised") ); N4Matrix_exposer.def( bp::init< int, int, int, int, double >(( bp::arg("nbigrows"), bp::arg("nbigcolumn"), bp::arg("nrows"), bp::arg("ncolumns"), bp::arg("initial_value") ), "Construct a matrix with nbigrows big rows, nbigcolumns big columns,\nnrows rows and ncolumns columns. The values in the matrix are\ninitialised to be equal to initial_value") ); N4Matrix_exposer.def( bp::init< SireMaths::NMatrix const & >(( bp::arg("matrix") ), "Construct from the passed matrix - this creates a matrix\nof dimension [1, 1, matrix.nRows(), matrix.nColumns()]") ); N4Matrix_exposer.def( bp::init< SireBase::Array2D< SireMaths::NMatrix > const & >(( bp::arg("matrix") ), "Construct from the passed Array or Matricies") ); N4Matrix_exposer.def( bp::init< QVector< QVector< QVector< QVector< double > > > > const & >(( bp::arg("matrix") ), "Construct from the passed vector of vector of vector of vectors...") ); N4Matrix_exposer.def( bp::init< SireMaths::N4Matrix const & >(( bp::arg("other") ), "Copy constructor") ); { //::SireMaths::N4Matrix::add typedef void ( ::SireMaths::N4Matrix::*add_function_type)( int,int,::SireMaths::NMatrix const & ) ; add_function_type add_function_value( &::SireMaths::N4Matrix::add ); N4Matrix_exposer.def( "add" , add_function_value , ( bp::arg("i"), bp::arg("j"), bp::arg("matrix") ) , "Add the contents of matrix to the sub-matrix view at [i,j]\nThrow: SireError::invalid_index\nThrow: SireError::incompatible_error\n" ); } { //::SireMaths::N4Matrix::assertNBigColumns typedef void ( ::SireMaths::N4Matrix::*assertNBigColumns_function_type)( int ) const; assertNBigColumns_function_type assertNBigColumns_function_value( &::SireMaths::N4Matrix::assertNBigColumns ); N4Matrix_exposer.def( "assertNBigColumns" , assertNBigColumns_function_value , ( bp::arg("nbigcolumns") ) , "Assert that this matrix has nbigcolumns big columns\nThrow: SireError::incompatible_error\n" ); } { //::SireMaths::N4Matrix::assertNBigRows typedef void ( ::SireMaths::N4Matrix::*assertNBigRows_function_type)( int ) const; assertNBigRows_function_type assertNBigRows_function_value( &::SireMaths::N4Matrix::assertNBigRows ); N4Matrix_exposer.def( "assertNBigRows" , assertNBigRows_function_value , ( bp::arg("nbigrows") ) , "Assert that this matrix has nbigrows big rows\nThrow: SireError::incompatible_error\n" ); } { //::SireMaths::N4Matrix::assertNColumns typedef void ( ::SireMaths::N4Matrix::*assertNColumns_function_type)( int ) const; assertNColumns_function_type assertNColumns_function_value( &::SireMaths::N4Matrix::assertNColumns ); N4Matrix_exposer.def( "assertNColumns" , assertNColumns_function_value , ( bp::arg("ncolumns") ) , "Assert that this matrix has ncolumns columns\nThrow: SireError::incompatible_error\n" ); } { //::SireMaths::N4Matrix::assertNRows typedef void ( ::SireMaths::N4Matrix::*assertNRows_function_type)( int ) const; assertNRows_function_type assertNRows_function_value( &::SireMaths::N4Matrix::assertNRows ); N4Matrix_exposer.def( "assertNRows" , assertNRows_function_value , ( bp::arg("nrows") ) , "Assert that this matrix has nrows rows\nThrow: SireError::incompatible_error\n" ); } { //::SireMaths::N4Matrix::assertValidBigColumn typedef void ( ::SireMaths::N4Matrix::*assertValidBigColumn_function_type)( int ) const; assertValidBigColumn_function_type assertValidBigColumn_function_value( &::SireMaths::N4Matrix::assertValidBigColumn ); N4Matrix_exposer.def( "assertValidBigColumn" , assertValidBigColumn_function_value , ( bp::arg("j") ) , "Assert that there is an jth big column\nThrow: SireError::invalid_index\n" ); } { //::SireMaths::N4Matrix::assertValidBigRow typedef void ( ::SireMaths::N4Matrix::*assertValidBigRow_function_type)( int ) const; assertValidBigRow_function_type assertValidBigRow_function_value( &::SireMaths::N4Matrix::assertValidBigRow ); N4Matrix_exposer.def( "assertValidBigRow" , assertValidBigRow_function_value , ( bp::arg("i") ) , "Assert that there is an ith big row\nThrow: SireError::invalid_index\n" ); } { //::SireMaths::N4Matrix::assertValidColumn typedef void ( ::SireMaths::N4Matrix::*assertValidColumn_function_type)( int ) const; assertValidColumn_function_type assertValidColumn_function_value( &::SireMaths::N4Matrix::assertValidColumn ); N4Matrix_exposer.def( "assertValidColumn" , assertValidColumn_function_value , ( bp::arg("l") ) , "Assert that there is an lth column\nThrow: SireError::invalid_index\n" ); } { //::SireMaths::N4Matrix::assertValidIndex typedef void ( ::SireMaths::N4Matrix::*assertValidIndex_function_type)( int,int,int,int ) const; assertValidIndex_function_type assertValidIndex_function_value( &::SireMaths::N4Matrix::assertValidIndex ); N4Matrix_exposer.def( "assertValidIndex" , assertValidIndex_function_value , ( bp::arg("i"), bp::arg("j"), bp::arg("k"), bp::arg("l") ) , "Assert that the index [i,j,k,l] is valid for this matrix\nThrow: SireError::invalid_index\n" ); } { //::SireMaths::N4Matrix::assertValidRow typedef void ( ::SireMaths::N4Matrix::*assertValidRow_function_type)( int ) const; assertValidRow_function_type assertValidRow_function_value( &::SireMaths::N4Matrix::assertValidRow ); N4Matrix_exposer.def( "assertValidRow" , assertValidRow_function_value , ( bp::arg("k") ) , "Assert that there is an kth row\nThrow: SireError::invalid_index\n" ); } { //::SireMaths::N4Matrix::checkedOffset typedef int ( ::SireMaths::N4Matrix::*checkedOffset_function_type)( int,int,int,int ) const; checkedOffset_function_type checkedOffset_function_value( &::SireMaths::N4Matrix::checkedOffset ); N4Matrix_exposer.def( "checkedOffset" , checkedOffset_function_value , ( bp::arg("i"), bp::arg("j"), bp::arg("k"), bp::arg("l") ) , "Calculate the offset in the 1D array of the value\nat index [i,j,k,l]\nThrow: SireError::invalid_index\n" ); } { //::SireMaths::N4Matrix::memory typedef ::QVector< double > ( ::SireMaths::N4Matrix::*memory_function_type)( ) const; memory_function_type memory_function_value( &::SireMaths::N4Matrix::memory ); N4Matrix_exposer.def( "memory" , memory_function_value , "Return the raw QVector memory used by this matrix" ); } { //::SireMaths::N4Matrix::nBigColumns typedef int ( ::SireMaths::N4Matrix::*nBigColumns_function_type)( ) const; nBigColumns_function_type nBigColumns_function_value( &::SireMaths::N4Matrix::nBigColumns ); N4Matrix_exposer.def( "nBigColumns" , nBigColumns_function_value , "Return the number of big columns in this matrix" ); } { //::SireMaths::N4Matrix::nBigRows typedef int ( ::SireMaths::N4Matrix::*nBigRows_function_type)( ) const; nBigRows_function_type nBigRows_function_value( &::SireMaths::N4Matrix::nBigRows ); N4Matrix_exposer.def( "nBigRows" , nBigRows_function_value , "Return the number of big rows in this matrix" ); } { //::SireMaths::N4Matrix::nColumns typedef int ( ::SireMaths::N4Matrix::*nColumns_function_type)( ) const; nColumns_function_type nColumns_function_value( &::SireMaths::N4Matrix::nColumns ); N4Matrix_exposer.def( "nColumns" , nColumns_function_value , "Return the number of columns in this matrix" ); } { //::SireMaths::N4Matrix::nRows typedef int ( ::SireMaths::N4Matrix::*nRows_function_type)( ) const; nRows_function_type nRows_function_value( &::SireMaths::N4Matrix::nRows ); N4Matrix_exposer.def( "nRows" , nRows_function_value , "Return the number of rows in this matrix" ); } { //::SireMaths::N4Matrix::offset typedef int ( ::SireMaths::N4Matrix::*offset_function_type)( int,int,int,int ) const; offset_function_type offset_function_value( &::SireMaths::N4Matrix::offset ); N4Matrix_exposer.def( "offset" , offset_function_value , ( bp::arg("i"), bp::arg("j"), bp::arg("k"), bp::arg("l") ) , "" ); } N4Matrix_exposer.def( bp::self != bp::self ); { //::SireMaths::N4Matrix::operator() typedef double const & ( ::SireMaths::N4Matrix::*__call___function_type)( int,int,int,int ) const; __call___function_type __call___function_value( &::SireMaths::N4Matrix::operator() ); N4Matrix_exposer.def( "__call__" , __call___function_value , ( bp::arg("i"), bp::arg("j"), bp::arg("k"), bp::arg("l") ) , bp::return_value_policy< bp::copy_const_reference >() , "" ); } { //::SireMaths::N4Matrix::operator() typedef ::SireMaths::NMatrix ( ::SireMaths::N4Matrix::*__call___function_type)( int,int ) const; __call___function_type __call___function_value( &::SireMaths::N4Matrix::operator() ); N4Matrix_exposer.def( "__call__" , __call___function_value , ( bp::arg("i"), bp::arg("j") ) , "" ); } N4Matrix_exposer.def( bp::self * bp::other< double >() ); N4Matrix_exposer.def( bp::self + bp::self ); N4Matrix_exposer.def( -bp::self ); N4Matrix_exposer.def( bp::self - bp::self ); N4Matrix_exposer.def( bp::self / bp::other< double >() ); { //::SireMaths::N4Matrix::operator= typedef ::SireMaths::N4Matrix & ( ::SireMaths::N4Matrix::*assign_function_type)( ::SireMaths::N4Matrix const & ) ; assign_function_type assign_function_value( &::SireMaths::N4Matrix::operator= ); N4Matrix_exposer.def( "assign" , assign_function_value , ( bp::arg("other") ) , bp::return_self< >() , "" ); } N4Matrix_exposer.def( bp::self == bp::self ); { //::SireMaths::N4Matrix::redimension typedef void ( ::SireMaths::N4Matrix::*redimension_function_type)( int,int,int,int ) ; redimension_function_type redimension_function_value( &::SireMaths::N4Matrix::redimension ); N4Matrix_exposer.def( "redimension" , redimension_function_value , ( bp::arg("nbigrows"), bp::arg("nbigcolumns"), bp::arg("nrows"), bp::arg("ncolumns") ) , "Redimension this matrix to have nbigrows big rows,\nnbigcolumns big columns, nrows rows and ncolumns\ncolumns. The contents of this matrix are undefined after\nthis redimension. This function will only reallocate\nmemory if there is not enough memory allocated to store\nthe new matrix. Use this function if you want to use\nthe same piece of memory over and over again for lots\nof different size matricies - just create a matrix with\nthe maximum dimension, then call this redimension function\nwhenever you want to change. It is very fast, as it just\nupdates the internal record of the size of the matrix" ); } { //::SireMaths::N4Matrix::set typedef void ( ::SireMaths::N4Matrix::*set_function_type)( int,int,::SireMaths::NMatrix const & ) ; set_function_type set_function_value( &::SireMaths::N4Matrix::set ); N4Matrix_exposer.def( "set" , set_function_value , ( bp::arg("i"), bp::arg("j"), bp::arg("matrix") ) , "Set the view at [i,j] equal to matrix\nThrow: SireError::invalid_index\nThrow: SireError::incompatible_error\n" ); } { //::SireMaths::N4Matrix::set typedef void ( ::SireMaths::N4Matrix::*set_function_type)( int,int,int,int,double ) ; set_function_type set_function_value( &::SireMaths::N4Matrix::set ); N4Matrix_exposer.def( "set" , set_function_value , ( bp::arg("i"), bp::arg("j"), bp::arg("k"), bp::arg("l"), bp::arg("value") ) , "Set the value at [i,j,k,l] equal to value\nThrow: SireError::invalid_index\n" ); } { //::SireMaths::N4Matrix::setAll typedef void ( ::SireMaths::N4Matrix::*setAll_function_type)( double ) ; setAll_function_type setAll_function_value( &::SireMaths::N4Matrix::setAll ); N4Matrix_exposer.def( "setAll" , setAll_function_value , ( bp::arg("value") ) , "Set all entries in the matrix to the value value" ); } { //::SireMaths::N4Matrix::subtract typedef void ( ::SireMaths::N4Matrix::*subtract_function_type)( int,int,::SireMaths::NMatrix const & ) ; subtract_function_type subtract_function_value( &::SireMaths::N4Matrix::subtract ); N4Matrix_exposer.def( "subtract" , subtract_function_value , ( bp::arg("i"), bp::arg("j"), bp::arg("matrix") ) , "Subtract the contents of matrix from the sub-matrix view at [i,j]\nThrow: SireError::invalid_index\nThrow: SireError::incompatible_error\n" ); } { //::SireMaths::N4Matrix::toString typedef ::QString ( ::SireMaths::N4Matrix::*toString_function_type)( ) const; toString_function_type toString_function_value( &::SireMaths::N4Matrix::toString ); N4Matrix_exposer.def( "toString" , toString_function_value , "Return a string representation of this matrix" ); } { //::SireMaths::N4Matrix::typeName typedef char const * ( *typeName_function_type )( ); typeName_function_type typeName_function_value( &::SireMaths::N4Matrix::typeName ); N4Matrix_exposer.def( "typeName" , typeName_function_value , "" ); } { //::SireMaths::N4Matrix::view typedef ::SireMaths::NMatrix ( ::SireMaths::N4Matrix::*view_function_type)( int,int ) const; view_function_type view_function_value( &::SireMaths::N4Matrix::view ); N4Matrix_exposer.def( "view" , view_function_value , ( bp::arg("i"), bp::arg("j") ) , "Return the sub-matrix view at [i,j,k,l]\nThrow: SireError::invalid_index\n" ); } { //::SireMaths::N4Matrix::what typedef char const * ( ::SireMaths::N4Matrix::*what_function_type)( ) const; what_function_type what_function_value( &::SireMaths::N4Matrix::what ); N4Matrix_exposer.def( "what" , what_function_value , "" ); } N4Matrix_exposer.staticmethod( "typeName" ); N4Matrix_exposer.def( "__copy__", &__copy__); N4Matrix_exposer.def( "__deepcopy__", &__copy__); N4Matrix_exposer.def( "clone", &__copy__); N4Matrix_exposer.def( "__rlshift__", &__rlshift__QDataStream< ::SireMaths::N4Matrix >, bp::return_internal_reference<1, bp::with_custodian_and_ward<1,2> >() ); N4Matrix_exposer.def( "__rrshift__", &__rrshift__QDataStream< ::SireMaths::N4Matrix >, bp::return_internal_reference<1, bp::with_custodian_and_ward<1,2> >() ); N4Matrix_exposer.def( "__str__", &__str__< ::SireMaths::N4Matrix > ); N4Matrix_exposer.def( "__repr__", &__str__< ::SireMaths::N4Matrix > ); } }
void register_NVector_class(){ { //::SireMaths::NVector typedef bp::class_< SireMaths::NVector > NVector_exposer_t; NVector_exposer_t NVector_exposer = NVector_exposer_t( "NVector", bp::init< >() ); bp::scope NVector_scope( NVector_exposer ); NVector_exposer.def( bp::init< int >(( bp::arg("nrows") )) ); NVector_exposer.def( bp::init< int, double >(( bp::arg("nrows"), bp::arg("initial_value") )) ); NVector_exposer.def( bp::init< SireMaths::Vector const & >(( bp::arg("vector") )) ); NVector_exposer.def( bp::init< QVector< double > const & >(( bp::arg("vector") )) ); NVector_exposer.def( bp::init< SireMaths::NVector const & >(( bp::arg("vector") )) ); { //::SireMaths::NVector::assertNColumns typedef void ( ::SireMaths::NVector::*assertNColumns_function_type )( int ) const; assertNColumns_function_type assertNColumns_function_value( &::SireMaths::NVector::assertNColumns ); NVector_exposer.def( "assertNColumns" , assertNColumns_function_value , ( bp::arg("ncolumns") ) ); } { //::SireMaths::NVector::assertNRows typedef void ( ::SireMaths::NVector::*assertNRows_function_type )( int ) const; assertNRows_function_type assertNRows_function_value( &::SireMaths::NVector::assertNRows ); NVector_exposer.def( "assertNRows" , assertNRows_function_value , ( bp::arg("nrows") ) ); } { //::SireMaths::NVector::assertValidIndex typedef void ( ::SireMaths::NVector::*assertValidIndex_function_type )( int ) const; assertValidIndex_function_type assertValidIndex_function_value( &::SireMaths::NVector::assertValidIndex ); NVector_exposer.def( "assertValidIndex" , assertValidIndex_function_value , ( bp::arg("i") ) ); } { //::SireMaths::NVector::assertValidIndex typedef void ( ::SireMaths::NVector::*assertValidIndex_function_type )( int,int ) const; assertValidIndex_function_type assertValidIndex_function_value( &::SireMaths::NVector::assertValidIndex ); NVector_exposer.def( "assertValidIndex" , assertValidIndex_function_value , ( bp::arg("i"), bp::arg("j") ) ); } { //::SireMaths::NVector::count typedef int ( ::SireMaths::NVector::*count_function_type )( ) const; count_function_type count_function_value( &::SireMaths::NVector::count ); NVector_exposer.def( "count" , count_function_value ); } { //::SireMaths::NVector::cross typedef ::SireMaths::NVector ( ::SireMaths::NVector::*cross_function_type )( ::SireMaths::NVector const & ) const; cross_function_type cross_function_value( &::SireMaths::NVector::cross ); NVector_exposer.def( "cross" , cross_function_value , ( bp::arg("other") ) ); } { //::SireMaths::NVector::dot typedef double ( ::SireMaths::NVector::*dot_function_type )( ::SireMaths::NVector const & ) const; dot_function_type dot_function_value( &::SireMaths::NVector::dot ); NVector_exposer.def( "dot" , dot_function_value , ( bp::arg("other") ) ); } { //::SireMaths::NVector::isZero typedef bool ( ::SireMaths::NVector::*isZero_function_type )( ) const; isZero_function_type isZero_function_value( &::SireMaths::NVector::isZero ); NVector_exposer.def( "isZero" , isZero_function_value ); } { //::SireMaths::NVector::length typedef double ( ::SireMaths::NVector::*length_function_type )( ) const; length_function_type length_function_value( &::SireMaths::NVector::length ); NVector_exposer.def( "length" , length_function_value ); } { //::SireMaths::NVector::length2 typedef double ( ::SireMaths::NVector::*length2_function_type )( ) const; length2_function_type length2_function_value( &::SireMaths::NVector::length2 ); NVector_exposer.def( "length2" , length2_function_value ); } { //::SireMaths::NVector::nColumns typedef int ( ::SireMaths::NVector::*nColumns_function_type )( ) const; nColumns_function_type nColumns_function_value( &::SireMaths::NVector::nColumns ); NVector_exposer.def( "nColumns" , nColumns_function_value ); } { //::SireMaths::NVector::nRows typedef int ( ::SireMaths::NVector::*nRows_function_type )( ) const; nRows_function_type nRows_function_value( &::SireMaths::NVector::nRows ); NVector_exposer.def( "nRows" , nRows_function_value ); } { //::SireMaths::NVector::normalise typedef ::SireMaths::NVector ( ::SireMaths::NVector::*normalise_function_type )( ) const; normalise_function_type normalise_function_value( &::SireMaths::NVector::normalise ); NVector_exposer.def( "normalise" , normalise_function_value ); } NVector_exposer.def( bp::self != bp::self ); { //::SireMaths::NVector::operator() typedef double const & ( ::SireMaths::NVector::*__call___function_type )( int ) const; __call___function_type __call___function_value( &::SireMaths::NVector::operator() ); NVector_exposer.def( "__call__" , __call___function_value , ( bp::arg("i") ) , bp::return_value_policy< bp::copy_const_reference >() ); } { //::SireMaths::NVector::operator() typedef double const & ( ::SireMaths::NVector::*__call___function_type )( int,int ) const; __call___function_type __call___function_value( &::SireMaths::NVector::operator() ); NVector_exposer.def( "__call__" , __call___function_value , ( bp::arg("i"), bp::arg("j") ) , bp::return_value_policy< bp::copy_const_reference >() ); } NVector_exposer.def( bp::self * bp::other< double >() ); NVector_exposer.def( bp::self + bp::self ); NVector_exposer.def( -bp::self ); NVector_exposer.def( bp::self - bp::self ); NVector_exposer.def( bp::self / bp::other< double >() ); { //::SireMaths::NVector::operator= typedef ::SireMaths::NVector & ( ::SireMaths::NVector::*assign_function_type )( ::SireMaths::NVector const & ) ; assign_function_type assign_function_value( &::SireMaths::NVector::operator= ); NVector_exposer.def( "assign" , assign_function_value , ( bp::arg("other") ) , bp::return_self< >() ); } NVector_exposer.def( bp::self == bp::self ); { //::SireMaths::NVector::operator[] typedef double & ( ::SireMaths::NVector::*__getitem___function_type )( int ) ; __getitem___function_type __getitem___function_value( &::SireMaths::NVector::operator[] ); NVector_exposer.def( "__getitem__" , __getitem___function_value , ( bp::arg("i") ) , bp::return_value_policy< bp::copy_non_const_reference >() ); } { //::SireMaths::NVector::operator[] typedef double const & ( ::SireMaths::NVector::*__getitem___function_type )( int ) const; __getitem___function_type __getitem___function_value( &::SireMaths::NVector::operator[] ); NVector_exposer.def( "__getitem__" , __getitem___function_value , ( bp::arg("i") ) , bp::return_value_policy< bp::copy_const_reference >() ); } { //::SireMaths::NVector::set typedef void ( ::SireMaths::NVector::*set_function_type )( int,double ) ; set_function_type set_function_value( &::SireMaths::NVector::set ); NVector_exposer.def( "set" , set_function_value , ( bp::arg("i"), bp::arg("value") ) ); } { //::SireMaths::NVector::set typedef void ( ::SireMaths::NVector::*set_function_type )( int,int,double ) ; set_function_type set_function_value( &::SireMaths::NVector::set ); NVector_exposer.def( "set" , set_function_value , ( bp::arg("i"), bp::arg("j"), bp::arg("value") ) ); } { //::SireMaths::NVector::setAll typedef void ( ::SireMaths::NVector::*setAll_function_type )( double ) ; setAll_function_type setAll_function_value( &::SireMaths::NVector::setAll ); NVector_exposer.def( "setAll" , setAll_function_value , ( bp::arg("value") ) ); } { //::SireMaths::NVector::size typedef int ( ::SireMaths::NVector::*size_function_type )( ) const; size_function_type size_function_value( &::SireMaths::NVector::size ); NVector_exposer.def( "size" , size_function_value ); } { //::SireMaths::NVector::sum typedef double ( ::SireMaths::NVector::*sum_function_type )( ) const; sum_function_type sum_function_value( &::SireMaths::NVector::sum ); NVector_exposer.def( "sum" , sum_function_value ); } { //::SireMaths::NVector::toString typedef ::QString ( ::SireMaths::NVector::*toString_function_type )( ) const; toString_function_type toString_function_value( &::SireMaths::NVector::toString ); NVector_exposer.def( "toString" , toString_function_value ); } { //::SireMaths::NVector::transpose typedef ::SireMaths::NMatrix ( ::SireMaths::NVector::*transpose_function_type )( ) const; transpose_function_type transpose_function_value( &::SireMaths::NVector::transpose ); NVector_exposer.def( "transpose" , transpose_function_value ); } { //::SireMaths::NVector::typeName typedef char const * ( *typeName_function_type )( ); typeName_function_type typeName_function_value( &::SireMaths::NVector::typeName ); NVector_exposer.def( "typeName" , typeName_function_value ); } { //::SireMaths::NVector::what typedef char const * ( ::SireMaths::NVector::*what_function_type )( ) const; what_function_type what_function_value( &::SireMaths::NVector::what ); NVector_exposer.def( "what" , what_function_value ); } NVector_exposer.staticmethod( "typeName" ); NVector_exposer.def( bp::other< double >() * bp::self ); NVector_exposer.def( "__copy__", &__copy__); NVector_exposer.def( "__deepcopy__", &__copy__); NVector_exposer.def( "clone", &__copy__); NVector_exposer.def( "__rlshift__", &__rlshift__QDataStream< ::SireMaths::NVector >, bp::return_internal_reference<1, bp::with_custodian_and_ward<1,2> >() ); NVector_exposer.def( "__rrshift__", &__rrshift__QDataStream< ::SireMaths::NVector >, bp::return_internal_reference<1, bp::with_custodian_and_ward<1,2> >() ); NVector_exposer.def( "__str__", &__str__< ::SireMaths::NVector > ); NVector_exposer.def( "__repr__", &__str__< ::SireMaths::NVector > ); NVector_exposer.def( "__len__", &__len_size< ::SireMaths::NVector > ); } }