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