Sacado Package Browser (Single Doxygen Collection)
Version of the Day
Toggle main menu visibility
Loading...
Searching...
No Matches
src
Sacado_CacheFad_GeneralFadExpr.hpp
Go to the documentation of this file.
1
// @HEADER
2
// ***********************************************************************
3
//
4
// Sacado Package
5
// Copyright (2006) Sandia Corporation
6
//
7
// Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation,
8
// the U.S. Government retains certain rights in this software.
9
//
10
// This library is free software; you can redistribute it and/or modify
11
// it under the terms of the GNU Lesser General Public License as
12
// published by the Free Software Foundation; either version 2.1 of the
13
// License, or (at your option) any later version.
14
//
15
// This library is distributed in the hope that it will be useful, but
16
// WITHOUT ANY WARRANTY; without even the implied warranty of
17
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
18
// Lesser General Public License for more details.
19
//
20
// You should have received a copy of the GNU Lesser General Public
21
// License along with this library; if not, write to the Free Software
22
// Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301
23
// USA
24
// Questions? Contact David M. Gay (dmgay@sandia.gov) or Eric T. Phipps
25
// (etphipp@sandia.gov).
26
//
27
// ***********************************************************************
28
// @HEADER
29
30
#ifndef SACADO_CACHEFAD_GENERALFADEXPR_HPP
31
#define SACADO_CACHEFAD_GENERALFADEXPR_HPP
32
33
#include "
Sacado_CacheFad_GeneralFad.hpp
"
34
35
namespace
Sacado
{
36
37
namespace
CacheFad
{
38
40
45
template
<
typename
T,
typename
Storage>
46
class
Expr
<
GeneralFad
<
T
,Storage> > :
public
GeneralFad
<T,Storage> {
47
48
public
:
49
51
typedef
typename
GeneralFad<T,Storage>::value_type
value_type
;
52
54
typedef
typename
GeneralFad<T,Storage>::scalar_type
scalar_type
;
55
57
typedef
typename
BaseExpr< GeneralFad<T,Storage>
>
::type
base_expr_type
;
58
60
SACADO_INLINE_FUNCTION
61
Expr
() :
62
GeneralFad
<
T
,Storage>() {}
63
65
68
template
<
typename
S>
69
SACADO_INLINE_FUNCTION
70
Expr
(
const
S & x,
SACADO_ENABLE_VALUE_CTOR_DECL
) :
71
GeneralFad
<
T
,Storage>(x) {}
72
74
77
SACADO_INLINE_FUNCTION
78
Expr
(
const
int
sz,
const
T
& x,
const
DerivInit
zero_out =
InitDerivArray
) :
79
GeneralFad
<
T
,Storage>(sz,x,zero_out) {}
80
82
87
SACADO_INLINE_FUNCTION
88
Expr
(
const
int
sz,
const
int
i,
const
T
& x) :
89
GeneralFad
<
T
,Storage>(sz,i,x) {}
90
92
SACADO_INLINE_FUNCTION
93
Expr
(
const
Storage& s) :
94
GeneralFad
<
T
,Storage>(s) {}
95
97
SACADO_INLINE_FUNCTION
98
Expr
(
const
Expr
& x) :
99
GeneralFad
<
T
,Storage>(static_cast<const
GeneralFad
<
T
,Storage>&>(x)) {}
100
102
template
<
typename
S>
103
SACADO_INLINE_FUNCTION
104
Expr
(
const
Expr<S>
& x,
SACADO_ENABLE_EXPR_CTOR_DECL
) :
105
GeneralFad
<
T
,Storage>(x) {}
106
108
SACADO_INLINE_FUNCTION
109
~Expr
() {}
110
111
};
// class Expr<GeneralFad>
112
113
}
// namespace CacheFad
114
115
}
// namespace Sacado
116
117
#include "
Sacado_CacheFad_Ops.hpp
"
118
119
#endif
// SACADO_CACHEFAD_GENERALFADEXPR_HPP
Sacado_CacheFad_GeneralFad.hpp
Sacado_CacheFad_Ops.hpp
SACADO_INLINE_FUNCTION
#define SACADO_INLINE_FUNCTION
Definition
Sacado_ConfigDefs.h:110
SACADO_ENABLE_VALUE_CTOR_DECL
#define SACADO_ENABLE_VALUE_CTOR_DECL
Definition
Sacado_SFINAE_Macros.hpp:67
SACADO_ENABLE_EXPR_CTOR_DECL
#define SACADO_ENABLE_EXPR_CTOR_DECL
Definition
Sacado_SFINAE_Macros.hpp:45
T
#define T
Definition
Sacado_rad.hpp:573
Sacado::CacheFad::Expr< GeneralFad< T, Storage > >::~Expr
SACADO_INLINE_FUNCTION ~Expr()
Destructor.
Definition
Sacado_CacheFad_GeneralFadExpr.hpp:109
Sacado::CacheFad::Expr< GeneralFad< T, Storage > >::Expr
SACADO_INLINE_FUNCTION Expr(const int sz, const int i, const T &x)
Constructor with size sz, index i, and value x.
Definition
Sacado_CacheFad_GeneralFadExpr.hpp:88
Sacado::CacheFad::Expr< GeneralFad< T, Storage > >::Expr
SACADO_INLINE_FUNCTION Expr(const Storage &s)
Constructor with supplied storage s.
Definition
Sacado_CacheFad_GeneralFadExpr.hpp:93
Sacado::CacheFad::Expr< GeneralFad< T, Storage > >::Expr
SACADO_INLINE_FUNCTION Expr()
Default constructor.
Definition
Sacado_CacheFad_GeneralFadExpr.hpp:61
Sacado::CacheFad::Expr< GeneralFad< T, Storage > >::Expr
SACADO_INLINE_FUNCTION Expr(const Expr &x)
Copy constructor.
Definition
Sacado_CacheFad_GeneralFadExpr.hpp:98
Sacado::CacheFad::Expr< GeneralFad< T, Storage > >::Expr
SACADO_INLINE_FUNCTION Expr(const S &x, SACADO_ENABLE_VALUE_CTOR_DECL)
Constructor with supplied value x.
Definition
Sacado_CacheFad_GeneralFadExpr.hpp:70
Sacado::CacheFad::Expr< GeneralFad< T, Storage > >::Expr
SACADO_INLINE_FUNCTION Expr(const Expr< S > &x, SACADO_ENABLE_EXPR_CTOR_DECL)
Copy constructor from any Expression object.
Definition
Sacado_CacheFad_GeneralFadExpr.hpp:104
Sacado::CacheFad::Expr< GeneralFad< T, Storage > >::scalar_type
GeneralFad< T, Storage >::scalar_type scalar_type
Typename of scalar's (which may be different from value_type).
Definition
Sacado_CacheFad_GeneralFadExpr.hpp:54
Sacado::CacheFad::Expr< GeneralFad< T, Storage > >::Expr
SACADO_INLINE_FUNCTION Expr(const int sz, const T &x, const DerivInit zero_out=InitDerivArray)
Constructor with size sz and value x.
Definition
Sacado_CacheFad_GeneralFadExpr.hpp:78
Sacado::CacheFad::Expr< GeneralFad< T, Storage > >::value_type
GeneralFad< T, Storage >::value_type value_type
Typename of values.
Definition
Sacado_CacheFad_GeneralFadExpr.hpp:51
Sacado::CacheFad::Expr< GeneralFad< T, Storage > >::base_expr_type
BaseExpr< GeneralFad< T, Storage > >::type base_expr_type
Typename of base-expressions.
Definition
Sacado_CacheFad_GeneralFadExpr.hpp:57
Sacado::CacheFad::GeneralFad::GeneralFad
SACADO_INLINE_FUNCTION GeneralFad()
Default constructor.
Definition
Sacado_CacheFad_GeneralFad.hpp:92
Sacado::CacheFad::GeneralFad::value_type
RemoveConst< T >::type value_type
Typename of values.
Definition
Sacado_CacheFad_GeneralFad.hpp:80
Sacado::CacheFad::GeneralFad::scalar_type
ScalarType< value_type >::type scalar_type
Typename of scalar's (which may be different from T).
Definition
Sacado_CacheFad_GeneralFad.hpp:83
Sacado::CacheFad
Namespace for forward-mode AD classes w/caching.
Definition
Sacado_CacheFad_DFadTraits.hpp:56
Sacado
Definition
Sacado_mpl_apply.hpp:39
Sacado::DerivInit
DerivInit
Enum use to signal whether the derivative array should be initialized in AD object constructors.
Definition
Sacado_Traits.hpp:70
Sacado::InitDerivArray
@ InitDerivArray
Initialize the derivative array.
Definition
Sacado_Traits.hpp:72
Sacado::CacheFad::BaseExpr
Meta-function for determining concrete base expression.
Definition
Sacado_CacheFad_Expression.hpp:69
Generated by
1.17.0