x.viewRow(row).assign(c.viewPart(0, 5));
row++;
}
// Verify that each column looks right. Should contain zeros except for a single 6.
final Vector columnNorms = x.aggregateColumns(new VectorFunction() {
@Override
public double apply(Vector f) {
// Return the sum of three discrepancy measures.
return Math.abs(f.minValue()) + Math.abs(f.maxValue() - 6) + Math.abs(f.norm(1) - 6);
}