Fermat
|
Specialization of diff_var to 0-order (i.e. a variable not carrying any differential) This class allows to represent variables that carry associated differentials up to a specified compile-time order with respect to a predefined set of variables
ValType | the value type of the expression |
N | the number of variables the expression is differentiated against |
O | the order of differentiation |
#include <diff.h>
Public Types | |
typedef ValType | value_type |
typedef ValType | diff_component_type |
typedef Vector< diff_component_type, N > | diff_type |
Public Methods | |
CUGAR_HOST_DEVICE | diff_var () |
CUGAR_HOST_DEVICE | diff_var (const diff_var< ValType, N, 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 |
Public Members | |
value_type | u |
|
inline |
default constructor
|
inline |
copy constructor
|
inlineexplicit |
constructor from scalar
_u | scalar value |
|
inline |
return the first-order differential
|
inline |
conversion to scalar
|
inline |
assignment to scalar