From 625a97a466b0d25cd3d21e8a732f0c7754f1a42a Mon Sep 17 00:00:00 2001 From: Michael Marshall <43034299+mmphys@users.noreply.github.com> Date: Mon, 25 Mar 2019 18:16:04 +0000 Subject: [PATCH] cosmetic --- Grid/util/EigenUtil.h | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-) diff --git a/Grid/util/EigenUtil.h b/Grid/util/EigenUtil.h index 57c6cbd6..63a0a860 100644 --- a/Grid/util/EigenUtil.h +++ b/Grid/util/EigenUtil.h @@ -78,7 +78,7 @@ namespace Grid { } inline bool operator!=(const TensorIterator_raw &r) { return pET == nullptr || pET != r.pET || position != r.position; } - // These functions aren't rerquired for iterators, but they make using them easier + // These functions aren't required for iterators, but they make using them easier inline bool AtEnd() { return position == end; } inline void DumpIndex(void) { for( auto dim : indexPos ) @@ -251,23 +251,11 @@ namespace Grid { for( int i = 0 ; i < rank; i++ ) std::cout << "[" << dims[i] << "]"; for( int i = 0 ; i < Traits::Rank; i++ ) std::cout << "(" << Traits::Dimension(i) << ")"; std::cout << " in memory order:" << std::endl; -#ifdef OLD_DEFINITION - for_all( t, [&](scalar_type &c, Index n, const std::array &TensorIndex, - const std::array &ScalarIndex ){ - std::cout << " "; - for( auto dim : TensorIndex ) - std::cout << "[" << dim << "]"; - for( auto dim : ScalarIndex ) - std::cout << "(" << dim << ")"; - std::cout << " = " << c << std::endl; - } ); -#else for( auto it = begin(t); !it.AtEnd(); ++it ) { std::cout << " "; it.DumpIndex(); std::cout << " = " << (const typename T::Scalar)(*it) << std::endl; } -#endif std::cout << "========================================" << std::endl; }