15 template<
typename PlainObjectType,
16 bool IsDynamicSize = PlainObjectType::SizeAtCompileTime ==
Dynamic,
17 bool IsVector = PlainObjectType::IsVectorAtCompileTime
21 template<
typename PlainObjectType,
bool IsVector>
24 static void run(
const PlainObjectType&
m)
28 int i = internal::random<int>(2,5),
j = internal::random<int>(2,5);
30 PlainObjectType::Map(
ptr).setZero();
31 PlainObjectType::MapAligned(
ptr).setZero();
33 PlainObjectType::MapAligned(
const_ptr).sum();
67 template<
typename PlainObjectType>
70 static void run(
const PlainObjectType&
m)
74 int i = internal::random<int>(2,5),
j = internal::random<int>(2,5);
76 PlainObjectType::Map(
ptr, rows,
cols).setZero();
77 PlainObjectType::MapAligned(
ptr, rows,
cols).setZero();
113 template<
typename PlainObjectType>
116 static void run(
const PlainObjectType&
v)
120 int i = internal::random<int>(2,5);
122 PlainObjectType::Map(
ptr, size).setZero();
123 PlainObjectType::MapAligned(
ptr, size).setZero();
124 PlainObjectType::Map(
const_ptr, size).sum();
125 PlainObjectType::MapAligned(
const_ptr, size).sum();
139 template<
typename PlainObjectType>
148 ptr = internal::aligned_new<float>(1000);
149 for(
int i = 0;
i < 1000;
i++)
ptr[
i] =
float(
i);
EIGEN_DEVICE_FUNC void aligned_delete(T *ptr, std::size_t size)
Holds strides information for Map.
static void run(const PlainObjectType &v)
static void run(const PlainObjectType &m)
void test_mapstaticmethods()
Convenience specialization of Stride to specify only an inner stride See class Map for some examples...
EIGEN_DEFAULT_DENSE_INDEX_TYPE Index
The Index type as used for the API.
static void run(const PlainObjectType &m)
The matrix class, also used for vectors and row-vectors.
Convenience specialization of Stride to specify only an outer stride See class Map for some examples...
void run(Expr &expr, Dev &dev)
void mapstaticmethods(const PlainObjectType &m)