Loading src/Io/IoSimple.h +7 −0 Original line number Diff line number Diff line Loading @@ -210,6 +210,13 @@ public: fout_->precision(x); } SizeType precision(SizeType x) { if (!fout_) return x; fout_->precision(x); return x; } template<typename X> friend Out& operator<<(Out& io, const X& t) { Loading src/Minimizer.h +11 −1 Original line number Diff line number Diff line Loading @@ -272,6 +272,16 @@ public: throw RuntimeError(str); } int conjugateGradient(VectorType&, RealType = 1e-3, RealType = 1e-3, RealType = 1e-3, SizeType = 0) { String str("Minimizer needs the gsl\n"); throw RuntimeError(str); } int status() const { return 1; } String statusString() const Loading src/Vector.h +1 −1 Original line number Diff line number Diff line Loading @@ -382,7 +382,7 @@ T scalarProduct(const vector<T,A>& v1, const vector<T,A>& v2) { T result = 0.0; for (SizeType i=0; i < v2.size(); i++) result += conj(v1[i]) * v2[i]; result += PsimagLite::conj(v1[i]) * v2[i]; return result; } Loading Loading
src/Io/IoSimple.h +7 −0 Original line number Diff line number Diff line Loading @@ -210,6 +210,13 @@ public: fout_->precision(x); } SizeType precision(SizeType x) { if (!fout_) return x; fout_->precision(x); return x; } template<typename X> friend Out& operator<<(Out& io, const X& t) { Loading
src/Minimizer.h +11 −1 Original line number Diff line number Diff line Loading @@ -272,6 +272,16 @@ public: throw RuntimeError(str); } int conjugateGradient(VectorType&, RealType = 1e-3, RealType = 1e-3, RealType = 1e-3, SizeType = 0) { String str("Minimizer needs the gsl\n"); throw RuntimeError(str); } int status() const { return 1; } String statusString() const Loading
src/Vector.h +1 −1 Original line number Diff line number Diff line Loading @@ -382,7 +382,7 @@ T scalarProduct(const vector<T,A>& v1, const vector<T,A>& v2) { T result = 0.0; for (SizeType i=0; i < v2.size(); i++) result += conj(v1[i]) * v2[i]; result += PsimagLite::conj(v1[i]) * v2[i]; return result; } Loading