Project

General

Profile

Feature #1788

Updated by Anna Maria Bigatti 2 months ago

I went through all the calls of submat in CoCoALib (not so many) and indeed most of them just select the *first rows*.


Should we have another MatrixView class called @FirstRows(M, (called @FirstRowsCols(M, long r)@?
Or, much easier to implement, a function called @FirstRows(M,
r, long r)@?
(same for cols)
c)@?)?

The Its implementation of a new MatrixView could be quite a bit simpler than the implementation of submat, submat.

We could make two: FirstRows(M,r) and FirstCols(M,c),
but problably not worth the effort a single one would be equivalently readable and "duplication" of code. a tiny bit more flexible.

Back