From 7752db89c2fb7bc00f37f32414d71724bf87a232 Mon Sep 17 00:00:00 2001 From: tayral Date: Fri, 21 Mar 2014 18:13:01 +0000 Subject: [PATCH] Added linear_to_index to matsub_freq --- triqs/gfs/meshes/matsubara_freq.hpp | 1 + 1 file changed, 1 insertion(+) diff --git a/triqs/gfs/meshes/matsubara_freq.hpp b/triqs/gfs/meshes/matsubara_freq.hpp index f189260f..1a82c430 100644 --- a/triqs/gfs/meshes/matsubara_freq.hpp +++ b/triqs/gfs/meshes/matsubara_freq.hpp @@ -73,6 +73,7 @@ namespace gfs { /// Flatten the index in the positive linear index for memory storage (almost trivial here). long index_to_linear(index_t ind) const { return ind - first_index(); } + index_t linear_to_index(long lind) const { return lind + first_index(); } /// Is the mesh only for positive omega_n (G(tau) real)) bool positive_only() const { return _positive_only;}