Blaze 3.9
Square.h
Go to the documentation of this file.
1//=================================================================================================
33//=================================================================================================
34
35#ifndef _BLAZE_MATH_CONSTRAINTS_SQUARE_H_
36#define _BLAZE_MATH_CONSTRAINTS_SQUARE_H_
37
38
39//*************************************************************************************************
40// Includes
41//*************************************************************************************************
42
44
45
46namespace blaze {
47
48//=================================================================================================
49//
50// MUST_BE_SQUARE_MATRIX_TYPE CONSTRAINT
51//
52//=================================================================================================
53
54//*************************************************************************************************
60#define BLAZE_CONSTRAINT_MUST_BE_SQUARE_MATRIX_TYPE(T) \
61 static_assert( ::blaze::IsSquare_v<T>, "Non-square matrix type detected" )
62//*************************************************************************************************
63
64
65
66
67//=================================================================================================
68//
69// MUST_NOT_BE_SQUARE_MATRIX_TYPE CONSTRAINT
70//
71//=================================================================================================
72
73//*************************************************************************************************
79#define BLAZE_CONSTRAINT_MUST_NOT_BE_SQUARE_MATRIX_TYPE(T) \
80 static_assert( !::blaze::IsSquare_v<T>, "Square matrix type detected" )
81//*************************************************************************************************
82
83} // namespace blaze
84
85#endif
Header file for the IsSquare type trait.