fix conjugation in packet_lhs

This commit is contained in:
Gael Guennebaud
2012-02-05 18:18:38 +01:00
parent 4ed87c59c7
commit 6ad48c5d92
2 changed files with 8 additions and 4 deletions

View File

@@ -56,11 +56,15 @@ template<bool Conjugate> struct conj_if;
template<> struct conj_if<true> {
template<typename T>
inline T operator()(const T& x) { return conj(x); }
template<typename T>
inline T pconj(const T& x) { return internal::pconj(x); }
};
template<> struct conj_if<false> {
template<typename T>
inline const T& operator()(const T& x) { return x; }
template<typename T>
inline const T& pconj(const T& x) { return x; }
};
template<typename Scalar> struct conj_helper<Scalar,Scalar,false,false>