Template Function mass::makeDeviceMap#
Defined in File EntityCreationConfig.h
Function Documentation#
-
template<int... Dims>
NDArray<DeviceRank> mass::makeDeviceMap(const internal::type_deduction::NDRawArr<DeviceRank, Dims...> &arr)# A helper for creating the NDArray used for the deviceMap configuration when creating Places.
It allows constructing the deviceMap using N-dimensional raw C++ array, providing better compile-time validation of the structure
// create a 3x3 deviceMap makeDeviceMap<3, 3>({ { 1, 2, 3 }, { 4, 5, 6 }, { 7, 8, 9 } });