NLAlib.Ops.extendRoutine
Library · def
The interface of a basis extension, for a tree: dimensions [n, k, b]; the basis Q (k * n words, read), the new columns (b * n words, written, continuing the basis), the block W (b * n words, updated in place) and the coefficients C ((k + b) * b words, written). A call supplies Q, W and C. The buffer variables of the tree are Q, W, the new columns, W and C: the inputs followed by the outputs of the operation.
The layout is written out, not generated by routine%: an operand continues the one just before it in interface order, so the new columns must come directly after Q, while routine% places the operands of the right side (the new columns) after those of the left (Q, W), where they would continue W.
NLAlib.Ops.extendRoutine {Op Tst : Type} (body : Ops.Stmt Op Tst) : Ops.Routine Op TstImport NLAlib.Ops.Catalog.OrthRoutine.