From d8e79056bffc13598ca63305610c5edd2182c21f Mon Sep 17 00:00:00 2001 From: Priyanka Seth Date: Mon, 13 Oct 2014 15:34:24 +0200 Subject: [PATCH] Modify det_manip to access determinant x_values and y_values --- triqs/det_manip/det_manip.hpp | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/triqs/det_manip/det_manip.hpp b/triqs/det_manip/det_manip.hpp index 602b8dc3..3a55a85c 100644 --- a/triqs/det_manip/det_manip.hpp +++ b/triqs/det_manip/det_manip.hpp @@ -239,13 +239,19 @@ namespace triqs { namespace det_manip { //----------------------- READ ACCESS TO DATA ---------------------------------- /// Current size of the matrix - size_t size() const { return N;} + size_t size() const { return N; } /// Returns the i-th values of x - xy_type const & get_x(size_t i) const { return x_values[row_num[i]];} + xy_type const & get_x(size_t i) const { return x_values[row_num[i]]; } + + /// Returns the vector of x values + std::vector const & get_x_values() const { return x_values; } /// Returns the j-th values of y - xy_type const & get_y(size_t j) const { return y_values[col_num[j]];} + xy_type const & get_y(size_t j) const { return y_values[col_num[j]]; } + + /// Returns the vector of y values + std::vector const & get_y_values() const { return y_values; } /** det M of the current state of the matrix. */ value_type determinant() const {return sign*det;} @@ -807,7 +813,7 @@ namespace triqs { namespace det_manip { } /// - enum RollDirection {None,Up, Down,Left,Right}; + enum RollDirection {None,Up,Down,Left,Right}; /** * "Cyclic Rolling" of the determinant.