Fermat
|
Specialization of diff_var to scalar (i.e. 1-component) differentials This class allows to represent variables that carry an associated first-order differential (or gradient) with respect to a predefined set of variables.
ValType | the value type of the expression |
DiffType | the type of differential / gradient of the expression |
#include <diff.h>
Public Types | |
typedef ValType | value_type |
typedef diff_var< ValType, 1, O-1 > | diff_component_type |
typedef diff_component_type | diff_type |
Public Methods | |
CUGAR_HOST_DEVICE | diff_var () |
CUGAR_HOST_DEVICE | diff_var (const diff_var< ValType, 1, O > &_other) |
CUGAR_HOST_DEVICE | diff_var (const value_type _u, const diff_type _du) |
CUGAR_HOST_DEVICE | diff_var (const value_type _u, const value_type _du) |
CUGAR_HOST_DEVICE | diff_var (value_type _u) |
CUGAR_HOST_DEVICE | operator value_type () const |
CUGAR_HOST_DEVICE diff_var & | operator= (const value_type &_u) |
CUGAR_HOST_DEVICE diff_type | diff () const |
CUGAR_HOST_DEVICE const diff_var< ValType, 1, O > & | operator[] (const uint32 i) const |
CUGAR_HOST_DEVICE diff_var< ValType, 1, O > & | operator[] (const uint32 i) |
Public Members | |
value_type | u |
diff_type | du |
|
inline |
default constructor
|
inline |
copy constructor
|
inline |
constructor
_u | scalar value |
_du | differential |
|
inline |
constructor
_u | scalar value |
_du | differential |
|
inlineexplicit |
constructor from scalar
_u | scalar value |
|
inline |
return the first-order differential
|
inline |
conversion to scalar
|
inline |
assignment to scalar