Graphite
Loading...
Searching...
No Matches
graphite::Dual< T, D > Struct Template Reference

Public Types

using DT = Dual< T, D >
 

Public Member Functions

__host__ __device__ Dual (T real, D dual)
 
__host__ __device__ Dual (T real)
 
__host__ __device__ DT operator+ (const DT &other) const
 
__host__ __device__ DT operator- (const DT &other) const
 
__host__ __device__ DT operator- () const
 
__host__ __device__ DT operator* (const DT &other) const
 
__host__ __device__ DT operator/ (const DT &other) const
 
__host__ __device__ DT & operator+= (const DT &other)
 
__host__ __device__ DT & operator-= (const DT &other)
 
__host__ __device__ DT & operator*= (const DT &other)
 
__host__ __device__ DT & operator/= (const DT &other)
 
__host__ __device__ bool operator< (const DT &other) const
 
__host__ __device__ bool operator> (const DT &other) const
 
__host__ __device__ bool operator<= (const DT &other) const
 
__host__ __device__ bool operator>= (const DT &other) const
 

Public Attributes

real
 
dual
 

Friends

__host__ __device__ friend DT sin (const DT &x)
 
__host__ __device__ friend DT cos (const DT &x)
 
__host__ __device__ friend DT atan (const DT &x)
 
__host__ __device__ friend DT acos (const DT &x)
 
__host__ __device__ friend DT exp (const DT &x)
 
__host__ __device__ friend DT log (const DT &x)
 
__host__ __device__ friend DT sqrt (const DT &x)
 
__host__ __device__ friend DT abs (const DT &x)
 

The documentation for this struct was generated from the following file: