| 294 | Datum svec_reverse(PG_FUNCTION_ARGS); |
| 295 | PG_FUNCTION_INFO_V1( svec_reverse ); |
| 296 | Datum svec_reverse(PG_FUNCTION_ARGS) |
| 297 | { |
| 298 | if (PG_ARGISNULL(0)) |
| 299 | PG_RETURN_NULL(); |
| 300 | |
| 301 | SvecType * sv = PG_GETARG_SVECTYPE_P(0); |
| 302 | SparseData in = sdata_from_svec(sv); |
| 303 | PG_RETURN_SVECTYPE_P(svec_from_sparsedata(reverse(in),true)); |
| 304 | } |
| 305 | |
| 306 | /** |
| 307 | * svec_change - makes a copy of the input svec, with the subvector |
nothing calls this directly
no test coverage detected