Project

General

Profile

Feature #202

MatrixView for viewing a single row or column

Added by Anna Maria Bigatti over 5 years ago. Updated 4 months ago.

Status:
In Progress
Priority:
Normal
Assignee:
-
Category:
Data Structures
Target version:
Start date:
04 Jul 2012
Due date:
% Done:

50%

Estimated time:
Spent time:

Description

We should make a special view for a row or column since the C++/STL for calling submat is so bad (vector containing all row indices has no easy C++ constructor)

The main difficulty is finding a good name to highlight the result is a MatrixView and non a vector....
- SingleRow?
- OneRow?
- OneRowSubmat?


Related issues

Related to CoCoALib - Bug #1014: RowMat, ColMat with arg an empty list/vectorIn Progress2017-02-24

History

#1 Updated by Anna Maria Bigatti over 5 years ago

another proposal

RowMat(M, i);
ColMat(M, j);

comments?

#2 Updated by Anna Maria Bigatti over 3 years ago

  • Target version set to CoCoALib-0.99999

#3 Updated by Redmine Admin almost 3 years ago

  • Category set to Data Structures

#4 Updated by John Abbott about 1 year ago

Another possibility: uglier, but possibly clearer?
  • RowMatView
  • ColMatView

The intention is that the result should be a matrix 1xC or Rx1, right?

#5 Updated by John Abbott about 1 year ago

  • Related to Bug #1014: RowMat, ColMat with arg an empty list/vector added

#6 Updated by John Abbott about 1 year ago

What should these functions do if the matrix is 0-by-C or R-by-0?
Return a 0-by-1 or 1-by-0 matrix?

#7 Updated by John Abbott 12 months ago

  • Status changed from New to In Progress
  • % Done changed from 0 to 50

Implemented (using submat).
Still have to write tests and doc.

#8 Updated by Anna Maria Bigatti 4 months ago

  • Target version changed from CoCoALib-0.99999 to CoCoALib-0.99570

Also available in: Atom PDF