NLA-lib Explorer

Views: blocks made of runs

Library · Source module

Views: blocks made of runs

The block of an operand is a contiguous run of cells, or several runs of the same length at a fixed period: a vector with an increment, a row of a matrix stored by columns, a submatrix of a matrix with a leading dimension. A NLAlib.Ops.View is the shape of such a block: len cells, or count runs of len cells, one run every period cells. The contents of the block are its cells in order, run after run.

This file gives the cells of a view, the read of a view from a store, its footprint, the room it needs, and the lists of these that a routine uses. On a contiguous view each of them is, by computation, the corresponding notion for blocks (NLAlib.Ops.Store.readBlock, NLAlib.Ops.Store.inBlock, NLAlib.Ops.Mem.Room).

Main definitions

* NLAlib.Ops.View, NLAlib.Ops.View.cells, NLAlib.Ops.View.offset: a shape, its number of cells and the offset of each cell. * NLAlib.Ops.Store.readView, NLAlib.Ops.Fp.inView, NLAlib.Ops.View.Fits: the read, the footprint and the room of one view. * NLAlib.Ops.Mem.readViews, NLAlib.Ops.Fp.views, NLAlib.Ops.Fp.ApartViews, NLAlib.Ops.Mem.RoomViews: the same for the operands of a call.

Main results

* NLAlib.Ops.Store.readView_eq_some_iff: a view is read cell by cell. * NLAlib.Ops.View.offset_inj: the cells of a view whose runs do not overlap are distinct. * NLAlib.Ops.Store.readView_upd: writing one cell of a view. * NLAlib.Ops.Fp.disj_inView_of_residues: two views of one buffer with the same period are disjoint when their runs occupy disjoint ranges of the period. * NLAlib.Ops.Mem.readViews_blocks, NLAlib.Ops.Fp.views_blocks, NLAlib.Ops.Mem.roomViews_blocks: on contiguous views these are the notions for blocks.

Declarations