Return Value

This property returns a vector view of the
diagonal. Changing the elements of this SingleVector
will also change the corresponding elements of the
underlying SingleBandMatrix. If you want
the result to be independent of the underlying matrix,
use the CloneData method on the
result.

If the diagonal contains only zeroes, then a
ConstantVector is returned. Otherwise, a dense vector is returned.