35 #ifndef _BLAZE_MATH_FUNCTORS_LOG2_H_ 36 #define _BLAZE_MATH_FUNCTORS_LOG2_H_ 81 template<
typename T >
93 template<
typename T >
94 static constexpr
bool simdEnabled() {
return HasSIMDLog2_v<T>; }
111 template<
typename T >
132 template<
typename T >
133 struct YieldsUniform<Log2,T>
134 :
public IsUniform<T>
150 template<
typename MT >
151 struct YieldsSymmetric<Log2,MT>
152 :
public IsSymmetric<MT>
Header file for the SIMD binary (base-2) logarithm functionality.
static constexpr bool paddingEnabled()
Returns whether the operation supports padding, i.e. whether it can deal with zeros.
Definition: Log2.h:102
#define BLAZE_CONSTRAINT_MUST_BE_SIMD_PACK(T)
Constraint on the data type.In case the given data type T is not a SIMD pack, a compilation error is ...
Definition: SIMDPack.h:60
Log2()
Default constructor of the Log2 functor.
Definition: Log2.h:71
Header file for the IsSymmetric type trait.
Namespace of the Blaze C++ math library.
Definition: Blaze.h:58
#define BLAZE_ALWAYS_INLINE
Platform dependent setup of an enforced inline keyword.
Definition: Inline.h:85
Header file for the log2 shim.
Constraint on the data type.
decltype(auto) BLAZE_ALWAYS_INLINE load(const T &a) const
Returns the result of the log2() function for the given SIMD vector.
Definition: Log2.h:112
Header file for the YieldsSymmetric type trait.
Header file for the HasSIMDLog2 type trait.
static constexpr bool simdEnabled()
Returns whether SIMD is enabled for the specified data type T.
Definition: Log2.h:94
Generic wrapper for the log2() function.
Definition: Log2.h:66
decltype(auto) log2(const DenseMatrix< MT, SO > &dm)
Computes the binary logarithm for each single element of the dense matrix dm.
Definition: DMatMapExpr.h:1765
System settings for the inline keywords.