Sacado Package Browser (Single Doxygen Collection)  Version of the Day
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Macros | Typedefs | Functions | Variables
Fad_Fad_KokkosTests.hpp File Reference
#include "Teuchos_TestingHelpers.hpp"
#include "Sacado.hpp"
#include "Kokkos_DynRankView_Fad.hpp"
Include dependency graph for Fad_Fad_KokkosTests.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define VIEW_FAD_TESTS_FLD(F, L, D)
 
#define VIEW_FAD_TESTS_FD(F, D)
 
#define VIEW_FAD_TESTS_D(D)   /* */
 

Typedefs

typedef Sacado::Fad::SFad
< double,
global_inner_fad_size
InnerFadType
 
typedef Sacado::Fad::DFad
< InnerFadType
DFadType
 
typedef Sacado::Fad::SLFad
< InnerFadType,
2 *global_outer_fad_size
SLFadType
 
typedef Sacado::Fad::SFad
< InnerFadType,
global_outer_fad_size
SFadType
 

Functions

template<typename FadType1 , typename FadType2 >
bool checkFads (const FadType1 &x, const FadType2 &x2, Teuchos::FancyOStream &out, double tol=1.0e-15)
 
template<typename FadType1 , typename FadType2 >
bool checkNestedFads (const FadType1 &x, const FadType2 &x2, Teuchos::FancyOStream &out, double tol=1.0e-15)
 
template<typename fadfadtype , typename ordinal >
fadfadtype generate_nested_fad (const ordinal num_rows, const ordinal num_cols, const ordinal outer_fad_size, const ordinal inner_fad_size, const ordinal row, const ordinal col)
 
 TEUCHOS_UNIT_TEST_TEMPLATE_3_DECL (Kokkos_View_FadFad, DeepCopy, FadFadType, Layout, Device)
 
 TEUCHOS_UNIT_TEST_TEMPLATE_3_DECL (Kokkos_DynRankView_FadFad, DeepCopy, FadFadType, Layout, Device)
 
 TEUCHOS_UNIT_TEST_TEMPLATE_3_DECL (Kokkos_DynRankView_FadFad, Interop, FadFadType, Layout, Device)
 
 TEUCHOS_UNIT_TEST_TEMPLATE_3_DECL (Kokkos_DynRankView_FadFad, Interop2, FadFadType, Layout, Device)
 

Variables

const int global_num_rows = 11
 
const int global_num_cols = 7
 
const int global_outer_fad_size = 5
 
const int global_inner_fad_size = 3
 

Macro Definition Documentation

#define VIEW_FAD_TESTS_FLD (   F,
  L,
  D 
)
Value:
TEUCHOS_UNIT_TEST_TEMPLATE_3_INSTANT( Kokkos_View_FadFad, DeepCopy, F, L, D ) \
TEUCHOS_UNIT_TEST_TEMPLATE_3_INSTANT( Kokkos_DynRankView_FadFad, DeepCopy, F, L, D ) \
TEUCHOS_UNIT_TEST_TEMPLATE_3_INSTANT( Kokkos_DynRankView_FadFad, Interop, F, L, D ) \
TEUCHOS_UNIT_TEST_TEMPLATE_3_INSTANT( Kokkos_DynRankView_FadFad, Interop2, F, L, D )
#define TEUCHOS_UNIT_TEST_TEMPLATE_3_INSTANT(TEST_GROUP, TEST_NAME, TYPE1, TYPE2, TYPE3)

Definition at line 333 of file Fad_Fad_KokkosTests.hpp.

#define VIEW_FAD_TESTS_FD (   F,
  D 
)
Value:
using Kokkos::LayoutLeft; \
using Kokkos::LayoutRight; \
VIEW_FAD_TESTS_FLD( F, LayoutLeft, D) \
VIEW_FAD_TESTS_FLD( F, LayoutRight, D)
#define VIEW_FAD_TESTS_FLD(F, L, D)

Definition at line 339 of file Fad_Fad_KokkosTests.hpp.

#define VIEW_FAD_TESTS_D (   D)    /* */

Definition at line 366 of file Fad_Fad_KokkosTests.hpp.

Typedef Documentation

Definition at line 347 of file Fad_Fad_KokkosTests.hpp.

Definition at line 348 of file Fad_Fad_KokkosTests.hpp.

Definition at line 349 of file Fad_Fad_KokkosTests.hpp.

Definition at line 350 of file Fad_Fad_KokkosTests.hpp.

Function Documentation

template<typename FadType1 , typename FadType2 >
bool checkFads ( const FadType1 &  x,
const FadType2 &  x2,
Teuchos::FancyOStream out,
double  tol = 1.0e-15 
)

Definition at line 35 of file Fad_Fad_KokkosTests.hpp.

template<typename FadType1 , typename FadType2 >
bool checkNestedFads ( const FadType1 &  x,
const FadType2 &  x2,
Teuchos::FancyOStream out,
double  tol = 1.0e-15 
)

Definition at line 54 of file Fad_Fad_KokkosTests.hpp.

template<typename fadfadtype , typename ordinal >
fadfadtype generate_nested_fad ( const ordinal  num_rows,
const ordinal  num_cols,
const ordinal  outer_fad_size,
const ordinal  inner_fad_size,
const ordinal  row,
const ordinal  col 
)
inline

Definition at line 74 of file Fad_Fad_KokkosTests.hpp.

TEUCHOS_UNIT_TEST_TEMPLATE_3_DECL ( Kokkos_View_FadFad  ,
DeepCopy  ,
FadFadType  ,
Layout  ,
Device   
)

Definition at line 111 of file Fad_Fad_KokkosTests.hpp.

TEUCHOS_UNIT_TEST_TEMPLATE_3_DECL ( Kokkos_DynRankView_FadFad  ,
DeepCopy  ,
FadFadType  ,
Layout  ,
Device   
)

Definition at line 324 of file Fad_Fad_KokkosTests.hpp.

TEUCHOS_UNIT_TEST_TEMPLATE_3_DECL ( Kokkos_DynRankView_FadFad  ,
Interop  ,
FadFadType  ,
Layout  ,
Device   
)

Definition at line 326 of file Fad_Fad_KokkosTests.hpp.

TEUCHOS_UNIT_TEST_TEMPLATE_3_DECL ( Kokkos_DynRankView_FadFad  ,
Interop2  ,
FadFadType  ,
Layout  ,
Device   
)

Definition at line 328 of file Fad_Fad_KokkosTests.hpp.

Variable Documentation

const int global_num_rows = 11

Definition at line 106 of file Fad_Fad_KokkosTests.hpp.

const int global_num_cols = 7

Definition at line 107 of file Fad_Fad_KokkosTests.hpp.

const int global_outer_fad_size = 5

Definition at line 108 of file Fad_Fad_KokkosTests.hpp.

const int global_inner_fad_size = 3

Definition at line 109 of file Fad_Fad_KokkosTests.hpp.