Macros | Functions
cxx11_tensor_sugar.cpp File Reference
#include "main.h"
#include <Eigen/CXX11/Tensor>
Include dependency graph for cxx11_tensor_sugar.cpp:

Go to the source code of this file.

Macros

#define TEST_OP(op)   TEST_TENSOR_EQUAL(t op 0, t op t.constant(0))
 
#define TEST_TENSOR_EQUAL(e1, e2)
 

Functions

 EIGEN_DECLARE_TEST (cxx11_tensor_sugar)
 
static void test_comparison_sugar ()
 
static void test_scalar_sugar_add_mul ()
 
static void test_scalar_sugar_sub_div ()
 

Macro Definition Documentation

◆ TEST_OP

#define TEST_OP (   op)    TEST_TENSOR_EQUAL(t op 0, t op t.constant(0))

◆ TEST_TENSOR_EQUAL

#define TEST_TENSOR_EQUAL (   e1,
  e2 
)
Value:
b = ((e1) == (e2)).all(); \
VERIFY(b())

Function Documentation

◆ EIGEN_DECLARE_TEST()

EIGEN_DECLARE_TEST ( cxx11_tensor_sugar  )

Definition at line 76 of file cxx11_tensor_sugar.cpp.

◆ test_comparison_sugar()

static void test_comparison_sugar ( )
static

Definition at line 8 of file cxx11_tensor_sugar.cpp.

◆ test_scalar_sugar_add_mul()

static void test_scalar_sugar_add_mul ( )
static

Definition at line 36 of file cxx11_tensor_sugar.cpp.

◆ test_scalar_sugar_sub_div()

static void test_scalar_sugar_sub_div ( )
static

Definition at line 56 of file cxx11_tensor_sugar.cpp.

b
Scalar * b
Definition: benchVecAdd.cpp:17
Eigen::all
static const Eigen::internal::all_t all
Definition: IndexedViewHelper.h:171


gtsam
Author(s):
autogenerated on Sat Nov 16 2024 04:09:46