daphne-project/daphne

`CSRMatrix::append()` on empty matrix

Open

#727 opened on May 16, 2024

 (0 comments) (0 reactions) (0 assignees)C++ (84 forks)auto 404
buggood first issue

Repository metrics

Stars
 (80 stars)
PR merge metrics
 (PR metrics pending)

Description

The current implementation of the append mechanism of CSRMatrix (prepareAppend(), append(), finishAppend()) seems to be incorrect when the number of rows and/or the number of columns of the matrix is zero.

A similar problem existed for DenseMatrix and was fixed in 2b4f086ce45df10419c00d05e56433c30999a91a.

Thanks to @AlexRTer for pointing out this problem in #722.

Contributor guide