12 #include <Eigen/CXX11/Tensor> 28 for (
int i = 0;
i < 6; ++
i) {
33 for (
int i = 0;
i < 6; ++
i) {
36 for (
int i = 0;
i < 6; ++
i) {
39 for (
int i = 0;
i < 6; ++
i) {
42 for (
int i = 0;
i < 6; ++
i) {
63 for (
int i = 0;
i < 6; ++
i) {
81 for (
int i = 0;
i < 3; ++
i) {
82 for (
int j = 0;
j < 5; ++
j) {
83 for (
int k = 0; k < 7; ++k) {
103 slice = tensor.
slice(indices2, sizes2);
104 for (
int i = 0;
i < 2; ++
i) {
105 for (
int j = 0;
j < 2; ++
j) {
106 for (
int k = 0; k < 3; ++k) {
114 slice = tensor.
slice(indices3, sizes3);
139 for (
int i = 0;
i < 3; ++
i) {
140 for (
int j = 0;
j < 5; ++
j) {
141 for (
int k = 0; k < 7; ++k) {
163 result_ref = input_ref + bias;
164 for (
int i = 0;
i < 3; ++
i) {
165 for (
int j = 0;
j < 5; ++
j) {
166 for (
int k = 0; k < 7; ++k) {
174 for (
int i = 0;
i < 3; ++
i) {
175 for (
int j = 0;
j < 5; ++
j) {
176 for (
int k = 0; k < 7; ++k) {
205 paddings[0] = std::make_pair(0, 0);
206 paddings[1] = std::make_pair(2, 1);
207 paddings[2] = std::make_pair(3, 4);
208 paddings[3] = std::make_pair(0, 0);
211 array<std::pair<ptrdiff_t, ptrdiff_t>, 4> trivial;
212 trivial[0] = std::make_pair(0, 0);
213 trivial[1] = std::make_pair(0, 0);
214 trivial[2] = std::make_pair(0, 0);
215 trivial[3] = std::make_pair(0, 0);
222 for (
int i = 0;
i < 2; ++
i) {
223 for (
int j = 0;
j < 6; ++
j) {
224 for (
int k = 0; k < 12; ++k) {
225 for (
int l = 0;
l < 7; ++
l) {
226 if (
j >= 2 && j < 5 && k >= 3 && k < 8) {
EIGEN_DECLARE_TEST(cxx11_tensor_ref)
#define VERIFY_IS_NOT_EQUAL(a, b)
std::vector< Array2i > sizes
static void test_ref_in_expr()
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE Tensor< Scalar_, NumIndices_, Options_, IndexType_ > & setRandom()
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE const TensorChippingOp< DimId, const Tensor< Scalar_, NumIndices_, Options_, IndexType_ > > chip(const Index offset) const
static void test_nested_ops_with_ref()
static void test_simple_rvalue_ref()
static const Line3 l(Rot3(), 1, 1)
#define VERIFY_IS_EQUAL(a, b)
A tensor expression mapping an existing array of data.
Point2(* f)(const Point3 &, OptionalJacobian< 2, 3 >)
static void test_ref_of_ref()
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE const TensorSlicingOp< const StartIndices, const Sizes, const Tensor< Scalar_, NumIndices_, Options_, IndexType_ > > slice(const StartIndices &startIndices, const Sizes &sizes) const
static void test_multiple_dims()
Reference counting helper.
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE Scalar * data()
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE Scalar & coeffRef(Index i0, Index i1)
#define CALL_SUBTEST(FUNC)
static void test_coeff_ref()
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE Index dimension(std::size_t n) const
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE Index dimension(Index n) const
static void test_simple_lvalue_ref()
A reference to a tensor expression The expression will be evaluated lazily (as much as possible)...
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE const Scalar * data() const