Blaze
3.9
Toggle main menu visibility
Loading...
Searching...
No Matches
blaze
math
functors
Serial.h
Go to the documentation of this file.
1
//=================================================================================================
33
//=================================================================================================
34
35
#ifndef _BLAZE_MATH_FUNCTORS_SERIAL_H_
36
#define _BLAZE_MATH_FUNCTORS_SERIAL_H_
37
38
39
//*************************************************************************************************
40
// Includes
41
//*************************************************************************************************
42
43
#include <utility>
44
#include <
blaze/math/shims/Serial.h
>
45
#include <
blaze/system/HostDevice.h
>
46
#include <
blaze/system/Inline.h
>
47
48
49
namespace
blaze {
50
51
//=================================================================================================
52
//
53
// CLASS DEFINITION
54
//
55
//=================================================================================================
56
57
//*************************************************************************************************
61
struct
Serial
62
{
63
//**********************************************************************************************
69
template
<
typename
T >
70
BLAZE_ALWAYS_INLINE
BLAZE_DEVICE_CALLABLE
decltype
(
auto
)
operator
()( T&& a )
const
71
{
72
return
serial
( std::forward<T>( a ) );
73
}
74
//**********************************************************************************************
75
};
76
//*************************************************************************************************
77
78
}
// namespace blaze
79
80
#endif
HostDevice.h
Macro for CUDA compatibility.
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_DEVICE_CALLABLE
#define BLAZE_DEVICE_CALLABLE
Conditional macro that sets host and device attributes when compiled with CUDA.
Definition
HostDevice.h:94
Serial.h
Header file for the serial shim.
blaze::Serial
Generic wrapper for the Serial() function.
Definition
Serial.h:62
Inline.h
System settings for the inline keywords.
Generated by
1.18.0