12 #include <Eigen/CXX11/Tensor> 16 Tensor<float, 1> vec(6);
21 for (
int i = 1; i < 6; ++i) {
22 VERIFY_IS_NOT_EQUAL(vec(i), vec(i-1));
28 Tensor<float, 1> vec(6);
33 for (
int i = 1; i < 6; ++i) {
34 VERIFY_IS_NOT_EQUAL(vec(i), vec(i-1));
47 return static_cast<int>(3 * element_location);
55 for (
int i = 0; i < packetSize; ++i) {
56 values[i] =
static_cast<int>(3 * (packet_location + i));
58 return internal::pload<typename internal::packet_traits<int>::type>(values);
65 Tensor<int, 1> vec(6);
68 for (
int i = 0; i < 6; ++i) {
69 VERIFY_IS_EQUAL(vec(i), 3*i);
std::vector< double > values
static constexpr size_t size(Tuple< Args... > &)
Provides access to the number of elements in a tuple as a compile-time constant expression.
static void test_default()
int operator()(Eigen::DenseIndex element_location, Eigen::DenseIndex=0) const
internal::packet_traits< int >::type packetOp(Eigen::DenseIndex packet_location, Eigen::DenseIndex=0) const
EIGEN_DEFAULT_DENSE_INDEX_TYPE DenseIndex
static void test_normal()
static void test_custom()
void test_cxx11_tensor_random()
MyGenerator(const MyGenerator &)