dual-class: S4 class "dual"

Description Slots Note

Description

This class attaches a dual component to a number / matrix.

Slots

x

scalar, vector or matrix; also accepts any matrix classes from the "Matrix" package.

dx

matrix; also accepts any matrix classes from the "Matrix" package.

param

a named list, containing the column indices each variable occupies.

Note

Users should not construct the object directly, instead, use the constructor helper dual provided.


ADtools documentation built on Nov. 9, 2020, 5:09 p.m.