daphne-project/daphne

`CSRMatrix::append()` on empty matrix

Aperta

#727 aperta il 16 mag 2024

 (0 commenti) (0 reazioni) (0 assegnatari)C++ (84 fork)auto 404
buggood first issue

Metriche repository

Star
 (80 stelle)
Metriche merge PR
 (Metriche PR in attesa)

Descrizione

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.

Guida contributor