Class documentation of Concepts

Loading...
Searching...
No Matches
conceptspy.hh
1#ifndef concepts_py_hh
2#define concepts_py_hh
3
4#include "boost/python.hpp"
5#include "python/pyplusplus/include/concepts.pypp.hh"
6#include "numpy.hpp"
7
8namespace bp = boost::python;
9#ifdef BOOSTNUMPY_NEW_NAMESPACE
10namespace bn = boost::python::numpy;
11#else
12namespace bn = boost::numpy;
13#endif
14
15namespace conceptspy {
16
20 void init();
21
22 void sparseMatrix_r_setEntry(concepts::SparseMatrix<concepts::Real>& matrix,
23 unsigned int i,
24 unsigned int j,
25 concepts::Real value );
26
27 bp::list sparseMatrix_r_convertCRS(const concepts::SparseMatrix<concepts::Real>& matrix);
28
29 bp::list sparseMatrix_r_convertCCS(const concepts::SparseMatrix<concepts::Real>& matrix);
30
31 bp::list sparseMatrix_r_convertIJK(const concepts::SparseMatrix<concepts::Real>& matrix);
32
33 void sparseMatrix_c_setEntry(bp::object& self,
34 unsigned int i,
35 unsigned int j,
36 concepts::Cmplx value );
37
38 bp::list sparseMatrix_c_convertCRS(const concepts::SparseMatrix<concepts::Cmplx>& matrix);
39
40 bp::list sparseMatrix_c_convertCCS(const concepts::SparseMatrix<concepts::Cmplx>& matrix);
41
42 bp::list sparseMatrix_c_convertIJK(const concepts::SparseMatrix<concepts::Cmplx>& matrix);
43
44 bn::ndarray elementMatrix_r_tondarray(const concepts::ElementMatrix<concepts::Real>& matrix );
45 bn::ndarray elementMatrix_r_getndarray(const concepts::ElementMatrix<concepts::Real>& matrix );
46
47 void elementMatrix_r_setEntry(concepts::ElementMatrix<concepts::Real>& matrix, uint i, uint j, concepts::Real value );
48
49 void elementMatrix_c_setEntry(concepts::ElementMatrix<concepts::Cmplx>& matrix, uint i, uint j, concepts::Cmplx value );
50
51 void vector_r_setitem(concepts::Vector<concepts::Real>& v, int index, concepts::Real value);
52 void vector_c_setitem(concepts::Vector<concepts::Cmplx>& v, int index, concepts::Cmplx value);
53
54 bn::ndarray vector_r_data(bp::object const & self);
55 bn::ndarray vector_c_data(bp::object const & self);
56
57}
58
59
60#endif
double Real
Definition typedefs.hh:39
std::complex< Real > Cmplx
Type for a complex number. It also depends on the setting of Real.
Definition typedefs.hh:42