assertEquals(v1, v2);
}
private static Matrix lowRankMatrix() {
Matrix u = new RandomTrinaryMatrix(1, 20, 4, false);
Matrix d = new DiagonalMatrix(new double[]{5, 3, 1, 0.5});
Matrix v = new RandomTrinaryMatrix(2, 23, 4, false);
return u.times(d).times(v.transpose());
}