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

Function squaredDistNorm2

src/modules/linalg/metric.cpp:196–204  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

194}
195
196double
197squaredDistNorm2(const MappedColumnVector& inX, const MappedColumnVector& inY) {
198 if (inX.size() != inY.size()) {
199 throw std::runtime_error("Found input arrays of "
200 "different lengths unexpectedly.");
201 }
202
203 return (inX - inY).squaredNorm();
204}
205
206double
207distAngle(const MappedColumnVector& inX, const MappedColumnVector& inY) {

Callers 1

runMethod · 0.85

Calls 1

sizeMethod · 0.45

Tested by

no test coverage detected