Why are you claiming that your matrix should be of the form:
To me it seems like you want another dof-ordering than what dolfin uses.
You can inspect the dof ordering by printing V.tabulate_dof_coordinates(), whose $i$th row will give you the coordinate of the $i$th dof.
Thanks
I say this after discretization and assembly by the finite element method. The calculation was consistent with a C++ code in a book. I have double-checked the calculation several times
That’s why I tried to check if it’s a problem of recovery or related to the operation performed
My idea is to make sure that all the calculations are well done since in what I do the final value does not exactly match with what is done with C++ code, hence my question of whether it is a bad recovery.
Should be symmetric, which the matrix you are claiming is the correct matrix is not.
Please also note that to get the same matrix as a book, the dofs has to be numbered in the same way, which you can verify by looking at the dof coordinates (as I said in the previous post)