NLAlib.Ops.Examples.WorkedInstances.Integrator.instance_run
Library · theorem
The instance. With exact operations, from the buffers holding h = 1/2 and \mathbf{x}_0 = (4, 8), the execution rules derive one outcome of two steps of the integrator: the second buffer holds [11, 2]; the run makes 2 products with \mathbf{A} at the dimensions [2, 2] and 2 updates at [2], and no other operation; its work is 91; its peak scratch is 2 cells.
NLAlib.Ops.Examples.WorkedInstances.Integrator.instance_run
(I : Ops.Interp Ops.Examples.Integrator.MyOperation Empty ℝ)
(hI :
(Ops.Examples.Integrator.myModel Ops.Examples.WorkedInstances.Integrator.skew 0 0 ⋯ ⋯).contracts
![2, 2] (Ops.Examples.Integrator.myDomain.input ![2, 2] (1 / 2, ![4, 8]) trivial) I)
(τ : Ops.Tape ℝ) :
∃ st,
Ops.Reference.Execution Ops.Examples.Integrator.myProgram I Ops.Examples.Integrator.myResources
Ops.Examples.Integrator.myProblem.formats τ ![2, 2]
(Ops.Examples.Integrator.myProblem.initial ![2, 2]
(Ops.Examples.Integrator.myDomain.input ![2, 2] (1 / 2, ![4, 8]) trivial))
st ∧
st.mem.store.readBlock 1 0 2 = some [11, 2] ∧
Ops.Count.original st.cost =
2 •
(Ops.Count.one Ops.Examples.Integrator.MyOperation.matvec [2, 2] +
Ops.Count.one Ops.Examples.Integrator.MyOperation.axpy [2]) ∧
Ops.Examples.Integrator.myResources.work st.cost = 91 ∧ st.peak = 2Import NLAlib.Ops.Examples.WorkedInstances.Integrator.