rxmc.covariance.TermContext#

class rxmc.covariance.TermContext(x: ndarray, y: ndarray, ym: ndarray | None, support: ndarray)[source]#

Bases: object

A term’s local view of the stack on its own support.

x are the coordinates on the support — ctx.x[support] passed through the term’s coords transform (so x may be 2-D); y and ym are the observed data and model prediction on the support (ym is None when a constant covariance is assembled without a model prediction), and support the stacked indices this view corresponds to. len(c) is the number of points.

__init__(x: ndarray, y: ndarray, ym: ndarray | None, support: ndarray) → None#

Methods

__init__(x, y, ym, support)

Attributes

x: ndarray#
y: ndarray#
ym: ndarray | None#
support: ndarray#