3
0
mirror of https://github.com/triqs/dft_tools synced 2025-01-12 05:58:18 +01:00

Added linear_to_index to matsub_freq

This commit is contained in:
tayral 2014-03-21 18:13:01 +00:00
parent 91dc34a869
commit 7752db89c2

View File

@ -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;}