NLA-lib Explorer

NLAlib.Krylov.Lanczos.Certification.oracles

Library · def

Standard rounding Oracle: matrix–vector product

The product is the one oracle of a certificate in a model whose operator A d is fixed by the sizes: scalar arithmetic and the vector operations have one contract at every size and input, and the contract of the product does not depend on the stored input. The matrix is in no buffer, and the cost of the certificate is counted in calls of the product and in vector operations.

NLAlib.Krylov.Lanczos.Certification.oracles {K : Type} [Inhabited K] {domain : (Fin 2 → ℕ) → Prop}
  {admitted : ∃ d, domain d}
  (model : Ops.Standard.Model (Krylov.Lanczos.Certification.problem domain admitted) fun d ↦ d 0)
  (A : (d : Fin 2 → ℕ) → Matrix (Fin (d 0)) (Fin (d 0)) ℝ)
  (hOp :
    Ops.Standard.Model.ReadsOperator (Krylov.Lanczos.Certification.inputs domain admitted) model
      fun d x ↦ A d) :
  (Krylov.Lanczos.Certification.inputs domain admitted).Oracles model.access

Full source on GitHub

Import NLAlib.Krylov.Lanczos.Certification.