testSort[2] = 2;
testSort[3] = Double.NaN;
testSort[4] = 1;
DoubleMatrix1D doubleDense = new DenseDoubleMatrix1D(testSort);
System.out.println("orig = "+doubleDense);
doubleDense = doubleDense.viewSorted();
doubleDense.toArray(testSort);
System.out.println("sort = "+doubleDense);
System.out.println("done\n");
}
/**