Serial.h
Go to the documentation of this file.
1 //=================================================================================================
33 //=================================================================================================
34 
35 #ifndef _BLAZE_MATH_SHIMS_SERIAL_H_
36 #define _BLAZE_MATH_SHIMS_SERIAL_H_
37 
38 
39 //*************************************************************************************************
40 // Includes
41 //*************************************************************************************************
42 
43 #include <blaze/util/EnableIf.h>
44 #include <blaze/util/mpl/Or.h>
47 
48 
49 namespace blaze {
50 
51 //=================================================================================================
52 //
53 // SERIAL SHIM
54 //
55 //=================================================================================================
56 
57 //*************************************************************************************************
68 template< typename T >
69 inline typename EnableIf< Or< IsBuiltin<T>, IsComplex<T> >, const T& >::Type
70  serial( const T& a )
71 {
72  return a;
73 }
74 //*************************************************************************************************
75 
76 } // namespace blaze
77 
78 #endif
const DMatSerialExpr< MT, SO > serial(const DenseMatrix< MT, SO > &dm)
Forces the serial evaluation of the given dense matrix expression dm.
Definition: DMatSerialExpr.h:699
Namespace of the Blaze C++ math library.
Definition: Blaze.h:57
Header file for the Or class template.
Header file for the EnableIf class template.
Header file for the IsBuiltin type trait.
Header file for the IsComplex type trait.