Commit 3376b66e authored by Sebastian Wolf's avatar Sebastian Wolf

Fixed Python binding

parent f4aabcf3
Pipeline #897 failed with stages
in 52 seconds
......@@ -76,6 +76,7 @@ namespace xerus {
void sort(const bool _positionsOnly = false);
void measure(std::vector<value_t>& _values, );
void measure(const Tensor& _solution);
......
......@@ -53,13 +53,10 @@ void expose_leastSquaresAlgorithms() {
.def("reset", &PerformanceData::reset)
.def("get_elapsed_time", &PerformanceData::get_elapsed_time)
.def("get_runtime", &PerformanceData::get_runtime)
.def("add", +[](PerformanceData &_this, size_t _itr, const std::vector<double>& _res){
_this.add(_itr, _res);
})
.def("add", +[](PerformanceData &_this, size_t _itr, const std::vector<double>& _res, const TTTensor &_x, size_t _flags){
.def("add", +[](PerformanceData &_this, size_t _itr, const double _res, const TTTensor &_x, const size_t _flags) {
_this.add(_itr, _res, _x, _flags);
}, (arg("iterationCount"), arg("residual"), arg("x"), arg("flags")=0) )
.def("add", +[](PerformanceData &_this, const std::vector<double>& _res, const TTTensor &_x, size_t _flags){
.def("add", +[](PerformanceData &_this, const double _res, const TTTensor &_x, size_t _flags) {
_this.add(_res, _x, _flags);
}, (arg("residual"), arg("x"), arg("flags")=0) )
.def("__nonzero__", +[](PerformanceData &_this){ return bool(_this); })
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment