Blaze
3.9
Toggle main menu visibility
Loading...
Searching...
No Matches
blaze
math
constraints
MatMatMultExpr.h
Go to the documentation of this file.
1
//=================================================================================================
33
//=================================================================================================
34
35
#ifndef _BLAZE_MATH_CONSTRAINTS_MATMATMULTEXPR_H_
36
#define _BLAZE_MATH_CONSTRAINTS_MATMATMULTEXPR_H_
37
38
39
//*************************************************************************************************
40
// Includes
41
//*************************************************************************************************
42
43
#include <
blaze/math/typetraits/IsMatMatMultExpr.h
>
44
#include <
blaze/math/typetraits/IsMatrix.h
>
45
#include <
blaze/math/typetraits/Size.h
>
46
47
48
namespace
blaze {
49
50
//=================================================================================================
51
//
52
// MUST_BE_MATMATMULTEXPR_TYPE CONSTRAINT
53
//
54
//=================================================================================================
55
56
//*************************************************************************************************
63
#define BLAZE_CONSTRAINT_MUST_BE_MATMATMULTEXPR_TYPE(T) \
64
static_assert( ::blaze::IsMatMatMultExpr_v<T>, "Non-matrix/matrix multiplication expression type detected" )
65
//*************************************************************************************************
66
67
68
69
70
//=================================================================================================
71
//
72
// MUST_NOT_BE_MATMATMULTEXPR_TYPE CONSTRAINT
73
//
74
//=================================================================================================
75
76
//*************************************************************************************************
83
#define BLAZE_CONSTRAINT_MUST_NOT_BE_MATMATMULTEXPR_TYPE(T) \
84
static_assert( !::blaze::IsMatMatMultExpr_v<T>, "Matrix/matrix multiplication expression type detected" )
85
//*************************************************************************************************
86
87
88
89
90
//=================================================================================================
91
//
92
// MUST_FORM_VALID_MATMATMULTEXPR CONSTRAINT
93
//
94
//=================================================================================================
95
96
//*************************************************************************************************
103
#define BLAZE_CONSTRAINT_MUST_FORM_VALID_MATMATMULTEXPR(T1,T2) \
104
static_assert( ::blaze::IsMatrix_v<T1> && \
105
::blaze::IsMatrix_v<T2> && \
106
( ( ::blaze::Size_v<T1,1UL> == -1L ) || \
107
( ::blaze::Size_v<T2,0UL> == -1L ) || \
108
( ::blaze::Size_v<T1,1UL> == ::blaze::Size_v<T2,0UL> ) ) \
109
, "Invalid matrix/matrix multiplication expression detected" )
110
//*************************************************************************************************
111
112
}
// namespace blaze
113
114
#endif
IsMatMatMultExpr.h
Header file for the IsMatMatMultExpr type trait class.
IsMatrix.h
Header file for the IsMatrix type trait.
Size.h
Header file for the Size type trait.
Generated by
1.18.0