NLA-lib Explorer

Example: operands that are not contiguous

Library · Source module

Example: operands that are not contiguous

The block of an operand may be made of runs at a fixed period (NLAlib.Ops.Port.stride): a vector with an increment, a row of a matrix stored by columns.

* scalStrided scales the n cells of a vector with increment inc, in place. * swapRows exchanges two rows of a matrix stored by columns with leading dimension lda. The two rows are interleaved in one buffer; the routine is separated by block, and its judgment requires only that their cells differ. * swapMatrixRows calls it on rows i < j of a matrix with p rows and n columns given as one contiguous block.

Main definitions

* NLAlib.Ops.Examples.Strided.scalStrided, NLAlib.Ops.Examples.Strided.swapRows, NLAlib.Ops.Examples.Strided.swapMatrixRows: the routines.

Main results

* NLAlib.Ops.Examples.Strided.scalStrided_meets, NLAlib.Ops.Examples.Strided.swapRows_meets, NLAlib.Ops.Examples.Strided.swapMatrixRows_meets: their judgments. * NLAlib.Ops.Examples.Strided.countPoly_scalStrided, NLAlib.Ops.Examples.Strided.countPoly_swapMatrixRows: instruction counts, evaluated by the kernel.

Declarations