MCPcopy Create free account
hub / github.com/chrxh/alien / toVector

Function toVector

source/Gui/SimulationParametersBaseWidgets.cpp:22–33  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

20
21 template <int numRows, int numCols, typename T>
22 std::vector<std::vector<T>> toVector(T const v[numRows][numCols])
23 {
24 std::vector<std::vector<T>> result;
25 for (int row = 0; row < numRows; ++row) {
26 std::vector<T> rowVector;
27 for (int col = 0; col < numCols; ++col) {
28 rowVector.emplace_back(v[row][col]);
29 }
30 result.emplace_back(rowVector);
31 }
32 return result;
33 }
34}
35
36void _SimulationParametersBaseWidgets::init(SimulationFacade const& simulationFacade)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected