MCPcopy Create free account
hub / github.com/alandefreitas/matplotplusplus / unique

Function unique

source/matplot/util/common.cpp:328–335  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

326 }
327
328 std::vector<double> unique(const std::vector<double> &x) {
329 std::set<double> s;
330 for (const auto &v : x) {
331 s.emplace(v);
332 }
333 std::vector<double> u(s.begin(), s.end());
334 return u;
335 }
336
337 std::vector<double> reshape(const std::vector<std::vector<double>> &X) {
338 std::vector<double> x;

Callers 6

quiverMethod · 0.85
quiver3Method · 0.85
plot_stringMethod · 0.85
data_stringMethod · 0.85
contours.cppFile · 0.85
calcticksFunction · 0.85

Calls 2

beginMethod · 0.80
endMethod · 0.80

Tested by

no test coverage detected