Blaze
3.9
Toggle main menu visibility
Loading...
Searching...
No Matches
blaze
math
functors
L4Norm.h
Go to the documentation of this file.
1
//=================================================================================================
33
//=================================================================================================
34
35
#ifndef _BLAZE_MATH_FUNCTORS_L4NORM_H_
36
#define _BLAZE_MATH_FUNCTORS_L4NORM_H_
37
38
39
//*************************************************************************************************
40
// Includes
41
//*************************************************************************************************
42
43
#include <utility>
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
L4Norm
61
{
62
//**********************************************************************************************
68
template
<
typename
T >
69
BLAZE_ALWAYS_INLINE
BLAZE_DEVICE_CALLABLE
decltype
(
auto
)
operator
()( T&& a )
const
70
{
71
return
l4Norm
( std::forward<T>( a ) );
72
}
73
//**********************************************************************************************
74
};
75
//*************************************************************************************************
76
77
}
// namespace blaze
78
79
#endif
HostDevice.h
Macro for CUDA compatibility.
blaze::l4Norm
decltype(auto) l4Norm(const DenseMatrix< MT, SO > &dm)
Computes the L4 norm for the given dense matrix.
Definition
DMatNormExpr.h:703
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::L4Norm
Generic wrapper for the l4Norm() function.
Definition
L4Norm.h:61
Inline.h
System settings for the inline keywords.
Generated by
1.18.0