Blaze
3.9
Toggle main menu visibility
Loading...
Searching...
No Matches
blaze
math
typetraits
IsInvertible.h
Go to the documentation of this file.
1
//=================================================================================================
33
//=================================================================================================
34
35
#ifndef _BLAZE_MATH_TYPETRAITS_ISINVERTIBLE_H_
36
#define _BLAZE_MATH_TYPETRAITS_ISINVERTIBLE_H_
37
38
39
//*************************************************************************************************
40
// Includes
41
//*************************************************************************************************
42
43
#include <
blaze/math/typetraits/IsBLASCompatible.h
>
44
#include <
blaze/math/typetraits/IsDenseMatrix.h
>
45
#include <
blaze/math/typetraits/IsScalar.h
>
46
#include <
blaze/math/typetraits/UnderlyingElement.h
>
47
#include <
blaze/util/IntegralConstant.h
>
48
#include <
blaze/util/typetraits/IsFloatingPoint.h
>
49
50
51
namespace
blaze {
52
53
//=================================================================================================
54
//
55
// CLASS DEFINITION
56
//
57
//=================================================================================================
58
59
//*************************************************************************************************
81
template
<
typename
T >
82
struct
IsInvertible
83
:
public
BoolConstant
< ( IsScalar_v<T> && IsFloatingPoint_v< UnderlyingElement_t<T> > ) ||
84
( IsDenseMatrix_v<T> && IsBLASCompatible_v< UnderlyingElement_t<T> > ) >
85
{};
86
//*************************************************************************************************
87
88
89
//*************************************************************************************************
102
template
<
typename
T >
103
constexpr
bool
IsInvertible_v
=
IsInvertible<T>::value
;
104
//*************************************************************************************************
105
106
}
// namespace blaze
107
108
#endif
IntegralConstant.h
Header file for the IntegralConstant class template.
IsBLASCompatible.h
Header file for the IsBLASCompatible type trait.
IsDenseMatrix.h
Header file for the IsDenseMatrix type trait.
IsFloatingPoint.h
Header file for the IsFloatingPoint type trait.
IsScalar.h
Header file for the IsScalar type trait.
UnderlyingElement.h
Header file for the UnderlyingElement type trait.
blaze::IsInvertible_v
constexpr bool IsInvertible_v
Auxiliary variable template for the IsInvertible type trait.
Definition
IsInvertible.h:103
blaze::BoolConstant
IntegralConstant< bool, B > BoolConstant
Generic wrapper for a compile time constant boolean value.
Definition
IntegralConstant.h:110
blaze::IsInvertible
Compile time check for data types.
Definition
IsInvertible.h:85
Generated by
1.18.0