diff options
author | Chen-Pang He <jdh8@ms63.hinet.net> | 2012-09-09 21:35:28 +0800 |
---|---|---|
committer | Chen-Pang He <jdh8@ms63.hinet.net> | 2012-09-09 21:35:28 +0800 |
commit | 2828c995c55891b0769b6a4cf3a9e99fe53b01d3 (patch) | |
tree | d89fe694bb5d272485bde1dad4bd6fb8dc461e25 /blas/PackedSelfadjointProduct.h | |
parent | 669db3d7768b3b94d31d6552a1012ee29f54b8d8 (diff) |
Use conj_expr_if to clarify what it's doing.
Diffstat (limited to 'blas/PackedSelfadjointProduct.h')
-rw-r--r-- | blas/PackedSelfadjointProduct.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/blas/PackedSelfadjointProduct.h b/blas/PackedSelfadjointProduct.h index adc86ece1..1ba67b9c1 100644 --- a/blas/PackedSelfadjointProduct.h +++ b/blas/PackedSelfadjointProduct.h @@ -17,9 +17,9 @@ namespace internal { * * FIXME I always fail tests for complex self-adjoint matrices. * - ******* FATAL ERROR - PARAMETER NUMBER 6 WAS CHANGED INCORRECTLY ******* - ******* xHPR FAILED ON CALL NUMBER: - 2: xHPR ('U', 1, 0.0, X, 1, AP) + * ******* FATAL ERROR - PARAMETER NUMBER 6 WAS CHANGED INCORRECTLY ******* + * ******* xHPR FAILED ON CALL NUMBER: + * 2: xHPR ('U', 1, 0.0, X, 1, AP) */ template<typename Scalar, typename Index, int StorageOrder, int UpLo, bool ConjLhs, bool ConjRhs> struct selfadjoint_packed_rank1_update; @@ -29,9 +29,9 @@ struct selfadjoint_packed_rank1_update<Scalar,Index,ColMajor,UpLo,ConjLhs,ConjRh { static void run(Index size, Scalar* mat, const Scalar* vec, Scalar alpha) { - internal::conj_if<ConjRhs> cj; typedef Map<const Matrix<Scalar,Dynamic,1> > OtherMap; - typedef typename internal::conditional<ConjLhs,typename OtherMap::ConjugateReturnType,const OtherMap&>::type ConjRhsType; + typedef typename conj_expr_if<ConjLhs,OtherMap>::type ConjRhsType; + conj_if<ConjRhs> cj; Index offset = 0; for (Index i=0; i<size; ++i) |