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

Function distNorm1

src/modules/linalg/metric.cpp:160–168  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

158}
159
160double
161distNorm1(const MappedColumnVector& inX, const MappedColumnVector& inY) {
162 if (inX.size() != inY.size()) {
163 throw std::runtime_error("Found input arrays of "
164 "different lengths unexpectedly.");
165 }
166
167 return (inX - inY).lpNorm<1>();
168}
169
170double
171distNorm2(const MappedColumnVector& inX, const MappedColumnVector& inY) {

Callers 1

runMethod · 0.85

Calls 1

sizeMethod · 0.45

Tested by

no test coverage detected