Skip to content

Commit

Permalink
Reformatting C++
Browse files Browse the repository at this point in the history
  • Loading branch information
beroy committed Oct 13, 2023
1 parent 44d153d commit 69b8812
Show file tree
Hide file tree
Showing 5 changed files with 787 additions and 543 deletions.
8 changes: 4 additions & 4 deletions apis/python/src/tiledbsoma/pytiledbsoma.cc
Original file line number Diff line number Diff line change
Expand Up @@ -665,12 +665,12 @@ PYBIND11_MODULE(pytiledbsoma, m) {
size_t length = buffer.shape[0];
indexer.map_locations(data, length, num_threads);
})
.def(
.def(
"map_locations",
[](IntIndexer& indexer,
std::vector<int64_t> keys,
int num_threads) {
indexer.map_locations(keys.data(), keys.size(), num_threads);
indexer.map_locations(keys.data(), keys.size(), num_threads);
})
// Perform lookup for a large input array of keys and return the looked
// up value array (passing ownership from C++ to python)
Expand All @@ -691,8 +691,8 @@ PYBIND11_MODULE(pytiledbsoma, m) {
})

// Perform lookup for a large input array of keys and writes the looked
// up values into previously allocated array (works for the cases in which
// python and R pre-allocate the array)
// up values into previously allocated array (works for the cases in
// which python and R pre-allocate the array)
.def(
"lookup",
[](IntIndexer& indexer,
Expand Down
Loading

0 comments on commit 69b8812

Please sign in to comment.