Project

General

Profile

Bug #73

Feature #68: cleanup doc for matrix, MatrixViews, *Matrix*,....

Repeated rows/cols in submat

Added by John Abbott over 12 years ago. Updated almost 10 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
Safety
Start date:
21 Dec 2011
Due date:
% Done:

100%

Estimated time:
Spent time:

Description

Check code, and adjust doc so that submat does not allow repeated row/col indexes.

JAA thinks we should exclude repeated row/col indexes because it could easily lead to (nastily) surprising behaviour, and he cannot think of a genuine use for such a feature [well... it could replace FilledMat, I suppose]

submat([0,0,0],[0,0,0], Mat(val);

History

#1 Updated by John Abbott almost 10 years ago

  • Category set to Safety
  • Status changed from New to Closed
  • Target version set to CoCoALib-0.99534 Seoul14
  • % Done changed from 0 to 100

The code already checks that the indices are distinct -- no idea when this was impl'd (must have been ages ago).

Closing.

NOTE I've just revised the code that checks for repeated indices (now linear instead of quadratic; doubt it makes a difference in practice)

Also available in: Atom PDF