openGPMP
Open Source Mathematics Package
Functions
modulelinalg.cpp File Reference
#include <boost/bind/bind.hpp>
#include <boost/python.hpp>
#include <boost/python/numpy.hpp>
#include <iterator>
#include "../../../include/linalg/mtx.hpp"

Go to the source code of this file.

Functions

 BOOST_PYTHON_MODULE (linalg)
 

Function Documentation

◆ BOOST_PYTHON_MODULE()

BOOST_PYTHON_MODULE ( linalg  )

Definition at line 8 of file modulelinalg.cpp.

8  {
9  // using namespace boost::python;
10 
11  boost::python::class_<gpmp::linalg::Mtx>("Mtx").def(
12  "mtx_add",
13  static_cast<void (
15  *)(const int *A, const int *B, int *C, int rows, int cols)>(
16  &gpmp::linalg::Mtx::mtx_add));
17  //.def("mtx_add", static_cast<bool (gpmp::linalg::Mtx::*)(int,
18  // double)>(&gpmp::linalg::Mtx::mtx_add)) .def("mtx_add", static_cast<bool
19  //(gpmp::linalg::Mtx::*)(int, double, char)>(&gpmp::linalg::Mtx::mtx_add))
20  //.def("mtx_add", static_cast<int (gpmp::linalg::Mtx::*)(int, int,
21  // int)>(&gpmp::linalg::Mtx::mtx_add));
22 }
Mtx class offers matrix arithmetic operations. Some methods are element-wise while others make use of...
Definition: mtx.hpp:57
list C
Definition: linalg.py:24
list A
Definition: linalg.py:22
list B
Definition: linalg.py:23

References python.linalg::A, python.linalg::B, python.linalg::C, test_linalg::cols, and test_linalg::rows.