conceptspy.hh

Go to the documentation of this file.
1 #ifndef concepts_py_hh
2 #define concepts_py_hh
3 
4 #include "boost/python.hpp"
6 #include "numpy.hpp"
7 
8 namespace bp = boost::python;
9 #ifdef BOOSTNUMPY_NEW_NAMESPACE
10 namespace bn = boost::python::numpy;
11 #else
12 namespace bn = boost::numpy;
13 #endif
14 
15 namespace conceptspy {
16 
20  void init();
21 
23  unsigned int i,
24  unsigned int j,
25  concepts::Real value );
26 
28 
30 
32 
33  void sparseMatrix_c_setEntry(bp::object& self,
34  unsigned int i,
35  unsigned int j,
36  concepts::Cmplx value );
37 
39 
41 
43 
46 
48 
50 
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
bp::list sparseMatrix_c_convertCCS(const concepts::SparseMatrix< concepts::Cmplx > &matrix)
bp::list sparseMatrix_r_convertIJK(const concepts::SparseMatrix< concepts::Real > &matrix)
bp::list sparseMatrix_c_convertCRS(const concepts::SparseMatrix< concepts::Cmplx > &matrix)
void vector_r_setitem(concepts::Vector< concepts::Real > &v, int index, concepts::Real value)
void init()
Before using conceptspy make sure to call this routine.
bp::list sparseMatrix_r_convertCRS(const concepts::SparseMatrix< concepts::Real > &matrix)
bn::ndarray vector_c_data(bp::object const &self)
bn::ndarray elementMatrix_r_tondarray(const concepts::ElementMatrix< concepts::Real > &matrix)
void elementMatrix_r_setEntry(concepts::ElementMatrix< concepts::Real > &matrix, uint i, uint j, concepts::Real value)
bn::ndarray elementMatrix_r_getndarray(const concepts::ElementMatrix< concepts::Real > &matrix)
bn::ndarray vector_r_data(bp::object const &self)
bp::list sparseMatrix_r_convertCCS(const concepts::SparseMatrix< concepts::Real > &matrix)
bp::list sparseMatrix_c_convertIJK(const concepts::SparseMatrix< concepts::Cmplx > &matrix)
void sparseMatrix_r_setEntry(concepts::SparseMatrix< concepts::Real > &matrix, unsigned int i, unsigned int j, concepts::Real value)
std::complex< Real > Cmplx
Type for a complex number. It also depends on the setting of Real.
Definition: typedefs.hh:39
void elementMatrix_c_setEntry(concepts::ElementMatrix< concepts::Cmplx > &matrix, uint i, uint j, concepts::Cmplx value)
void sparseMatrix_c_setEntry(bp::object &self, unsigned int i, unsigned int j, concepts::Cmplx value)
void vector_c_setitem(concepts::Vector< concepts::Cmplx > &v, int index, concepts::Cmplx value)
Element matrix.
Definition: linearForm.hh:18
double Real
Type normally used for a floating point number.
Definition: typedefs.hh:36
Page URL: http://wiki.math.ethz.ch/bin/view/Concepts/WebHome
21 August 2020
© 2020 Eidgenössische Technische Hochschule Zürich