conatus.expert.InnerProduct

class conatus.expert.InnerProduct(plan, weights=None)[source]

Bases: object

Weighted L² inner product on the field unknowns of a plan group.

Parameters:

weights (Mapping[str, float] | None)

explain()[source]

The product and its weights.

Return type:

str

gram(group=None, reduced=None)[source]

Hermitian positive semi-definite W on the group’s column space.

Parameters:

reduced (bool | None)

Return type:

csr_matrix

inner(x, y, group=None, reduced=None)[source]

⟨x, y⟩ = xᴴ W y on the group’s column space.

Parameters:
  • x (ndarray)

  • y (ndarray)

Return type:

complex

norm(x, group=None, reduced=None)[source]

sqrt⟨x, x⟩ (round-off negative values clipped to 0).

Parameters:

x (ndarray)

Return type:

float

adjoint(A, group=None, reduced=None)[source]

A† = W⁻¹ Aᴴ W, refused when W is singular (tau / zero-weight columns).

Return type:

ndarray