mirror of
https://gitlab.com/libeigen/eigen.git
synced 2025-06-04 18:54:00 +08:00
Removed dependencies on cxx11 language features from the tensor_block_access test
This commit is contained in:
parent
fbb834144d
commit
b6f96cf7dd
@ -157,9 +157,8 @@ static void UpdateCoeffSet(
|
|||||||
|
|
||||||
template <typename T, int NumDims, int Layout>
|
template <typename T, int NumDims, int Layout>
|
||||||
static void test_block_mapper_maps_every_element() {
|
static void test_block_mapper_maps_every_element() {
|
||||||
using TensorBlock = internal::TensorBlock<T, Index, NumDims, Layout>;
|
typedef internal::TensorBlock<T, Index, NumDims, Layout> TensorBlock;
|
||||||
using TensorBlockMapper =
|
typedef internal::TensorBlockMapper<T, Index, NumDims, Layout> TensorBlockMapper;
|
||||||
internal::TensorBlockMapper<T, Index, NumDims, Layout>;
|
|
||||||
|
|
||||||
DSizes<Index, NumDims> dims = RandomDims<NumDims>();
|
DSizes<Index, NumDims> dims = RandomDims<NumDims>();
|
||||||
|
|
||||||
@ -186,9 +185,8 @@ static void test_block_mapper_maps_every_element() {
|
|||||||
|
|
||||||
template <typename T, int NumDims, int Layout>
|
template <typename T, int NumDims, int Layout>
|
||||||
static void test_slice_block_mapper_maps_every_element() {
|
static void test_slice_block_mapper_maps_every_element() {
|
||||||
using TensorBlock = internal::TensorBlock<T, Index, NumDims, Layout>;
|
typedef internal::TensorBlock<T, Index, NumDims, Layout> TensorBlock;
|
||||||
using TensorSliceBlockMapper =
|
typedef internal::TensorSliceBlockMapper<T, Index, NumDims, Layout> TensorSliceBlockMapper;
|
||||||
internal::TensorSliceBlockMapper<T, Index, NumDims, Layout>;
|
|
||||||
|
|
||||||
DSizes<Index, NumDims> tensor_dims = RandomDims<NumDims>();
|
DSizes<Index, NumDims> tensor_dims = RandomDims<NumDims>();
|
||||||
DSizes<Index, NumDims> tensor_slice_offsets = RandomDims<NumDims>();
|
DSizes<Index, NumDims> tensor_slice_offsets = RandomDims<NumDims>();
|
||||||
@ -773,9 +771,8 @@ static void test_uniform_block_shape()
|
|||||||
template <int Layout>
|
template <int Layout>
|
||||||
static void test_skewed_inner_dim_block_shape()
|
static void test_skewed_inner_dim_block_shape()
|
||||||
{
|
{
|
||||||
using T = int;
|
typedef internal::TensorBlock<int, Index, 5, Layout> TensorBlock;
|
||||||
typedef internal::TensorBlock<T, Index, 5, Layout> TensorBlock;
|
typedef internal::TensorBlockMapper<int, Index, 5, Layout> TensorBlockMapper;
|
||||||
typedef internal::TensorBlockMapper<T, Index, 5, Layout> TensorBlockMapper;
|
|
||||||
|
|
||||||
// Test shape 'SkewedInnerDims' with partial allocation to inner-most dim.
|
// Test shape 'SkewedInnerDims' with partial allocation to inner-most dim.
|
||||||
if (Layout == ColMajor) {
|
if (Layout == ColMajor) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user