NLA-lib Explorer

NLAlib.QueryAlgorithm.resample

Library ยท def

The resampled matrix of an algorithm with q pair queries to twoSidedMulVec X, \mathbf{X} \in \Bbbk^{d \times k}: with \mathbf{E} = \mathbf{I} - \mathbf{P}_{\mathbf{U}} and \mathbf{F} = \mathbf{I} - \mathbf{P}_{\mathbf{W}}, where the columns of \mathbf{U} and \mathbf{W} are the left parts and the right parts of the queries made on \mathbf{X} (QueryAlgorithm.leftQueryMatrix, QueryAlgorithm.rightQueryMatrix), \mathsf{resample}(\mathbf{X}, \mathbf{X}') = \mathbf{X} - \mathbf{E}\mathbf{X}\mathbf{F} + \mathbf{E}\mathbf{X}'\mathbf{F}\,. It agrees with \mathbf{X} on every query, so the algorithm cannot tell them apart (QueryAlgorithm.transcript_resample).

NLAlib.QueryAlgorithm.resample.{u_1, u_2, u_3, u_4} {๐•œ : Type u_1} [RCLike ๐•œ] {d : Type u_2}
  {k : Type u_3} {ฮฒ : Type u_4} [Fintype d] [Fintype k] [DecidableEq d] [DecidableEq k] {q : โ„•}
  (alg : QueryAlgorithm ((k โ†’ ๐•œ) ร— (d โ†’ ๐•œ)) ((d โ†’ ๐•œ) ร— (k โ†’ ๐•œ)) q ฮฒ) (X X' : Matrix d k ๐•œ) :
  Matrix d k ๐•œ

Full source on GitHub

Import NLAlib.LowerBounds.QueryModel.DeferredDecision.