Skip to content

Commit

Permalink
Adapt the 'MatchSymmetric' class template to diagonal matrices
Browse files Browse the repository at this point in the history
  • Loading branch information
igl42 committed Apr 8, 2015
1 parent e45d05d commit df1cd18
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion blazetest/blazetest/mathtest/MatchSymmetric.h
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,9 @@
#include <blaze/math/constraints/Matrix.h>
#include <blaze/math/typetraits/IsSymmetric.h>
#include <blaze/math/typetraits/RemoveAdaptor.h>
#include <blaze/util/mpl/And.h>
#include <blaze/util/mpl/If.h>
#include <blaze/util/mpl/Not.h>


namespace blazetest {
Expand Down Expand Up @@ -72,7 +74,7 @@ struct MatchSymmetric
public:
//**********************************************************************************************
/*! \cond BLAZE_INTERNAL */
typedef typename blaze::If< blaze::IsSymmetric<T1>
typedef typename blaze::If< blaze::And< blaze::IsSymmetric<T1>, blaze::Not< blaze::IsDiagonal<T1> > >
, blaze::SymmetricMatrix< typename blaze::RemoveAdaptor<T2>::Type >
, T2
>::Type Type;
Expand Down

0 comments on commit df1cd18

Please sign in to comment.