| 506 | } |
| 507 | |
| 508 | size_t getLinearIndexFromIndex(const Index& index, const Size& bufferSize, const bool rowMajor) |
| 509 | { |
| 510 | if (!rowMajor) return index(1) * bufferSize(0) + index(0); |
| 511 | return index(0) * bufferSize(1) + index(1); |
| 512 | } |
| 513 | |
| 514 | Index getIndexFromLinearIndex(const size_t linearIndex, const Size& bufferSize, const bool rowMajor) |
| 515 | { |
no outgoing calls
no test coverage detected