Go to the documentation of this file.
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) {
104 for (
int i = 0;
i < 2; ++
i) {
105 for (
int j = 0;
j < 2; ++
j) {
106 for (
int k = 0; k < 3; ++k) {
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) {
191 slice.coeffRef(0, 0, 0, 0) = 1.0f;
192 slice.coeffRef(1, 0, 0, 0) += 2.0f;
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);
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_DEVICE_FUNC EIGEN_STRONG_INLINE Index dimension(std::size_t n) const
EIGEN_DECLARE_TEST(cxx11_tensor_ref)
static void test_multiple_dims()
A reference to a tensor expression The expression will be evaluated lazily (as much as possible).
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE Scalar & coeffRef(Index i0, Index i1)
#define VERIFY_IS_EQUAL(a, b)
static void test_ref_of_ref()
const Vector3 bias(1, 2, 3)
std::vector< Array2i > sizes
EIGEN_DEVICE_FUNC const EIGEN_STRONG_INLINE Scalar * data() const
static void test_simple_lvalue_ref()
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE Index dimension(Index n) const
static void test_nested_ops_with_ref()
static void test_coeff_ref()
static const Line3 l(Rot3(), 1, 1)
EIGEN_DEVICE_FUNC const EIGEN_STRONG_INLINE TensorChippingOp< DimId, const Tensor< Scalar_, NumIndices_, Options_, IndexType_ > > chip(const Index offset) const
A tensor expression mapping an existing array of data.
Point2(* f)(const Point3 &, OptionalJacobian< 2, 3 >)
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE Tensor< Scalar_, NumIndices_, Options_, IndexType_ > & setRandom()
static void test_ref_in_expr()
#define VERIFY_IS_NOT_EQUAL(a, b)
Reference counting helper.
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE Scalar * data()
EIGEN_DEVICE_FUNC const EIGEN_STRONG_INLINE TensorSlicingOp< const StartIndices, const Sizes, const Tensor< Scalar_, NumIndices_, Options_, IndexType_ > > slice(const StartIndices &startIndices, const Sizes &sizes) const
static void test_simple_rvalue_ref()
#define CALL_SUBTEST(FUNC)
gtsam
Author(s):
autogenerated on Sat Nov 16 2024 04:02:09