private static int hashCode(double[] array){
  int prime=31;
  if (array == null) {
    return 0;
  }
  int result=1;
  for (  double element : array) {
    long temp=Double.doubleToLongBits(element);
    result=(prime * result) + (int)(temp ^ (temp >>> 32));
  }
  return result;
}

private static int hashCode ( double [ ] array ) { int prime = 31 ; if ( array == null ) { return 0 ; } int result = 1 ; for ( double element : array ) { long temp = Double . doubleToLongBits ( element ) ; result = ( prime * result ) + ( int ) ( temp ^ ( temp > > > 32 ) ) ; } return result ; }
returns a hash code value for the array .
