mirror of
https://github.com/xfarrow/lasd.git
synced 2025-06-05 21:49:14 +02:00
Exercise 5
bug fix
This commit is contained in:
@@ -218,6 +218,7 @@ Data& MatrixCSR<Data>::operator()(const ulong& r, const ulong& c){
|
||||
struct List<std::pair<Data,ulong>>::Node* nextNode = *ptr;
|
||||
*ptr = newNode;
|
||||
newNode->next = nextNode;
|
||||
(newNode->value).second = c;
|
||||
|
||||
if(last == ptr){ // the newely inserted element is the last one in its row
|
||||
for(ulong i=r+1 ; i<R.Size() ; ++i){ // then for each next row
|
||||
|
Reference in New Issue
Block a user