NLA-lib Explorer

Catalog: products with a matrix and with its adjoint

Library · Source module

Catalog: products with a matrix and with its adjoint

NLAlib.Ops.OperatorPairOp.matvec [m, n] [x] [y] applies a fixed m × n matrix to an input block of length n and writes an output block of length m in a different buffer. NLAlib.Ops.OperatorPairOp.rmatvec [n, m] [x] [y] applies its adjoint to an input block of length m and writes an output block of length n in a different buffer. The dimensions of rmatvec are those of the adjoint, so both operations have the operand shape and the admission of NLAlib.Ops.OperatorOp.matvec, and their contracts are the relations NLAlib.Ops.matvecRel and NLAlib.Ops.matvecErrorRel at the matrix and at its adjoint.

The pair is a separate group of operations: a program names the two products as two distinct operations, and no model, profile or certificate of NLAlib.Ops.OperatorOp changes.

Main definitions

* NLAlib.Ops.OperatorPairOp: the two operations. * NLAlib.Ops.IsExactMatvecPair: both products are exact. * NLAlib.Ops.IsMatvecPair: both products meet a normwise error allowance.

Main results

* NLAlib.Ops.Interp.Satisfies.matvecErrorRel_of_matvecRel, NLAlib.Ops.Interp.Satisfies.matvecErrorRel_mono: the exact contract of one product gives every rounded one, and a rounded one is monotone in its allowance, for any operation name. * NLAlib.Ops.IsExactMatvecPair.isMatvecPair, NLAlib.Ops.IsMatvecPair.mono: the same for the pair. * NLAlib.Ops.exists_isExactMatvecPair: the exact real products realize the pair of contracts for every rectangular matrix.

Declarations