Catalog: extension of a stored basis by a block
Library · Source module
Catalog: extension of a stored basis by a block
NLAlib.Ops.OrthOp.extend [n, k, b] [Q, W] [Q', W, C] orthogonalizes a block against a stored basis. All blocks are column-major, one word per entry.
* Q is the stored basis: k columns of length n, read only. * W is the block: b columns of length n. It is an input and an output: the operation may use it as workspace, and its contract says nothing of the words left there. * Q' is the new block of b columns. Its operand is the end of Q: the same buffer, at the offset of Q plus k * n. So the basis and the new block are one contiguous stored block of k + b columns, which is the basis of the next call. * C is the coefficient block of k + b rows and b columns: its first k rows are the coefficients \mathbf{H} of the block against the old columns and its last b rows the coefficients \mathbf{R} against the new ones.
The three buffers of Q, W and C are distinct. The admission NLAlib.Ops.ExtendOperands is a predicate on the evaluated handles and offsets, so the adjacency of Q' and Q is an equation between two operands. A block of length zero (k = 0, the first block of a basis) is read and written as the empty list at any offset of a live buffer.
The mathematical contract is a parameter of NLAlib.Ops.extendRelOf: a predicate on the decoded matrices \mathbf{Q}, \mathbf{W}, \mathbf{Q}', \mathbf{H}, \mathbf{R}. This file is in the operation core, which does not import the matrix layer; the exact and the rounded contract of a basis extension are instances stated where the matrix predicates are available.
Main definitions
* NLAlib.Ops.OrthOp: the operation. * NLAlib.Ops.ExtendOperands: the admitted operands. * NLAlib.Ops.decodeMatrix, NLAlib.Ops.coefTop, NLAlib.Ops.coefBot: a stored block as a matrix, and the two parts of the coefficient block. * NLAlib.Ops.ExtendPred, NLAlib.Ops.ExtendOut, NLAlib.Ops.extendRelOf: the contract of the operation for a given predicate on the decoded matrices.
Main results
* NLAlib.Ops.decv_drop_take: a column of a stored block, decoded, is the column of the decoded block. * NLAlib.Ops.extendRelOf_rel_mono, NLAlib.Ops.Interp.Satisfies.extendRelOf_mono: a contract with a weaker predicate and fewer admitted dimensions is met.
Declarations
- NLAlib.Ops.ExtendOperands
- NLAlib.Ops.ExtendOut
- NLAlib.Ops.ExtendPred
- NLAlib.Ops.Interp.Satisfies.extendRelOf_mono
- NLAlib.Ops.OrthOp
- NLAlib.Ops.OrthOp.ofNat
- NLAlib.Ops.OrthOp.ofNat_ctorIdx
- NLAlib.Ops.coefBot
- NLAlib.Ops.coefTop
- NLAlib.Ops.decodeMatrix
- NLAlib.Ops.decodeMatrix_apply
- NLAlib.Ops.decv_drop_take
- NLAlib.Ops.extendRelOf
- NLAlib.Ops.extendRelOf_dom
- NLAlib.Ops.extendRelOf_inLens
- NLAlib.Ops.extendRelOf_nd
- NLAlib.Ops.extendRelOf_outLens
- NLAlib.Ops.extendRelOf_rel
- NLAlib.Ops.extendRelOf_rel_mono
- NLAlib.Ops.extendRelOf_stream
- NLAlib.Ops.extendRelOf_win