| 76 | } |
| 77 | |
| 78 | inline int64_t sub2ind_c( |
| 79 | const int64_t & x, |
| 80 | const int64_t & y, |
| 81 | const int64_t & z, |
| 82 | const int64_t & sx, |
| 83 | const int64_t & sy, |
| 84 | const int64_t & sz |
| 85 | ) { |
| 86 | return z + y * sz + x * (sy * sz); |
| 87 | } |
| 88 | |
| 89 | |
| 90 | // Given x y z index, change to the linear index. (matlab's sub2ind) |
no outgoing calls
no test coverage detected