| 62 | |
| 63 | |
| 64 | inline std::vector<int64_t> ind2sub_c( |
| 65 | const int64_t & ind, |
| 66 | const int64_t & sx, |
| 67 | const int64_t & sy, |
| 68 | const int64_t & sz |
| 69 | ) { |
| 70 | auto yz_size = sy * sz; |
| 71 | auto x = ind / yz_size; |
| 72 | auto _ind = ind - x * yz_size; |
| 73 | auto y = _ind / sz; |
| 74 | auto z = _ind - y * sz; |
| 75 | return {x, y, z}; |
| 76 | } |
| 77 | |
| 78 | inline int64_t sub2ind_c( |
| 79 | const int64_t & x, |
nothing calls this directly
no outgoing calls
no test coverage detected