Loading src/ContinuedFraction.h +5 −3 Original line number Diff line number Diff line Loading @@ -180,7 +180,8 @@ public: ComplexType iOfOmega(const ComplexType& z,RealType offset,int isign) const { if (weight_==0) return ComplexType(0,0); if (PsimagLite::real(weight_) == 0 && PsimagLite::imag(weight_) == 0) return ComplexType(0,0); ComplexType sum = 0; for (SizeType l=0;l<intensity_.size();l++) Loading @@ -197,7 +198,8 @@ private: void diagonalize() { if (weight_==0) return; if (PsimagLite::real(weight_) == 0 && PsimagLite::imag(weight_) == 0) return; MatrixType T; ab_.buildDenseMatrix(T); eigs_.resize(T.rows()); Loading @@ -217,7 +219,7 @@ private: FreqEnum freqEnum_; TridiagonalMatrixType ab_; RealType Eg_; RealType weight_; std::complex<RealType> weight_; int isign_; typename Vector<RealType>::Type eigs_; typename Vector<RealType>::Type intensity_; Loading src/Io/IoSimple.h +2 −1 Original line number Diff line number Diff line Loading @@ -95,7 +95,8 @@ class IoSimple { template<typename T> struct PrintWithEqualSign { enum { True = Loki::TypeTraits<T>::isArith || std::is_enum<T>::value }; enum { True = Loki::TypeTraits<T>::isArith || std::is_enum<T>::value || IsComplexNumber<T>::True}; }; public: Loading Loading
src/ContinuedFraction.h +5 −3 Original line number Diff line number Diff line Loading @@ -180,7 +180,8 @@ public: ComplexType iOfOmega(const ComplexType& z,RealType offset,int isign) const { if (weight_==0) return ComplexType(0,0); if (PsimagLite::real(weight_) == 0 && PsimagLite::imag(weight_) == 0) return ComplexType(0,0); ComplexType sum = 0; for (SizeType l=0;l<intensity_.size();l++) Loading @@ -197,7 +198,8 @@ private: void diagonalize() { if (weight_==0) return; if (PsimagLite::real(weight_) == 0 && PsimagLite::imag(weight_) == 0) return; MatrixType T; ab_.buildDenseMatrix(T); eigs_.resize(T.rows()); Loading @@ -217,7 +219,7 @@ private: FreqEnum freqEnum_; TridiagonalMatrixType ab_; RealType Eg_; RealType weight_; std::complex<RealType> weight_; int isign_; typename Vector<RealType>::Type eigs_; typename Vector<RealType>::Type intensity_; Loading
src/Io/IoSimple.h +2 −1 Original line number Diff line number Diff line Loading @@ -95,7 +95,8 @@ class IoSimple { template<typename T> struct PrintWithEqualSign { enum { True = Loki::TypeTraits<T>::isArith || std::is_enum<T>::value }; enum { True = Loki::TypeTraits<T>::isArith || std::is_enum<T>::value || IsComplexNumber<T>::True}; }; public: Loading