MCPcopy Create free account
hub / github.com/TileDB-Inc/TileDB / range_idx

Method range_idx

tiledb/sm/subarray/subarray.cc:1317–1324  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1315}
1316
1317uint64_t Subarray::range_idx(const std::vector<uint64_t>& range_coords) const {
1318 uint64_t ret = 0;
1319 auto dim_num = this->dim_num();
1320 for (unsigned i = 0; i < dim_num; ++i)
1321 ret += range_offsets_[i] * range_coords[i];
1322
1323 return ret;
1324}
1325
1326uint64_t Subarray::range_num() const {
1327 if (range_subset_.empty()) {

Calls 1

dim_numMethod · 0.95

Tested by

no test coverage detected