Blaze
3.9
Toggle main menu visibility
Loading...
Searching...
No Matches
blaze
math
functors
Reset.h
Go to the documentation of this file.
1
//=================================================================================================
33
//=================================================================================================
34
35
#ifndef _BLAZE_MATH_FUNCTORS_RESET_H_
36
#define _BLAZE_MATH_FUNCTORS_RESET_H_
37
38
39
//*************************************************************************************************
40
// Includes
41
//*************************************************************************************************
42
43
#include <
blaze/math/shims/Reset.h
>
44
#include <
blaze/system/HostDevice.h
>
45
#include <
blaze/system/Inline.h
>
46
47
48
namespace
blaze {
49
50
//=================================================================================================
51
//
52
// CLASS DEFINITION
53
//
54
//=================================================================================================
55
56
//*************************************************************************************************
60
struct
Reset
61
{
62
//**********************************************************************************************
68
template
<
typename
T >
69
BLAZE_ALWAYS_INLINE
BLAZE_DEVICE_CALLABLE
void
operator()
( T& a )
const
70
{
71
reset
( a );
72
}
73
//**********************************************************************************************
74
};
75
//*************************************************************************************************
76
77
}
// namespace blaze
78
79
#endif
HostDevice.h
Macro for CUDA compatibility.
blaze::reset
constexpr void reset(Matrix< MT, SO > &matrix)
Resetting the given matrix.
Definition
Matrix.h:806
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
Reset.h
Header file for the reset shim.
blaze::Reset
Generic wrapper for the reset() function.
Definition
Reset.h:61
blaze::Reset::operator()
BLAZE_ALWAYS_INLINE BLAZE_DEVICE_CALLABLE void operator()(T &a) const
Returns the result of the reset() function for the given object/value.
Definition
Reset.h:69
Inline.h
System settings for the inline keywords.
Generated by
1.18.0