DifferentialEntry pairs one data item, in one role, with a buffer holding its tangent (forward mode) or cotangent (reverse mode). More...
#include <hydrocouple.h>
Public Attributes | |
| const IComponentDataItem * | item = nullptr |
| The item this derivative belongs to. | |
| DifferentialRole | role = DifferentialRole::Input |
| Which side of the step. | |
| BufferDescriptor | value |
| The tangent or cotangent buffer. | |
DifferentialEntry pairs one data item, in one role, with a buffer holding its tangent (forward mode) or cotangent (reverse mode).
A plain aggregate, like BufferDescriptor, so that a C-ABI shim can carry it. The buffer always spans the item's whole index space: value.shape equals the item's shape() and value.kind equals its dataKind(), which must be Float32 or Float64. The caller owns the memory; the memory-space rules are those of the data plane (a component that cannot service a space returns false with a message).
| const IComponentDataItem* HydroCouple::DifferentialEntry::item = nullptr |
The item this derivative belongs to.
| DifferentialRole HydroCouple::DifferentialEntry::role = DifferentialRole::Input |
Which side of the step.
| BufferDescriptor HydroCouple::DifferentialEntry::value |
The tangent or cotangent buffer.