template<typename ValType>
struct cugar::diff_var< ValType, 1, 0 >
Specialization of diff_var to scalar (i.e. 1-component) zero-order differentials. This class allows to represent variables that carry an associated first-order differential (or gradient) with respect to a predefined set of variables.
- Template Parameters
-
ValType | the value type of the expression |
DiffType | the type of differential / gradient of the expression |
|
CUGAR_HOST_DEVICE | diff_var () |
|
CUGAR_HOST_DEVICE | diff_var (const diff_var< ValType, 1, 0 > &_other) |
|
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, 0 > & | operator[] (const uint32 i) const |
|
CUGAR_HOST_DEVICE diff_var< ValType, 1, 0 > & | operator[] (const uint32 i) |
|