Library 5

added some comments
This commit is contained in:
Alessandro Ferro
2021-06-13 12:07:06 +02:00
parent e9091bd403
commit 8f7716bc2d
2 changed files with 10 additions and 4 deletions

View File

@@ -13,6 +13,12 @@
namespace lasd {
/*
** Although MatrixCSR inherits from List, it's not safe to use List methods here.
** For example, insertAtBack() is both a logical (why would you need to create
** a separate case for inserting at back in a matrix?) and a functional problem
** (the tail gets never updated).
*/
template <typename Data>
class MatrixCSR : virtual public List<std::pair<Data,ulong>>,
virtual public Matrix<Data>{ // Must extend Matrix<Data>