Namespaces | Defines | Functions
eigen2_packetmath.cpp File Reference
#include "main.h"
Include dependency graph for eigen2_packetmath.cpp:

Go to the source code of this file.

Namespaces

namespace  std

Defines

#define CHECK_CWISE(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<>
const complex< float > & std::max (const complex< float > &a, const complex< float > &b)
template<>
const complex< float > & std::min (const complex< float > &a, const complex< float > &b)
template<typename Scalar >
void packetmath ()
void test_eigen2_packetmath ()

Define Documentation

#define CHECK_CWISE (   REFOP,
  POP 
)
Value:
{ \
  for (int i=0; i<PacketSize; ++i) \
    ref[i] = REFOP(data1[i], data1[i+PacketSize]); \
  ei_pstore(data2, POP(ei_pload(data1), ei_pload(data1+PacketSize))); \
  VERIFY(areApprox(ref, data2, PacketSize) && #POP); \
}

Definition at line 36 of file eigen2_packetmath.cpp.

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

Definition at line 43 of file eigen2_packetmath.cpp.

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

Definition at line 46 of file eigen2_packetmath.cpp.

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

Definition at line 45 of file eigen2_packetmath.cpp.

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

Definition at line 44 of file eigen2_packetmath.cpp.


Function Documentation

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

Definition at line 29 of file eigen2_packetmath.cpp.

template<typename Scalar >
void packetmath ( )

Definition at line 58 of file eigen2_packetmath.cpp.

Definition at line 139 of file eigen2_packetmath.cpp.



libicr
Author(s): Robert Krug
autogenerated on Mon Jan 6 2014 11:34:05