All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
IsDefault.h
Go to the documentation of this file.
1 //=================================================================================================
33 //=================================================================================================
34 
35 #ifndef _BLAZE_MATH_SHIMS_ISDEFAULT_H_
36 #define _BLAZE_MATH_SHIMS_ISDEFAULT_H_
37 
38 
39 namespace blaze {
40 
41 //=================================================================================================
42 //
43 // ISDEFAULT SHIM
44 //
45 //=================================================================================================
46 
47 //*************************************************************************************************
67 template< typename Type >
68 inline bool isDefault( const Type& v )
69 {
70  return v == Type();
71 }
72 //*************************************************************************************************
73 
74 } // namespace blaze
75 
76 #endif
bool isDefault(const DynamicMatrix< Type, SO > &m)
Returns whether the given dense matrix is in default state.
Definition: DynamicMatrix.h:4642