You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Creating a 2x2 laplacian CSRMatrix from a graph with self-loops is for some reason not equal to a matrix created with the same values by hand (note that the laplacian matrix is actually not corrent, see #1120 , and this issue may be related to that). Additionally, the resulting laplacian matrix is not symmetric when checked with MatrixTools::isSymmetric.
Both isSymmetric and operator== use CSRMatrix::forNonZeroElementsInOrder which seems to sometimes produce wrong values for diagonal entries. For the laplacian, the lambda is called with (1,1,1) even though the value should be -1 instead of 1.
The text was updated successfully, but these errors were encountered:
Creating a 2x2 laplacian CSRMatrix from a graph with self-loops is for some reason not equal to a matrix created with the same values by hand (note that the laplacian matrix is actually not corrent, see #1120 , and this issue may be related to that). Additionally, the resulting laplacian matrix is not symmetric when checked with
MatrixTools::isSymmetric
.Example code:
Both
isSymmetric
andoperator==
useCSRMatrix::forNonZeroElementsInOrder
which seems to sometimes produce wrong values for diagonal entries. For the laplacian, the lambda is called with(1,1,1)
even though the value should be -1 instead of 1.The text was updated successfully, but these errors were encountered: