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

Function reshape

source/matplot/util/common.cpp:337–345  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

335 }
336
337 std::vector<double> reshape(const std::vector<std::vector<double>> &X) {
338 std::vector<double> x;
339 for (const auto &vec : X) {
340 for (const auto &item : vec) {
341 x.emplace_back(item);
342 }
343 }
344 return x;
345 }
346
347 std::vector<double> concat(const std::vector<double> &a,
348 const std::vector<double> &b) {

Callers 4

generate_dataFunction · 0.85
generate_dataFunction · 0.85
generate_dataFunction · 0.85
generate_dataFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected