From df1cd18a0ae1ac3495cc94ef30fc3a6520ddc87b Mon Sep 17 00:00:00 2001 From: Klaus Iglberger Date: Wed, 8 Apr 2015 04:40:56 +0200 Subject: [PATCH] Adapt the 'MatchSymmetric' class template to diagonal matrices --- blazetest/blazetest/mathtest/MatchSymmetric.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/blazetest/blazetest/mathtest/MatchSymmetric.h b/blazetest/blazetest/mathtest/MatchSymmetric.h index 60d71117..0d0d49d3 100644 --- a/blazetest/blazetest/mathtest/MatchSymmetric.h +++ b/blazetest/blazetest/mathtest/MatchSymmetric.h @@ -44,7 +44,9 @@ #include #include #include +#include #include +#include namespace blazetest { @@ -72,7 +74,7 @@ struct MatchSymmetric public: //********************************************************************************************** /*! \cond BLAZE_INTERNAL */ - typedef typename blaze::If< blaze::IsSymmetric + typedef typename blaze::If< blaze::And< blaze::IsSymmetric, blaze::Not< blaze::IsDiagonal > > , blaze::SymmetricMatrix< typename blaze::RemoveAdaptor::Type > , T2 >::Type Type;