Classes | Macros | Functions
cxx11_tensor_block_eval.cpp File Reference
#include "main.h"
#include <Eigen/CXX11/Tensor>
Include dependency graph for cxx11_tensor_block_eval.cpp:

Go to the source code of this file.

Classes

struct  SimpleTensorGenerator< T, NumDims >
 
struct  SimpleTensorGenerator< bool, NumDims >
 
struct  TensorBlockParams< NumDims >
 

Macros

#define CALL_SUBTEST_PART(PART)   CALL_SUBTEST_##PART
 
#define CALL_SUBTESTS_DIMS_LAYOUTS(PART, NAME)
 
#define CALL_SUBTESTS_DIMS_LAYOUTS_TYPES(PART, NAME)
 
#define CALL_SUBTESTS_LAYOUTS_TYPES(PART, NAME)
 

Functions

 EIGEN_DECLARE_TEST (cxx11_tensor_block_eval)
 
template<int NumDims>
static TensorBlockParams< NumDims > FixedSizeBlock (DSizes< Index, NumDims > dims)
 
Eigen::IndexList< Index, Eigen::type2index< 1 > > NByOne (Index n)
 
Eigen::IndexList< Eigen::type2index< 1 >, IndexOneByM (Index m)
 
template<int Layout, int NumDims>
static TensorBlockParams< NumDims > RandomBlock (DSizes< Index, NumDims > dims, Index min, Index max)
 
template<int NumDims>
static DSizes< Index, NumDims > RandomDims (Index min, Index max)
 
template<int Layout, int NumDims>
static TensorBlockParams< NumDims > SkewedInnerBlock (DSizes< Index, NumDims > dims)
 
template<typename T , int NumDims, int Layout>
static void test_assign_to_tensor ()
 
template<typename T , int NumDims, int Layout>
static void test_assign_to_tensor_chipping ()
 
template<typename T , int NumDims, int Layout>
static void test_assign_to_tensor_reshape ()
 
template<typename T , int NumDims, int Layout>
static void test_assign_to_tensor_shuffle ()
 
template<typename T , int NumDims, int Layout>
static void test_assign_to_tensor_slice ()
 
template<typename T , int NumDims, int Layout>
static void test_eval_tensor_binary_expr_block ()
 
template<typename T , int NumDims, int Layout>
static void test_eval_tensor_binary_with_unary_expr_block ()
 
template<typename T , int NumDims, int Layout>
static void test_eval_tensor_block ()
 
template<typename T , int NumDims, int Layout>
static void test_eval_tensor_broadcast ()
 
template<typename T , int NumDims, int Layout>
static void test_eval_tensor_cast ()
 
template<typename T , int NumDims, int Layout>
static void test_eval_tensor_chipping ()
 
template<typename T , int Layout>
static void test_eval_tensor_chipping_of_bcast ()
 
template<typename T , int Layout>
static void test_eval_tensor_forced_eval ()
 
template<typename T , int NumDims, int Layout>
static void test_eval_tensor_generator ()
 
template<typename T , int NumDims, int Layout>
static void test_eval_tensor_padding ()
 
template<typename T , int NumDims, int Layout>
static void test_eval_tensor_reshape ()
 
template<typename T , int Layout>
static void test_eval_tensor_reshape_with_bcast ()
 
template<typename T , int NumDims, int Layout>
static void test_eval_tensor_reverse ()
 
template<typename T , int NumDims, int Layout>
static void test_eval_tensor_select ()
 
template<typename T , int NumDims, int Layout>
static void test_eval_tensor_shuffle ()
 
template<typename T , int NumDims, int Layout>
static void test_eval_tensor_slice ()
 
template<typename T , int NumDims, int Layout>
static void test_eval_tensor_unary_expr_block ()
 
template<typename T , int NumDims, int Layout, int NumExprDims = NumDims, typename Expression , typename GenBlockParams >
static void VerifyBlockAssignment (Tensor< T, NumDims, Layout > &tensor, Expression expr, GenBlockParams gen_block)
 
template<typename T , int NumDims, int Layout, typename Expression , typename GenBlockParams >
static void VerifyBlockEvaluator (Expression expr, GenBlockParams gen_block)
 

Macro Definition Documentation

◆ CALL_SUBTEST_PART

#define CALL_SUBTEST_PART (   PART)    CALL_SUBTEST_##PART

Definition at line 774 of file cxx11_tensor_block_eval.cpp.

◆ CALL_SUBTESTS_DIMS_LAYOUTS

#define CALL_SUBTESTS_DIMS_LAYOUTS (   PART,
  NAME 
)
Value:
CALL_SUBTEST_PART(PART)((NAME<float, 1, RowMajor>())); \
CALL_SUBTEST_PART(PART)((NAME<float, 2, RowMajor>())); \
CALL_SUBTEST_PART(PART)((NAME<float, 3, RowMajor>())); \
CALL_SUBTEST_PART(PART)((NAME<float, 4, RowMajor>())); \
CALL_SUBTEST_PART(PART)((NAME<float, 5, RowMajor>())); \
CALL_SUBTEST_PART(PART)((NAME<float, 1, ColMajor>())); \
CALL_SUBTEST_PART(PART)((NAME<float, 2, ColMajor>())); \
CALL_SUBTEST_PART(PART)((NAME<float, 4, ColMajor>())); \
CALL_SUBTEST_PART(PART)((NAME<float, 4, ColMajor>())); \
CALL_SUBTEST_PART(PART)((NAME<float, 5, ColMajor>()))
#define CALL_SUBTEST_PART(PART)

Definition at line 809 of file cxx11_tensor_block_eval.cpp.

◆ CALL_SUBTESTS_DIMS_LAYOUTS_TYPES

#define CALL_SUBTESTS_DIMS_LAYOUTS_TYPES (   PART,
  NAME 
)
Value:
CALL_SUBTEST_PART(PART)((NAME<float, 1, RowMajor>())); \
CALL_SUBTEST_PART(PART)((NAME<float, 2, RowMajor>())); \
CALL_SUBTEST_PART(PART)((NAME<float, 3, RowMajor>())); \
CALL_SUBTEST_PART(PART)((NAME<float, 4, RowMajor>())); \
CALL_SUBTEST_PART(PART)((NAME<float, 5, RowMajor>())); \
CALL_SUBTEST_PART(PART)((NAME<float, 1, ColMajor>())); \
CALL_SUBTEST_PART(PART)((NAME<float, 2, ColMajor>())); \
CALL_SUBTEST_PART(PART)((NAME<float, 4, ColMajor>())); \
CALL_SUBTEST_PART(PART)((NAME<float, 4, ColMajor>())); \
CALL_SUBTEST_PART(PART)((NAME<float, 5, ColMajor>())); \
CALL_SUBTEST_PART(PART)((NAME<int, 1, RowMajor>())); \
CALL_SUBTEST_PART(PART)((NAME<int, 2, RowMajor>())); \
CALL_SUBTEST_PART(PART)((NAME<int, 3, RowMajor>())); \
CALL_SUBTEST_PART(PART)((NAME<int, 4, RowMajor>())); \
CALL_SUBTEST_PART(PART)((NAME<int, 5, RowMajor>())); \
CALL_SUBTEST_PART(PART)((NAME<int, 1, ColMajor>())); \
CALL_SUBTEST_PART(PART)((NAME<int, 2, ColMajor>())); \
CALL_SUBTEST_PART(PART)((NAME<int, 4, ColMajor>())); \
CALL_SUBTEST_PART(PART)((NAME<int, 4, ColMajor>())); \
CALL_SUBTEST_PART(PART)((NAME<int, 5, ColMajor>())); \
CALL_SUBTEST_PART(PART)((NAME<bool, 1, RowMajor>())); \
CALL_SUBTEST_PART(PART)((NAME<bool, 2, RowMajor>())); \
CALL_SUBTEST_PART(PART)((NAME<bool, 3, RowMajor>())); \
CALL_SUBTEST_PART(PART)((NAME<bool, 4, RowMajor>())); \
CALL_SUBTEST_PART(PART)((NAME<bool, 5, RowMajor>())); \
CALL_SUBTEST_PART(PART)((NAME<bool, 1, ColMajor>())); \
CALL_SUBTEST_PART(PART)((NAME<bool, 2, ColMajor>())); \
CALL_SUBTEST_PART(PART)((NAME<bool, 4, ColMajor>())); \
CALL_SUBTEST_PART(PART)((NAME<bool, 4, ColMajor>())); \
CALL_SUBTEST_PART(PART)((NAME<bool, 5, ColMajor>()))
#define CALL_SUBTEST_PART(PART)

Definition at line 777 of file cxx11_tensor_block_eval.cpp.

◆ CALL_SUBTESTS_LAYOUTS_TYPES

#define CALL_SUBTESTS_LAYOUTS_TYPES (   PART,
  NAME 
)
Value:
CALL_SUBTEST_PART(PART)((NAME<float, RowMajor>())); \
CALL_SUBTEST_PART(PART)((NAME<float, ColMajor>())); \
CALL_SUBTEST_PART(PART)((NAME<bool, RowMajor>())); \
CALL_SUBTEST_PART(PART)((NAME<bool, ColMajor>()))
#define CALL_SUBTEST_PART(PART)

Definition at line 821 of file cxx11_tensor_block_eval.cpp.

Function Documentation

◆ EIGEN_DECLARE_TEST()

EIGEN_DECLARE_TEST ( cxx11_tensor_block_eval  )

Definition at line 827 of file cxx11_tensor_block_eval.cpp.

◆ FixedSizeBlock()

template<int NumDims>
static TensorBlockParams<NumDims> FixedSizeBlock ( DSizes< Index, NumDims >  dims)
static

Definition at line 100 of file cxx11_tensor_block_eval.cpp.

◆ NByOne()

Eigen::IndexList<Index, Eigen::type2index<1> > NByOne ( Index  n)
inline

Definition at line 107 of file cxx11_tensor_block_eval.cpp.

◆ OneByM()

Eigen::IndexList<Eigen::type2index<1>, Index> OneByM ( Index  m)
inline

Definition at line 112 of file cxx11_tensor_block_eval.cpp.

◆ RandomBlock()

template<int Layout, int NumDims>
static TensorBlockParams<NumDims> RandomBlock ( DSizes< Index, NumDims >  dims,
Index  min,
Index  max 
)
static

Definition at line 38 of file cxx11_tensor_block_eval.cpp.

◆ RandomDims()

template<int NumDims>
static DSizes<Index, NumDims> RandomDims ( Index  min,
Index  max 
)
static

Definition at line 20 of file cxx11_tensor_block_eval.cpp.

◆ SkewedInnerBlock()

template<int Layout, int NumDims>
static TensorBlockParams<NumDims> SkewedInnerBlock ( DSizes< Index, NumDims >  dims)
static

Definition at line 62 of file cxx11_tensor_block_eval.cpp.

◆ test_assign_to_tensor()

template<typename T , int NumDims, int Layout>
static void test_assign_to_tensor ( )
static

Definition at line 650 of file cxx11_tensor_block_eval.cpp.

◆ test_assign_to_tensor_chipping()

template<typename T , int NumDims, int Layout>
static void test_assign_to_tensor_chipping ( )
static

Definition at line 686 of file cxx11_tensor_block_eval.cpp.

◆ test_assign_to_tensor_reshape()

template<typename T , int NumDims, int Layout>
static void test_assign_to_tensor_reshape ( )
static

Definition at line 663 of file cxx11_tensor_block_eval.cpp.

◆ test_assign_to_tensor_shuffle()

template<typename T , int NumDims, int Layout>
static void test_assign_to_tensor_shuffle ( )
static

Definition at line 747 of file cxx11_tensor_block_eval.cpp.

◆ test_assign_to_tensor_slice()

template<typename T , int NumDims, int Layout>
static void test_assign_to_tensor_slice ( )
static

Definition at line 717 of file cxx11_tensor_block_eval.cpp.

◆ test_eval_tensor_binary_expr_block()

template<typename T , int NumDims, int Layout>
static void test_eval_tensor_binary_expr_block ( )
static

Definition at line 229 of file cxx11_tensor_block_eval.cpp.

◆ test_eval_tensor_binary_with_unary_expr_block()

template<typename T , int NumDims, int Layout>
static void test_eval_tensor_binary_with_unary_expr_block ( )
static

Definition at line 240 of file cxx11_tensor_block_eval.cpp.

◆ test_eval_tensor_block()

template<typename T , int NumDims, int Layout>
static void test_eval_tensor_block ( )
static

Definition at line 208 of file cxx11_tensor_block_eval.cpp.

◆ test_eval_tensor_broadcast()

template<typename T , int NumDims, int Layout>
static void test_eval_tensor_broadcast ( )
static

Definition at line 252 of file cxx11_tensor_block_eval.cpp.

◆ test_eval_tensor_cast()

template<typename T , int NumDims, int Layout>
static void test_eval_tensor_cast ( )
static

Definition at line 301 of file cxx11_tensor_block_eval.cpp.

◆ test_eval_tensor_chipping()

template<typename T , int NumDims, int Layout>
static void test_eval_tensor_chipping ( )
static

Definition at line 367 of file cxx11_tensor_block_eval.cpp.

◆ test_eval_tensor_chipping_of_bcast()

template<typename T , int Layout>
static void test_eval_tensor_chipping_of_bcast ( )
static

Definition at line 560 of file cxx11_tensor_block_eval.cpp.

◆ test_eval_tensor_forced_eval()

template<typename T , int Layout>
static void test_eval_tensor_forced_eval ( )
static

Definition at line 537 of file cxx11_tensor_block_eval.cpp.

◆ test_eval_tensor_generator()

template<typename T , int NumDims, int Layout>
static void test_eval_tensor_generator ( )
static

Definition at line 428 of file cxx11_tensor_block_eval.cpp.

◆ test_eval_tensor_padding()

template<typename T , int NumDims, int Layout>
static void test_eval_tensor_padding ( )
static

Definition at line 327 of file cxx11_tensor_block_eval.cpp.

◆ test_eval_tensor_reshape()

template<typename T , int NumDims, int Layout>
static void test_eval_tensor_reshape ( )
static

Definition at line 282 of file cxx11_tensor_block_eval.cpp.

◆ test_eval_tensor_reshape_with_bcast()

template<typename T , int Layout>
static void test_eval_tensor_reshape_with_bcast ( )
static

Definition at line 514 of file cxx11_tensor_block_eval.cpp.

◆ test_eval_tensor_reverse()

template<typename T , int NumDims, int Layout>
static void test_eval_tensor_reverse ( )
static

Definition at line 444 of file cxx11_tensor_block_eval.cpp.

◆ test_eval_tensor_select()

template<typename T , int NumDims, int Layout>
static void test_eval_tensor_select ( )
static

Definition at line 312 of file cxx11_tensor_block_eval.cpp.

◆ test_eval_tensor_shuffle()

template<typename T , int NumDims, int Layout>
static void test_eval_tensor_shuffle ( )
static

Definition at line 487 of file cxx11_tensor_block_eval.cpp.

◆ test_eval_tensor_slice()

template<typename T , int NumDims, int Layout>
static void test_eval_tensor_slice ( )
static

Definition at line 462 of file cxx11_tensor_block_eval.cpp.

◆ test_eval_tensor_unary_expr_block()

template<typename T , int NumDims, int Layout>
static void test_eval_tensor_unary_expr_block ( )
static

Definition at line 219 of file cxx11_tensor_block_eval.cpp.

◆ VerifyBlockAssignment()

template<typename T , int NumDims, int Layout, int NumExprDims = NumDims, typename Expression , typename GenBlockParams >
static void VerifyBlockAssignment ( Tensor< T, NumDims, Layout > &  tensor,
Expression  expr,
GenBlockParams  gen_block 
)
static

Definition at line 593 of file cxx11_tensor_block_eval.cpp.

◆ VerifyBlockEvaluator()

template<typename T , int NumDims, int Layout, typename Expression , typename GenBlockParams >
static void VerifyBlockEvaluator ( Expression  expr,
GenBlockParams  gen_block 
)
static

Definition at line 124 of file cxx11_tensor_block_eval.cpp.



gtsam
Author(s):
autogenerated on Tue Jul 4 2023 02:40:48