NLA-lib Explorer

NLAlib.Ops.Standard.Model.oracles

Library · def

Standard rounding Oracle: matrix–vector product

The product is the oracle of a standard model that reads its operator from the unstored input: scalar arithmetic and the vector operations have one contract at every size and input, and the contract of the product depends on the input only through the operator. The cost of a certificate in this model is counted in calls of the product and in vector operations.

NLAlib.Ops.Standard.Model.oracles {K : Type} [Inhabited K] {r b : ℕ}
  {R : Ops.Routine Ops.Standard.Operation Ops.CmpTst} {n : (Fin r → ℕ) → ℕ} (D : R.Domain K r b)
  (m : Ops.Standard.Model D.problem n)
  (op : (d : Fin r → ℕ) → D.Unstored d → Matrix (Fin (n d)) (Fin (n d)) ℝ)
  (h : Ops.Standard.Model.ReadsOperator D m op) : D.Oracles m.access

Full source on GitHub

Import NLAlib.Ops.Profiles.StandardOracles.