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

Go to the source code of this file.

Macros

#define CALL_SUBTESTS(NAME)
 

Functions

 EIGEN_DECLARE_TEST (cxx11_tensor_block_io)
 
template<int Layout, int NumDims>
static Index GetInputIndex (Index output_index, const array< Index, NumDims > &output_to_input_dim_map, const array< Index, NumDims > &input_strides, const array< Index, NumDims > &output_strides)
 
static internal::TensorBlockShapeType RandomBlockShape ()
 
template<int NumDims>
static DSizes< Index, NumDims > RandomDims (Index min, Index max)
 
template<int NumDims>
static size_t RandomTargetBlockSize (const DSizes< Index, NumDims > &dims)
 
template<typename T , int NumDims, int Layout>
static void test_block_io_copy_data_from_source_to_target ()
 
template<typename T , int NumDims, int Layout>
static void test_block_io_copy_using_reordered_dimensions ()
 
template<int Layout>
static void test_block_io_copy_using_reordered_dimensions_do_not_squeeze ()
 
template<int Layout>
static void test_block_io_copy_using_reordered_dimensions_squeeze ()
 
template<int Layout>
static void test_block_io_squeeze_ones ()
 
template<int Layout>
static void test_block_io_zero_stride ()
 

Macro Definition Documentation

◆ CALL_SUBTESTS

#define CALL_SUBTESTS (   NAME)
Value:
CALL_SUBTEST((NAME<float, 1, RowMajor>())); \
CALL_SUBTEST((NAME<float, 2, RowMajor>())); \
CALL_SUBTEST((NAME<float, 4, RowMajor>())); \
CALL_SUBTEST((NAME<float, 5, RowMajor>())); \
CALL_SUBTEST((NAME<float, 1, ColMajor>())); \
CALL_SUBTEST((NAME<float, 2, ColMajor>())); \
CALL_SUBTEST((NAME<float, 4, ColMajor>())); \
CALL_SUBTEST((NAME<float, 5, ColMajor>())); \
CALL_SUBTEST((NAME<bool, 1, RowMajor>())); \
CALL_SUBTEST((NAME<bool, 2, RowMajor>())); \
CALL_SUBTEST((NAME<bool, 4, RowMajor>())); \
CALL_SUBTEST((NAME<bool, 5, RowMajor>())); \
CALL_SUBTEST((NAME<bool, 1, ColMajor>())); \
CALL_SUBTEST((NAME<bool, 2, ColMajor>())); \
CALL_SUBTEST((NAME<bool, 4, ColMajor>())); \
CALL_SUBTEST((NAME<bool, 5, ColMajor>()))

Definition at line 410 of file cxx11_tensor_block_io.cpp.

Function Documentation

◆ EIGEN_DECLARE_TEST()

EIGEN_DECLARE_TEST ( cxx11_tensor_block_io  )

Definition at line 428 of file cxx11_tensor_block_io.cpp.

◆ GetInputIndex()

template<int Layout, int NumDims>
static Index GetInputIndex ( Index  output_index,
const array< Index, NumDims > &  output_to_input_dim_map,
const array< Index, NumDims > &  input_strides,
const array< Index, NumDims > &  output_strides 
)
static

Definition at line 37 of file cxx11_tensor_block_io.cpp.

◆ RandomBlockShape()

static internal::TensorBlockShapeType RandomBlockShape ( )
static

Definition at line 25 of file cxx11_tensor_block_io.cpp.

◆ RandomDims()

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

Definition at line 17 of file cxx11_tensor_block_io.cpp.

◆ RandomTargetBlockSize()

template<int NumDims>
static size_t RandomTargetBlockSize ( const DSizes< Index, NumDims > &  dims)
static

Definition at line 32 of file cxx11_tensor_block_io.cpp.

◆ test_block_io_copy_data_from_source_to_target()

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

Definition at line 62 of file cxx11_tensor_block_io.cpp.

◆ test_block_io_copy_using_reordered_dimensions()

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

Definition at line 121 of file cxx11_tensor_block_io.cpp.

◆ test_block_io_copy_using_reordered_dimensions_do_not_squeeze()

template<int Layout>
static void test_block_io_copy_using_reordered_dimensions_do_not_squeeze ( )
static

Definition at line 221 of file cxx11_tensor_block_io.cpp.

◆ test_block_io_copy_using_reordered_dimensions_squeeze()

template<int Layout>
static void test_block_io_copy_using_reordered_dimensions_squeeze ( )
static

Definition at line 268 of file cxx11_tensor_block_io.cpp.

◆ test_block_io_squeeze_ones()

template<int Layout>
static void test_block_io_squeeze_ones ( )
static

Definition at line 364 of file cxx11_tensor_block_io.cpp.

◆ test_block_io_zero_stride()

template<int Layout>
static void test_block_io_zero_stride ( )
static

Definition at line 315 of file cxx11_tensor_block_io.cpp.

CALL_SUBTEST
#define CALL_SUBTEST(FUNC)
Definition: main.h:399


gtsam
Author(s):
autogenerated on Sat Nov 16 2024 04:09:46