Blaze
3.9
Toggle main menu visibility
Loading...
Searching...
No Matches
blaze
math
shims
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/system/Inline.h
>
44
#include <
blaze/util/EnableIf.h
>
45
#include <
blaze/util/typetraits/IsBuiltin.h
>
46
#include <
blaze/util/typetraits/IsComplex.h
>
47
48
49
namespace
blaze {
50
51
//=================================================================================================
52
//
53
// SERIAL SHIM
54
//
55
//=================================================================================================
56
57
//*************************************************************************************************
68
template
<
typename
T >
69
BLAZE_ALWAYS_INLINE
constexpr
EnableIf_t< IsBuiltin_v<T>
||
IsComplex_v<T>
,
const
T& >
70
serial
(
const
T& a )
noexcept
71
{
72
return
a;
73
}
74
//*************************************************************************************************
75
76
}
// namespace blaze
77
78
#endif
EnableIf.h
Header file for the EnableIf class template.
IsBuiltin.h
Header file for the IsBuiltin type trait.
IsComplex.h
Header file for the IsComplex type trait.
blaze::serial
decltype(auto) serial(const DenseMatrix< MT, SO > &dm)
Forces the serial evaluation of the given dense matrix expression dm.
Definition
DMatSerialExpr.h:812
BLAZE_ALWAYS_INLINE
#define BLAZE_ALWAYS_INLINE
Platform dependent setup of an enforced inline keyword.
Definition
Inline.h:85
blaze::IsComplex_v
constexpr bool IsComplex_v
Auxiliary variable template for the IsComplex type trait.
Definition
IsComplex.h:139
blaze::EnableIf_t
typename EnableIf< Condition, T >::Type EnableIf_t
Auxiliary type for the EnableIf class template.
Definition
EnableIf.h:138
Inline.h
System settings for the inline keywords.
Generated by
1.18.0