Files
Alessandro Di Federico 5820908675 Remove and ban \file
2025-12-16 17:41:55 +01:00

14 lines
423 B
C++

//
// This file is distributed under the MIT License. See LICENSE.md for details.
//
#include "InternalCompute.h"
LayoutContainer convertToLayout(const LayerContainer &Layers) {
LayoutContainer Result;
for (size_t Index = 0; Index < Layers.size(); ++Index)
for (size_t NodeIndex = 0; NodeIndex < Layers[Index].size(); ++NodeIndex)
Result[Layers[Index][NodeIndex]] = { Index, NodeIndex };
return Result;
}