verry.autodiff.Dual#
- class verry.autodiff.Dual(real, imag)#
Bases:
Scalar,ABC,GenericAbstract base class for dual numbers.
- Parameters:
real (T)
imag (Iterable[T])
- Variables:
real (T)
imag (list[T])
Warning
Users cannot define classes derived from this.
See also
Notes
Instances of this class behave like elements of the dual number ring
\[T[x_1,x_2,\dotsc,x_n]/(x_ix_j\mid i,j\in\{1,2,\dotsc,n\}),\]where \(n\) is the length of imag.