@Test
public void testSortingRandom_indexes_F32() {
int offset = 10;
for( int a = 0; a < 20; a++ ) {
float[] normal = BenchMarkSort.createRandom_F32(rand,20);
float[] original = normal.clone();
float[] withIndexes = new float[offset+normal.length];;
int[] indexes = new int[ withIndexes.length ];
System.arraycopy(normal,0,withIndexes,offset,normal.length);
ShellSort.sort(normal);
ShellSort.sort(withIndexes,offset,normal.length,indexes);
for( int i = 0; i < normal.length; i++ ) {
assertEquals(original[i],withIndexes[i+offset], UtilEjml.TEST_F32);
assertEquals(normal[i],withIndexes[indexes[i]],UtilEjml.TEST_F32);
}
}
}