| 664 | Datum float8arr_l2norm(PG_FUNCTION_ARGS); |
| 665 | PG_FUNCTION_INFO_V1( float8arr_l2norm); |
| 666 | Datum float8arr_l2norm(PG_FUNCTION_ARGS) { |
| 667 | ArrayType *array = PG_GETARG_ARRAYTYPE_P(0); |
| 668 | SparseData sdata = sdata_uncompressed_from_float8arr_internal(array); |
| 669 | double result = l2norm_sdata_values_double(sdata); |
| 670 | pfree(sdata); |
| 671 | |
| 672 | if (IS_NVP(result)) PG_RETURN_NULL(); |
| 673 | |
| 674 | PG_RETURN_FLOAT8(result); |
| 675 | } |
| 676 | |
| 677 | /* |
| 678 | * Hash function for float8[] |
nothing calls this directly
no test coverage detected