conatus.expert.DataInnerProduct

class conatus.expert.DataInnerProduct(kind, n, w=None, F=None, note='')[source]

Bases: object

⟨a, b⟩ = aᴴ W b on flattened snapshots of length n (see module doc).

Parameters:
  • kind (str)

  • n (int)

  • w (Any)

  • F (Any)

  • note (str)

kind: str
n: int
w: Any = None
F: Any = None
note: str = ''
classmethod quadrature(w, *, note='')[source]
Parameters:

note (str)

Return type:

DataInnerProduct

classmethod gram(W, *, note='')[source]
Parameters:

note (str)

Return type:

DataInnerProduct

classmethod euclidean(n)[source]
Parameters:

n (int)

Return type:

DataInnerProduct

classmethod from_grid(grid, *, components, weights)[source]

Stacked components (e.g. u, v, w) on a conatus.diagnostics.Grid: ⟨a, b⟩ = Σ_c weights[c] ∫ ā_c b_c dV with the grid’s exact quadrature (trapezoid × Fejér). Snapshots are flattened component-major (C order of an array (ncomp, *grid.shape)).

Parameters:
  • components (Sequence[str])

  • weights (dict)

Return type:

DataInnerProduct

check(X)[source]
Return type:

None

half(X)[source]

F X: coordinates in which the product is Euclidean (X: n × m, NumPy or CuPy).

unhalf(Y)[source]

F⁻¹ Y (inverse of half()).

inner(a, b)[source]

aᴴ W b for vectors or matrices (columns).

explain()[source]
Return type:

str