35 #ifndef _BLAZE_MATH_CONSTRAINTS_MATVECMULTEXPR_H_
36 #define _BLAZE_MATH_CONSTRAINTS_MATVECMULTEXPR_H_
70 #define BLAZE_CONSTRAINT_MUST_BE_MATVECMULTEXPR_TYPE(T) \
71 static_assert( ::blaze::IsMatVecMultExpr<T>::value, "Non-matrix/vector multiplication expression type detected" )
90 #define BLAZE_CONSTRAINT_MUST_NOT_BE_MATVECMULTEXPR_TYPE(T) \
91 static_assert( !::blaze::IsMatVecMultExpr<T>::value, "Matrix/vector multiplication expression type detected" )
110 #define BLAZE_CONSTRAINT_MUST_FORM_VALID_MATVECMULTEXPR(T1,T2) \
111 static_assert( ::blaze::And< ::blaze::IsMatrix<T1> \
112 , ::blaze::IsColumnVector<T2> \
113 , ::blaze::Or< ::blaze::Equal< ::blaze::Columns<T1>, ::blaze::SizeT<0UL> > \
114 , ::blaze::Equal< ::blaze::Size<T2>, ::blaze::SizeT<0UL> > \
115 , ::blaze::Equal< ::blaze::Columns<T1>, ::blaze::Size<T2> > > \
116 >::value, "Invalid matrix/vector multiplication expression detected" )
135 #define BLAZE_CONSTRAINT_MUST_NOT_FORM_VALID_MATVECMULTEXPR(T1,T2) \
136 static_assert( ::blaze::Not< ::blaze::And< ::blaze::IsMatrix<T1> \
137 , ::blaze::IsColumnVector<T2> \
138 , ::blaze::Or< ::blaze::Equal< ::blaze::Columns<T1>, ::blaze::SizeT<0UL> > \
139 , ::blaze::Equal< ::blaze::Size<T2>, ::blaze::SizeT<0UL> > \
140 , ::blaze::Equal< ::blaze::Columns<T1>, ::blaze::Size<T2> > > > \
141 >::value, "Valid matrix/vector multiplication expression detected" )
Header file for the And class template.
Header file for the SizeT class template.
Header file for the IsMatVecMultExpr type trait class.
Header file for the IsMatrix type trait.
Namespace of the Blaze C++ math library.
Definition: Blaze.h:57
Header file for the Or class template.
Header file for the Columns type trait.
Header file for the Not class template.
Header file for the IsColumnVector type trait.
Header file for the Size type trait.
Header file for the Equal class template.