Struct ScipyType

Struct Documentation

struct ScipyType

Public Static Functions

static ScipyType &getInstance()
static void sharedMemory(const bool value)
static bool sharedMemory()
static bp::object getScipyType()
static const PyTypeObject *getScipyCSRMatrixType()
static const PyTypeObject *getScipyCSCMatrixType()
template<typename SparseMatrix>
static inline bp::object get_pytype_object(const Eigen::SparseMatrixBase<SparseMatrix> *ptr = nullptr)
template<typename SparseMatrix>
static inline PyTypeObject const *get_pytype(const Eigen::SparseMatrixBase<SparseMatrix> *ptr = nullptr)
static inline int get_numpy_type_num(const bp::object &obj)

Protected Functions

ScipyType()

Protected Attributes

bp::object sparse_module
bp::object csr_matrix_obj
bp::object csc_matrix_obj
PyTypeObject *csr_matrix_type
PyTypeObject *csc_matrix_type
bool shared_memory