/src/main/java/net/finmath/functions/LinearAlgebra.java
public int compareTo( final EigenValueIndex o) { return value.compareTo( o.value) ; }
public int compareTo ( final EigenValueIndex o ) { return o.value.compareTo ( value ) ; }
private final int index; private final Double value; EigenValueIndex(final int index, final double value) { this.index = index; this.value = value; } @Override <extra_id_0> } final List<EigenValueIndex> eigenValueIndices = new ArrayList<>(); for(int i=0; i<eigenValues.length; i++) { eigenValueIndices.add(i,new EigenValueIndex(i,eigenValues[i])); } Collections.sort(eigenValueIndices);