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

Function check_sdata_dimensions

methods/svec/src/pg_gp/SparseData.c:448–457  ·  view source on GitHub ↗

Checks that two SparseData have the same dimension */

Source from the content-addressed store, hash-verified

446/* Checks that two SparseData have the same dimension
447 */
448void
449check_sdata_dimensions(SparseData left, SparseData right)
450{
451 if (left->total_value_count != right->total_value_count)
452 {
453 ereport(ERROR,
454 (errcode(ERRCODE_INVALID_PARAMETER_VALUE),
455 errmsg("dimensions of vectors must be the same")));
456 }
457}
458
459/* Do one of subtract, add, multiply, or divide depending on
460 * the value of operation.

Callers 1

op_sdata_by_sdataFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected