time = System.currentTimeMillis();
if(true) {
Set<Integer> assigned = new HashSet<Integer>();
Matrix docMatrix = svdh.getVt().transpose();
SimilarityMatrix simMatrix = new SimilarityMatrix(docFiles);
for(int i=0;i<docFiles.size();i++) {
for(int j=i+1;j<docFiles.size();j++) {
simMatrix.setSimilarity(i, j, (float)cosine(docMatrix, i, j, svals));
//simMatrix.setSimilarity(i, j, (float)tanimoto(docMatrix, i, j, svals));
}
}
//System.out.println(Math.min(svals.length, docMatrix.getRowDimension()));
//VirtualSimilarityMatrix simMatrix = new VirtualSimilarityMatrix(docMatrix, docFiles, Math.min(svals.length, docMatrix.getRowDimension()-1));