From d5f8daf194e8297c2f02045348963cb2dfd80832 Mon Sep 17 00:00:00 2001 From: mazzol_a Date: Tue, 22 Apr 2025 16:16:31 +0200 Subject: [PATCH] removed debug option in CMakelist --- CMakeLists.txt | 2 +- python/src/bind_ClusterVector.hpp | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 3c0d03a..6820516 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -275,7 +275,7 @@ else() if(CMAKE_BUILD_TYPE STREQUAL "Release") message(STATUS "Release build") - target_compile_options(aare_compiler_flags INTERFACE -O3 -g) + target_compile_options(aare_compiler_flags INTERFACE -O3) else() message(STATUS "Debug build") endif() diff --git a/python/src/bind_ClusterVector.hpp b/python/src/bind_ClusterVector.hpp index ea02487..ecd7a77 100644 --- a/python/src/bind_ClusterVector.hpp +++ b/python/src/bind_ClusterVector.hpp @@ -44,6 +44,11 @@ void define_ClusterVector(py::module &m, const std::string &typestr) { auto *vec = new std::vector(self.sum()); return return_vector(vec); }) + .def("sum_2x2", + [](ClusterVector &self) { + auto *vec = new std::vector(self.sum_2x2()); + return return_vector(vec); + }) .def_property_readonly("size", &ClusterVector::size) .def("item_size", &ClusterVector::item_size) .def_property_readonly("fmt",