@Test
public void addLambdaTimesNuiTimesE() {

  int nui = 5;
  double lambda = 0.2;
  Matrix matrix = new SparseMatrix(5, 5);
  AlternatingLeastSquaresSolver.addLambdaTimesNuiTimesE(matrix, lambda, nui);
  for (int n = 0; n < 5; n++) {
    assertEquals(1.0, matrix.getQuick(n, n), EPSILON);
  }
}