| 512 | } |
| 513 | |
| 514 | Index getIndexFromLinearIndex(const size_t linearIndex, const Size& bufferSize, const bool rowMajor) |
| 515 | { |
| 516 | if (!rowMajor) return Index((int)linearIndex % bufferSize(0), (int)linearIndex / bufferSize(0)); |
| 517 | return Index((int)linearIndex / bufferSize(1), (int)linearIndex % bufferSize(1)); |
| 518 | } |
| 519 | |
| 520 | void getIndicesForRegion(const Index& regionIndex, const Size& regionSize, |
| 521 | std::vector<Index> indices) |
no outgoing calls