#include "Teuchos_TestingHelpers.hpp"
#include "Sacado.hpp"
#include "Kokkos_DynRankView_Fad.hpp"
Go to the source code of this file.
|
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) |
|
◆ VIEW_FAD_TESTS_FLD
#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 )
Definition at line 333 of file Fad_Fad_KokkosTests.hpp.
◆ VIEW_FAD_TESTS_FD
#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)
Definition at line 339 of file Fad_Fad_KokkosTests.hpp.
◆ VIEW_FAD_TESTS_D
#define VIEW_FAD_TESTS_D |
( |
| D | ) |
/* */ |
◆ InnerFadType
◆ DFadType
◆ SLFadType
◆ SFadType
◆ checkFads()
template<typename FadType1 , typename FadType2 >
bool checkFads |
( |
const FadType1 & | x, |
|
|
const FadType2 & | x2, |
|
|
Teuchos::FancyOStream & | out, |
|
|
double | tol = 1.0e-15 ) |
◆ checkNestedFads()
template<typename FadType1 , typename FadType2 >
bool checkNestedFads |
( |
const FadType1 & | x, |
|
|
const FadType2 & | x2, |
|
|
Teuchos::FancyOStream & | out, |
|
|
double | tol = 1.0e-15 ) |
◆ generate_nested_fad()
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 |
◆ TEUCHOS_UNIT_TEST_TEMPLATE_3_DECL() [1/4]
TEUCHOS_UNIT_TEST_TEMPLATE_3_DECL |
( |
Kokkos_View_FadFad | , |
|
|
DeepCopy | , |
|
|
FadFadType | , |
|
|
Layout | , |
|
|
Device | ) |
◆ TEUCHOS_UNIT_TEST_TEMPLATE_3_DECL() [2/4]
TEUCHOS_UNIT_TEST_TEMPLATE_3_DECL |
( |
Kokkos_DynRankView_FadFad | , |
|
|
DeepCopy | , |
|
|
FadFadType | , |
|
|
Layout | , |
|
|
Device | ) |
◆ TEUCHOS_UNIT_TEST_TEMPLATE_3_DECL() [3/4]
TEUCHOS_UNIT_TEST_TEMPLATE_3_DECL |
( |
Kokkos_DynRankView_FadFad | , |
|
|
Interop | , |
|
|
FadFadType | , |
|
|
Layout | , |
|
|
Device | ) |
◆ TEUCHOS_UNIT_TEST_TEMPLATE_3_DECL() [4/4]
TEUCHOS_UNIT_TEST_TEMPLATE_3_DECL |
( |
Kokkos_DynRankView_FadFad | , |
|
|
Interop2 | , |
|
|
FadFadType | , |
|
|
Layout | , |
|
|
Device | ) |
◆ global_num_rows
const int global_num_rows = 11 |
◆ global_num_cols
const int global_num_cols = 7 |
◆ global_outer_fad_size
const int global_outer_fad_size = 5 |
◆ global_inner_fad_size
const int global_inner_fad_size = 3 |