conatus.expert.HillGPU

class conatus.expert.HillGPU(hill, *, patch=None, affine_check_tol=1e-12)[source]

Bases: object

Device mirror of a μ-affine HillBlocks (optionally with μ-dependent patched rows).

patch(mu) -> (rows, values): block rows rows of every harmonic’s diagonal block are replaced by values[k] (shape (len(rows), size)) for harmonic index k; Without patch the operator must be exactly μ-affine, which is checked at construction (refused otherwise).

Parameters:
  • hill (HillBlocks)

  • patch (Callable[[complex], tuple] | None)

  • affine_check_tol (float)

slogdet(mus)[source]

(phases, log|det|) of M(μ_p) for every μ_p in mus (batched on the device).

Return type:

tuple[ndarray, ndarray]

explain()[source]
Return type:

str