Commit e46e87fd authored by Alvarez, Gonzalo's avatar Alvarez, Gonzalo
Browse files

changes needed by YaSpinWave

parent d84b4ba3
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -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)
		{
+11 −1
Original line number Diff line number Diff line
@@ -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
+1 −1
Original line number Diff line number Diff line
@@ -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;
}