Classes | Namespaces | Macros | Functions | Variables
packetmath.cpp File Reference
#include "main.h"
#include "unsupported/Eigen/SpecialFunctions"
Include dependency graph for packetmath.cpp:

Go to the source code of this file.

Classes

struct  packet_helper< Cond, Packet >
 
struct  packet_helper< false, Packet >
 

Namespaces

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

Macros

#define CHECK_CWISE1(REFOP, POP)
 
#define CHECK_CWISE1_IF(COND, REFOP, POP)
 
#define CHECK_CWISE2_IF(COND, REFOP, POP)
 
#define REF_ADD(a, b)   ((a)+(b))
 
#define REF_DIV(a, b)   ((a)/(b))
 
#define REF_MUL(a, b)   ((a)*(b))
 
#define REF_SUB(a, b)   ((a)-(b))
 

Functions

template<typename Scalar >
bool areApprox (const Scalar *a, const Scalar *b, int size)
 
template<typename Scalar >
bool areApproxAbs (const Scalar *a, const Scalar *b, int size, const typename NumTraits< Scalar >::Real &refvalue)
 
template<typename Scalar >
EIGEN_DONT_INLINE bool isApproxAbs (const Scalar &a, const Scalar &b, const typename NumTraits< Scalar >::Real &refvalue)
 
template<typename T >
T Eigen::internal::negate (const T &x)
 
template<typename Scalar >
void packetmath ()
 
template<typename Scalar >
void packetmath_complex ()
 
template<typename Scalar >
void packetmath_notcomplex ()
 
template<typename Scalar >
void packetmath_real ()
 
template<typename Scalar >
void packetmath_scatter_gather ()
 
template<typename Scalar , bool ConjLhs, bool ConjRhs>
void test_conj_helper (Scalar *data1, Scalar *data2, Scalar *ref, Scalar *pval)
 
void test_packetmath ()
 

Variables

const bool g_vectorize_sse = false
 

Macro Definition Documentation

#define CHECK_CWISE1 (   REFOP,
  POP 
)
Value:
{ \
for (int i=0; i<PacketSize; ++i) \
ref[i] = REFOP(data1[i]); \
internal::pstore(data2, POP(internal::pload<Packet>(data1))); \
VERIFY(areApprox(ref, data2, PacketSize) && #POP); \
}
for(size_t i=1;i< poses.size();++i)
bool areApprox(const Scalar *a, const Scalar *b, int size)
Definition: packetmath.cpp:51
EIGEN_DEVICE_FUNC void pstore(Scalar *to, const Packet &from)
#define VERIFY(a)
Definition: main.h:325

Definition at line 64 of file packetmath.cpp.

#define CHECK_CWISE1_IF (   COND,
  REFOP,
  POP 
)
Value:
if(COND) { \
packet_helper<COND,Packet> h; \
for (int i=0; i<PacketSize; ++i) \
ref[i] = REFOP(data1[i]); \
h.store(data2, POP(h.load(data1))); \
VERIFY(areApprox(ref, data2, PacketSize) && #POP); \
}
for(size_t i=1;i< poses.size();++i)
bool areApprox(const Scalar *a, const Scalar *b, int size)
Definition: packetmath.cpp:51
const double h
#define VERIFY(a)
Definition: main.h:325

Definition at line 91 of file packetmath.cpp.

#define CHECK_CWISE2_IF (   COND,
  REFOP,
  POP 
)
Value:
if(COND) { \
packet_helper<COND,Packet> h; \
for (int i=0; i<PacketSize; ++i) \
ref[i] = REFOP(data1[i], data1[i+PacketSize]); \
h.store(data2, POP(h.load(data1),h.load(data1+PacketSize))); \
VERIFY(areApprox(ref, data2, PacketSize) && #POP); \
}
for(size_t i=1;i< poses.size();++i)
bool areApprox(const Scalar *a, const Scalar *b, int size)
Definition: packetmath.cpp:51
const double h
#define VERIFY(a)
Definition: main.h:325

Definition at line 99 of file packetmath.cpp.

#define REF_ADD (   a,
  b 
)    ((a)+(b))

Definition at line 107 of file packetmath.cpp.

#define REF_DIV (   a,
  b 
)    ((a)/(b))

Definition at line 110 of file packetmath.cpp.

#define REF_MUL (   a,
  b 
)    ((a)*(b))

Definition at line 109 of file packetmath.cpp.

#define REF_SUB (   a,
  b 
)    ((a)-(b))

Definition at line 108 of file packetmath.cpp.

Function Documentation

template<typename Scalar >
bool areApprox ( const Scalar a,
const Scalar b,
int  size 
)

Definition at line 51 of file packetmath.cpp.

template<typename Scalar >
bool areApproxAbs ( const Scalar a,
const Scalar b,
int  size,
const typename NumTraits< Scalar >::Real refvalue 
)

Definition at line 38 of file packetmath.cpp.

template<typename Scalar >
EIGEN_DONT_INLINE bool isApproxAbs ( const Scalar a,
const Scalar b,
const typename NumTraits< Scalar >::Real refvalue 
)

Definition at line 33 of file packetmath.cpp.

template<typename Scalar >
void packetmath ( )

Definition at line 112 of file packetmath.cpp.

template<typename Scalar >
void packetmath_complex ( )

Definition at line 548 of file packetmath.cpp.

template<typename Scalar >
void packetmath_notcomplex ( )

Definition at line 483 of file packetmath.cpp.

template<typename Scalar >
void packetmath_real ( )

Definition at line 328 of file packetmath.cpp.

template<typename Scalar >
void packetmath_scatter_gather ( )

Definition at line 579 of file packetmath.cpp.

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

Definition at line 519 of file packetmath.cpp.

void test_packetmath ( )

Definition at line 616 of file packetmath.cpp.

Variable Documentation

const bool g_vectorize_sse = false

Definition at line 22 of file packetmath.cpp.



gtsam
Author(s):
autogenerated on Sat May 8 2021 02:51:32