diff options
| author | Stanislaw Halik <sthalik@misaki.pl> | 2019-03-03 21:09:10 +0100 |
|---|---|---|
| committer | Stanislaw Halik <sthalik@misaki.pl> | 2019-03-03 21:10:13 +0100 |
| commit | f0238cfb6997c4acfc2bd200de7295f3fa36968f (patch) | |
| tree | b215183760e4f615b9c1dabc1f116383b72a1b55 /eigen/unsupported/test/cxx11_tensor_lvalue.cpp | |
| parent | 543edd372a5193d04b3de9f23c176ab439e51b31 (diff) | |
don't index Eigen
Diffstat (limited to 'eigen/unsupported/test/cxx11_tensor_lvalue.cpp')
| -rw-r--r-- | eigen/unsupported/test/cxx11_tensor_lvalue.cpp | 42 |
1 files changed, 0 insertions, 42 deletions
diff --git a/eigen/unsupported/test/cxx11_tensor_lvalue.cpp b/eigen/unsupported/test/cxx11_tensor_lvalue.cpp deleted file mode 100644 index 071f5b4..0000000 --- a/eigen/unsupported/test/cxx11_tensor_lvalue.cpp +++ /dev/null @@ -1,42 +0,0 @@ -// This file is part of Eigen, a lightweight C++ template library -// for linear algebra. -// -// Copyright (C) 2014 Benoit Steiner <benoit.steiner.goog@gmail.com> -// -// This Source Code Form is subject to the terms of the Mozilla -// Public License v. 2.0. If a copy of the MPL was not distributed -// with this file, You can obtain one at http://mozilla.org/MPL/2.0/. - -#include "main.h" - -#include <Eigen/CXX11/Tensor> - -using Eigen::Tensor; -using Eigen::RowMajor; - - -static void test_compound_assignment() -{ - Tensor<float, 3> mat1(2,3,7); - Tensor<float, 3> mat2(2,3,7); - Tensor<float, 3> mat3(2,3,7); - - mat1.setRandom(); - mat2.setRandom(); - mat3 = mat1; - mat3 += mat2; - - for (int i = 0; i < 2; ++i) { - for (int j = 0; j < 3; ++j) { - for (int k = 0; k < 7; ++k) { - VERIFY_IS_APPROX(mat3(i,j,k), mat1(i,j,k) + mat2(i,j,k)); - } - } - } -} - - -void test_cxx11_tensor_lvalue() -{ - CALL_SUBTEST(test_compound_assignment()); -} |
