TR-mbed 1.0
Loading...
Searching...
No Matches
Macros | Typedefs | Enumerations | Functions
indexed_view.cpp File Reference
#include <valarray>
#include <vector>
#include "main.h"

Macros

#define MATCH(X, R)   match(X, R, #X)
 
#define VERIFY_EQ_INT(A, B)   VERIFY_IS_APPROX(int(A),int(B))
 

Typedefs

typedef std::pair< Index, IndexIndexPair
 

Enumerations

enum  DummyEnum { XX =0 , YY =1 }
 

Functions

int encode (Index i, Index j)
 
IndexPair decode (Index ij)
 
template<typename T >
bool match (const T &xpr, std::string ref, std::string str_xpr="")
 
template<typename T1 , typename T2 >
internal::enable_if< internal::is_same< T1, T2 >::value, bool >::type is_same_eq (const T1 &a, const T2 &b)
 
template<typename T1 , typename T2 >
bool is_same_seq (const T1 &a, const T2 &b)
 
template<typename T1 , typename T2 >
internal::enable_if< internal::is_same< T1, T2 >::value, bool >::type is_same_seq_type (const T1 &a, const T2 &b)
 
void check_indexed_view ()
 
 EIGEN_DECLARE_TEST (indexed_view)
 

Macro Definition Documentation

◆ MATCH

#define MATCH (   X,
 
)    match(X, R, #X)

◆ VERIFY_EQ_INT

#define VERIFY_EQ_INT (   A,
  B 
)    VERIFY_IS_APPROX(int(A),int(B))

Typedef Documentation

◆ IndexPair

typedef std::pair<Index,Index> IndexPair

Enumeration Type Documentation

◆ DummyEnum

enum DummyEnum
Enumerator
XX 
YY 

Function Documentation

◆ check_indexed_view()

void check_indexed_view ( )

◆ decode()

IndexPair decode ( Index  ij)

◆ EIGEN_DECLARE_TEST()

EIGEN_DECLARE_TEST ( indexed_view  )

◆ encode()

int encode ( Index  i,
Index  j 
)

◆ is_same_eq()

template<typename T1 , typename T2 >
internal::enable_if< internal::is_same< T1, T2 >::value, bool >::type is_same_eq ( const T1 &  a,
const T2 &  b 
)

◆ is_same_seq()

template<typename T1 , typename T2 >
bool is_same_seq ( const T1 &  a,
const T2 &  b 
)

◆ is_same_seq_type()

template<typename T1 , typename T2 >
internal::enable_if< internal::is_same< T1, T2 >::value, bool >::type is_same_seq_type ( const T1 &  a,
const T2 &  b 
)

◆ match()

template<typename T >
bool match ( const T xpr,
std::string  ref,
std::string  str_xpr = "" 
)