The fresh array initially holds null references, whereas a zero row must be an empty list. Initialize every slot explicitly:ThenThe following methods belong inside
for (i <- 0 until N) rows(i) = List.empty[Entry]SparseMatrix, using the supplied Entry and Row type aliases. Articles by others on the same topic
There are currently no matching articles.