}
svalues = new double[k + p];
// try something else.
EigenSolverWrapper eigenWrapper = new EigenSolverWrapper(bbtSquare);
double[] eigenva2 = eigenWrapper.getEigenValues();
for (int i = 0; i < k + p; i++) {
svalues[i] = Math.sqrt(eigenva2[i]); // sqrt?
}
// save/redistribute UHat
//
double[][] uHat = eigenWrapper.getUHat();
fs.mkdirs(uHatPath);
SequenceFile.Writer uHatWriter = SequenceFile.createWriter(fs, conf,
uHatPath = new Path(uHatPath, "uhat.seq"), IntWritable.class,
VectorWritable.class, CompressionType.BLOCK);