Classes | Namespaces | Macros | Functions
packetmath.cpp File Reference
#include "packetmath_test_shared.h"
#include "random_without_cast_overflow.h"
Include dependency graph for packetmath.cpp:

Go to the source code of this file.

Classes

struct  eigen_optimization_barrier_test< Packet, EnableIf >
 
struct  eigen_optimization_barrier_test< Packet, typename internal::enable_if< !NumTraits< Packet >::IsComplex &&!internal::is_same< Packet, Eigen::half >::value &&!internal::is_same< Packet, Eigen::bfloat16 >::value >::type >
 
struct  packetmath_pcast_ops_runner< Scalar, Packet, EnableIf >
 
struct  packetmath_pcast_ops_runner< Scalar, Packet, typename internal::enable_if< NumTraits< Scalar >::IsComplex >::type >
 
struct  pcast_array< SrcPacket, TgtPacket, SrcCoeffRatio, TgtCoeffRatio >
 
struct  pcast_array< SrcPacket, TgtPacket, 1, TgtCoeffRatio >
 
struct  pcast_array< SrcPacket, TgtPacket, 2, 1 >
 
struct  pcast_array< SrcPacket, TgtPacket, 4, 1 >
 
struct  pcast_array< SrcPacket, TgtPacket, 8, 1 >
 
struct  Eigen::test::runall< Scalar, PacketType, false, false >
 
struct  Eigen::test::runall< Scalar, PacketType, false, true >
 
struct  Eigen::test::runall< Scalar, PacketType, true, false >
 
struct  test_cast< SrcPacket, TgtPacket >
 
struct  test_cast_helper< SrcPacket, TgtPacket, SrcCoeffRatio, TgtCoeffRatio, CanCast >
 
struct  test_cast_helper< SrcPacket, TgtPacket, SrcCoeffRatio, TgtCoeffRatio, false >
 
struct  test_cast_helper< SrcPacket, TgtPacket, SrcCoeffRatio, TgtCoeffRatio, true >
 
struct  test_cast_runner< Scalar, EnableIf >
 
struct  test_cast_runner< SrcPacket, TgtScalar, TgtPacket, false, false >
 
struct  test_cast_runner< SrcPacket, TgtScalar, TgtPacket, true, false >
 
struct  test_cast_runner< SrcPacket, TgtScalar, TgtPacket, true, true >
 

Namespaces

 Eigen
 Namespace containing all symbols from the Eigen library.
 
 Eigen::test
 

Macros

#define CAST_CHECK_CWISE1_IF(COND, REFOP, POP, SCALAR, REFTYPE)
 

Functions

 EIGEN_DECLARE_TEST (packetmath)
 
template<typename Scalar >
Scalar log2 (Scalar x)
 
template<typename Scalar , typename Packet >
void packetmath ()
 
template<typename Scalar , typename Packet >
void packetmath_boolean_mask_ops ()
 
template<typename Scalar , typename Packet >
void packetmath_boolean_mask_ops_notcomplex ()
 
template<typename Scalar , typename Packet >
void packetmath_boolean_mask_ops_real ()
 
template<typename Scalar , typename Packet >
void packetmath_complex ()
 
template<typename Scalar , typename Packet >
void packetmath_minus_zero_add ()
 
template<typename Scalar , typename Packet >
void packetmath_notcomplex ()
 
template<typename Scalar , typename Packet >
void packetmath_real ()
 
template<typename Scalar , typename Packet >
void packetmath_scatter_gather ()
 
template<typename Scalar >
Scalar propagate_nan_max (const Scalar &a, const Scalar &b)
 
template<typename Scalar >
Scalar propagate_nan_min (const Scalar &a, const Scalar &b)
 
template<typename Scalar >
Scalar propagate_number_max (const Scalar &a, const Scalar &b)
 
template<typename Scalar >
Scalar propagate_number_min (const Scalar &a, const Scalar &b)
 
template<typename T >
T REF_ABS_DIFF (const T &a, const T &b)
 
template<>
bool REF_ADD (const bool &a, const bool &b)
 
template<typename T >
T REF_ADD (const T &a, const T &b)
 
template<typename T >
T REF_DIV (const T &a, const T &b)
 
template<typename T >
T REF_FREXP (const T &x, T &exp)
 
template<typename T >
T REF_LDEXP (const T &x, const T &exp)
 
template<>
bool REF_MUL (const bool &a, const bool &b)
 
template<typename T >
T REF_MUL (const T &a, const T &b)
 
template<>
bool REF_SUB (const bool &a, const bool &b)
 
template<typename T >
T REF_SUB (const T &a, const T &b)
 
template<typename Scalar , typename Packet , bool ConjLhs, bool ConjRhs>
void test_conj_helper (Scalar *data1, Scalar *data2, Scalar *ref, Scalar *pval)
 

Macro Definition Documentation

◆ CAST_CHECK_CWISE1_IF

#define CAST_CHECK_CWISE1_IF (   COND,
  REFOP,
  POP,
  SCALAR,
  REFTYPE 
)
Value:
if(COND) { \
test::packet_helper<COND,Packet> h; \
for (int i=0; i<PacketSize; ++i) \
ref[i] = SCALAR(REFOP(static_cast<REFTYPE>(data1[i]))); \
h.store(data2, POP(h.load(data1))); \
VERIFY(test::areApprox(ref, data2, PacketSize) && #POP); \
}

Definition at line 977 of file packetmath.cpp.

Function Documentation

◆ EIGEN_DECLARE_TEST()

EIGEN_DECLARE_TEST ( packetmath  )

Definition at line 1282 of file packetmath.cpp.

◆ log2()

template<typename Scalar >
Scalar log2 ( Scalar  x)

Definition at line 624 of file packetmath.cpp.

◆ packetmath()

template<typename Scalar , typename Packet >
void packetmath ( )

Definition at line 392 of file packetmath.cpp.

◆ packetmath_boolean_mask_ops()

template<typename Scalar , typename Packet >
void packetmath_boolean_mask_ops ( )

Definition at line 248 of file packetmath.cpp.

◆ packetmath_boolean_mask_ops_notcomplex()

template<typename Scalar , typename Packet >
void packetmath_boolean_mask_ops_notcomplex ( )

Definition at line 313 of file packetmath.cpp.

◆ packetmath_boolean_mask_ops_real()

template<typename Scalar , typename Packet >
void packetmath_boolean_mask_ops_real ( )

Definition at line 283 of file packetmath.cpp.

◆ packetmath_complex()

template<typename Scalar , typename Packet >
void packetmath_complex ( )

Definition at line 1140 of file packetmath.cpp.

◆ packetmath_minus_zero_add()

template<typename Scalar , typename Packet >
void packetmath_minus_zero_add ( )

Definition at line 353 of file packetmath.cpp.

◆ packetmath_notcomplex()

template<typename Scalar , typename Packet >
void packetmath_notcomplex ( )

Definition at line 1014 of file packetmath.cpp.

◆ packetmath_real()

template<typename Scalar , typename Packet >
void packetmath_real ( )

Definition at line 629 of file packetmath.cpp.

◆ packetmath_scatter_gather()

template<typename Scalar , typename Packet >
void packetmath_scatter_gather ( )

Definition at line 1213 of file packetmath.cpp.

◆ propagate_nan_max()

template<typename Scalar >
Scalar propagate_nan_max ( const Scalar a,
const Scalar b 
)

Definition at line 986 of file packetmath.cpp.

◆ propagate_nan_min()

template<typename Scalar >
Scalar propagate_nan_min ( const Scalar a,
const Scalar b 
)

Definition at line 993 of file packetmath.cpp.

◆ propagate_number_max()

template<typename Scalar >
Scalar propagate_number_max ( const Scalar a,
const Scalar b 
)

Definition at line 1000 of file packetmath.cpp.

◆ propagate_number_min()

template<typename Scalar >
Scalar propagate_number_min ( const Scalar a,
const Scalar b 
)

Definition at line 1007 of file packetmath.cpp.

◆ REF_ABS_DIFF()

template<typename T >
T REF_ABS_DIFF ( const T a,
const T b 
)
inline

Definition at line 31 of file packetmath.cpp.

◆ REF_ADD() [1/2]

template<>
bool REF_ADD ( const bool &  a,
const bool &  b 
)
inline

Definition at line 37 of file packetmath.cpp.

◆ REF_ADD() [2/2]

template<typename T >
T REF_ADD ( const T a,
const T b 
)
inline

Definition at line 15 of file packetmath.cpp.

◆ REF_DIV()

template<typename T >
T REF_DIV ( const T a,
const T b 
)
inline

Definition at line 27 of file packetmath.cpp.

◆ REF_FREXP()

template<typename T >
T REF_FREXP ( const T x,
T exp 
)
inline

Definition at line 50 of file packetmath.cpp.

◆ REF_LDEXP()

template<typename T >
T REF_LDEXP ( const T x,
const T exp 
)
inline

Definition at line 59 of file packetmath.cpp.

◆ REF_MUL() [1/2]

template<>
bool REF_MUL ( const bool &  a,
const bool &  b 
)
inline

Definition at line 45 of file packetmath.cpp.

◆ REF_MUL() [2/2]

template<typename T >
T REF_MUL ( const T a,
const T b 
)
inline

Definition at line 23 of file packetmath.cpp.

◆ REF_SUB() [1/2]

template<>
bool REF_SUB ( const bool &  a,
const bool &  b 
)
inline

Definition at line 41 of file packetmath.cpp.

◆ REF_SUB() [2/2]

template<typename T >
T REF_SUB ( const T a,
const T b 
)
inline

Definition at line 19 of file packetmath.cpp.

◆ test_conj_helper()

template<typename Scalar , typename Packet , bool ConjLhs, bool ConjRhs>
void test_conj_helper ( Scalar data1,
Scalar data2,
Scalar ref,
Scalar pval 
)

Definition at line 1114 of file packetmath.cpp.

h
const double h
Definition: testSimpleHelicopter.cpp:19
Eigen::test::areApprox
bool areApprox(const Scalar *a, const Scalar *b, int size)
Definition: packetmath_test_shared.h:99
SCALAR
#define SCALAR
Definition: bench_gemm.cpp:23
ref
Reference counting helper.
Definition: object.h:67
i
int i
Definition: BiCGSTAB_step_by_step.cpp:9


gtsam
Author(s):
autogenerated on Fri Nov 1 2024 03:43:20