Blaze
3.9
Toggle main menu visibility
Loading...
Searching...
No Matches
blaze
math
functors
DivAssign.h
Go to the documentation of this file.
1
//=================================================================================================
33
//=================================================================================================
34
35
#ifndef _BLAZE_MATH_FUNCTORS_DIVASSIGN_H_
36
#define _BLAZE_MATH_FUNCTORS_DIVASSIGN_H_
37
38
39
//*************************************************************************************************
40
// Includes
41
//*************************************************************************************************
42
43
#include <
blaze/system/HostDevice.h
>
44
#include <
blaze/system/Inline.h
>
45
46
47
namespace
blaze {
48
49
//=================================================================================================
50
//
51
// CLASS DEFINITION
52
//
53
//=================================================================================================
54
55
//*************************************************************************************************
59
struct
DivAssign
60
{
61
//**********************************************************************************************
68
template
<
typename
T1,
typename
T2 >
69
BLAZE_ALWAYS_INLINE
BLAZE_DEVICE_CALLABLE
void
operator()
( T1& a,
const
T2& b )
const
70
{
71
a /= b;
72
}
73
//**********************************************************************************************
74
};
75
//*************************************************************************************************
76
77
}
// namespace blaze
78
79
#endif
HostDevice.h
Macro for CUDA compatibility.
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
blaze::DivAssign
Generic wrapper for division assignment.
Definition
DivAssign.h:60
blaze::DivAssign::operator()
BLAZE_ALWAYS_INLINE BLAZE_DEVICE_CALLABLE void operator()(T1 &a, const T2 &b) const
Performs a division assignment with the given objects/values.
Definition
DivAssign.h:69
Inline.h
System settings for the inline keywords.
Generated by
1.18.0