Docs / nablatensor-quant / com.nablatensor.quant
interface
Product
A payoff recorded against a market record M (Seam 1). M is EquityMarket for the built-in equity catalogue; any double-only record works, so a rates or FX payoff records against its own market type through the same interface.
An implementation writes the valuation in plain Java over ADouble scalars and calls rec.output(...) exactly once. It never touches a device or a Greek: the engine records the tape and one adjoint sweep produces every sensitivity.
The built-ins live in Products. To price something the catalogue does not cover, pass a lambda of this shape straight to of(Product) — changing a payoff is a three-line diff, not a fork.
Methods
Records the discounted payoff.
Short label used in reports and example output.