
#ifndef NETWORK_TORUS_UTIL_H_
#define NETWORK_TORUS_UTIL_H_

#include <prim/prim.h>

#include <vector>

namespace Torus {

// This function determines the dimension correspondance of an input port.
//  This returns U32_MAX for terminal ports.
u32 computeInputPortDim(const std::vector<u32>& _dimensionWidths,
                        u32 _concentration, u32 _inputPort);

}  // namespace Torus

#endif  // NETWORK_TORUS_UTIL_H_
