cxx11_tensor_empty.cpp File Reference
#include "main.h"
#include <Eigen/CXX11/Tensor>

Functions

static void test_empty_tensor ()
 
static void test_empty_fixed_size_tensor ()
 
 EIGEN_DECLARE_TEST (cxx11_tensor_empty)
 

Function Documentation

◆ EIGEN_DECLARE_TEST()

EIGEN_DECLARE_TEST ( cxx11_tensor_empty  )
32  {
35 }
static void test_empty_tensor()
Definition: cxx11_tensor_empty.cpp:14
static void test_empty_fixed_size_tensor()
Definition: cxx11_tensor_empty.cpp:23
#define CALL_SUBTEST(FUNC)
Definition: main.h:382

References CALL_SUBTEST, test_empty_fixed_size_tensor(), and test_empty_tensor().

◆ test_empty_fixed_size_tensor()

static void test_empty_fixed_size_tensor ( )
static
23  {
28  tgt3 = tgt1;
29  tgt3 = tgt2;
30 }
The fixed sized version of the tensor class.
Definition: TensorFixedSize.h:30
void source(const Vector< double > &x, Vector< double > &f)
Source function.
Definition: unstructured_two_d_circle.cc:46

References TestProblem::source().

Referenced by EIGEN_DECLARE_TEST().

◆ test_empty_tensor()

static void test_empty_tensor ( )
static
14  {
16  Tensor<float, 2> tgt1 = source;
18  Tensor<float, 2> tgt3;
19  tgt3 = tgt1;
20  tgt3 = tgt2;
21 }
The tensor class.
Definition: Tensor.h:68

References TestProblem::source().

Referenced by EIGEN_DECLARE_TEST().