* Hash function for float8[] */
| 678 | * Hash function for float8[] |
| 679 | */ |
| 680 | static int |
| 681 | float8arr_hash_internal(ArrayType *array) |
| 682 | { |
| 683 | SparseData sdata = sdata_uncompressed_from_float8arr_internal(array); |
| 684 | double l1norm = l1norm_sdata_values_double(sdata); |
| 685 | int arr_hash = DirectFunctionCall1(hashfloat8, Float8GetDatumFast(l1norm)); |
| 686 | pfree(sdata); |
| 687 | return(arr_hash); |
| 688 | } |
| 689 | |
| 690 | Datum float8arr_hash(PG_FUNCTION_ARGS); |
| 691 | PG_FUNCTION_INFO_V1( float8arr_hash); |
no test coverage detected