use getRow instead of getRowView for elementSquaredSum