When I try to use getrow() function on dolfin matrix.
A = assemble(a)
A.getrow(0)
where a is PDE system I have. The result is:
[array([0, 1, 2, 3, 4, 5, 6, 7, 8], dtype=uint64),
array([ 1.62760417e-02, 0.00000000e+00, -8.13802083e-05, 8.13802083e-03, 0.00000000e+00, -4.06901042e-05, 8.13802083e-03, 0.00000000e+00, -4.06901042e-05])]
As you can see, there are entries of 0.000000e00 also being printed out. Is this expected? I thought getrow should only return non-zero indices.