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 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: