Blaze 3.9
Loading...
Searching...
No Matches
IsSparseMatrix.h
Go to the documentation of this file.
1//=================================================================================================
33//=================================================================================================
34
35#ifndef _BLAZE_MATH_TYPETRAITS_ISSPARSEMATRIX_H_
36#define _BLAZE_MATH_TYPETRAITS_ISSPARSEMATRIX_H_
37
38
39//*************************************************************************************************
40// Includes
41//*************************************************************************************************
42
43#include <utility>
46
47
48namespace blaze {
49
50//=================================================================================================
51//
52// CLASS DEFINITION
53//
54//=================================================================================================
55
56//*************************************************************************************************
61template< typename MT, bool SO >
62TrueType isSparseMatrix_backend( const volatile SparseMatrix<MT,SO>* );
63
64FalseType isSparseMatrix_backend( ... );
66//*************************************************************************************************
67
68
69//*************************************************************************************************
90template< typename T >
92 : public decltype( isSparseMatrix_backend( std::declval<T*>() ) )
93{};
94//*************************************************************************************************
95
96
97//*************************************************************************************************
102template< typename T >
103struct IsSparseMatrix<T&>
104 : public FalseType
105{};
107//*************************************************************************************************
108
109
110//*************************************************************************************************
123template< typename T >
125//*************************************************************************************************
126
127} // namespace blaze
128
129#endif
Header file for the IntegralConstant class template.
Base class for sparse matrices.
Definition SparseMatrix.h:77
constexpr bool IsSparseMatrix_v
Auxiliary variable template for the IsSparseMatrix type trait.
Definition IsSparseMatrix.h:124
BoolConstant< false > FalseType
Type/value traits base class.
Definition IntegralConstant.h:121
BoolConstant< true > TrueType
Type traits base class.
Definition IntegralConstant.h:132
Header file for all forward declarations for expression class templates.
Compile time check for sparse matrix types.
Definition IsSparseMatrix.h:93