Skip to content
Snippets Groups Projects
Verified Commit 9e222734 authored by Sébastien Villemot's avatar Sébastien Villemot
Browse files

Bytecode: fix logic in routine that substracts two sparse matrices

The logic of the dynSparseMatrix::Sparse_substract_SA_SB() routine was
incorrect.

In some cases, it would read past the last nonzero elements of the A matrix,
and consequently write past the number of allocated nonzero elements of the C
matrix.

This would lead to crashes and, probably, to wrong results under certain
circumstances.

Closes: #1652
parent c5537e23
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment