For what reason isAssembled() is needed? Keep in mind that this is a dense matrix.