MCPcopy Create free account
hub / github.com/apache/madlib / svec_reverse

Function svec_reverse

methods/svec_util/src/pg_gp/svec_util.c:296–304  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

294Datum svec_reverse(PG_FUNCTION_ARGS);
295PG_FUNCTION_INFO_V1( svec_reverse );
296Datum 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

Callers

nothing calls this directly

Calls 3

sdata_from_svecFunction · 0.85
svec_from_sparsedataFunction · 0.85
reverseFunction · 0.85

Tested by

no test coverage detected