@@ -69,7 +69,6 @@ class tdbMatrix : public Matrix<T, LayoutPolicy, I> {
6969 constexpr static auto matrix_order_{order_v<LayoutPolicy>};
7070
7171 private:
72-
7372 log_timer constructor_timer{" tdbMatrix constructor" };
7473
7574 std::reference_wrapper<const tiledb::Context> ctx_;
@@ -101,10 +100,8 @@ class tdbMatrix : public Matrix<T, LayoutPolicy, I> {
101100 tdbMatrix (
102101 const tiledb::Context& ctx,
103102 const std::string& uri,
104- size_t num_elts) noexcept requires (std::
105- is_same_v<
106- LayoutPolicy,
107- stdx::layout_right>)
103+ size_t num_elts) noexcept
104+ requires (std::is_same_v<LayoutPolicy, stdx::layout_right>)
108105 : tdbMatrix(ctx, uri, num_elts, 0 ) {
109106 }
110107
@@ -120,10 +117,8 @@ class tdbMatrix : public Matrix<T, LayoutPolicy, I> {
120117 tdbMatrix (
121118 const tiledb::Context& ctx,
122119 const std::string& uri,
123- size_t num_elts) noexcept requires (std::
124- is_same_v<
125- LayoutPolicy,
126- stdx::layout_left>)
120+ size_t num_elts) noexcept
121+ requires (std::is_same_v<LayoutPolicy, stdx::layout_left>)
127122 : tdbMatrix(ctx, uri, 0 , num_elts) {
128123 }
129124
@@ -206,7 +201,6 @@ class tdbMatrix : public Matrix<T, LayoutPolicy, I> {
206201 : ctx_{ctx}
207202 , array_{ctx, uri, TILEDB_READ}
208203 , schema_{array_.schema ()} {
209-
210204 constructor_timer.stop ();
211205 scoped_timer _{tdb_func__ + uri};
212206
@@ -273,10 +267,11 @@ class tdbMatrix : public Matrix<T, LayoutPolicy, I> {
273267 }
274268
275269 // Create a subarray that reads the array up to the specified subset.
276- std::vector<int32_t > subarray_vals = {(int32_t )row_begin,
277- (int32_t )row_end - 1 ,
278- (int32_t )col_begin,
279- (int32_t )col_end - 1 };
270+ std::vector<int32_t > subarray_vals = {
271+ (int32_t )row_begin,
272+ (int32_t )row_end - 1 ,
273+ (int32_t )col_begin,
274+ (int32_t )col_end - 1 };
280275 tiledb::Subarray subarray (ctx_, array_);
281276 subarray.set_subarray (subarray_vals);
282277
@@ -290,7 +285,6 @@ class tdbMatrix : public Matrix<T, LayoutPolicy, I> {
290285 query.submit ();
291286 _memory_data.insert_entry (tdb_func__, num_rows * num_cols * sizeof (T));
292287
293-
294288 // assert(tiledb::Query::Status::COMPLETE == query.query_status());
295289 if (tiledb::Query::Status::COMPLETE != query.query_status ()) {
296290 throw std::runtime_error (" Query status is not complete -- fix me" );
@@ -385,10 +379,11 @@ class tdbMatrix : public Matrix<T, LayoutPolicy, I> {
385379 size_t num_elements = len * dimension;
386380
387381 // Create a subarray that reads the array up to the specified subset.
388- std::vector<int32_t > subarray_vals = {(int32_t )0 ,
389- (int32_t )dimension - 1 ,
390- (int32_t )start,
391- (int32_t )stop - 1 };
382+ std::vector<int32_t > subarray_vals = {
383+ (int32_t )0 ,
384+ (int32_t )dimension - 1 ,
385+ (int32_t )start,
386+ (int32_t )stop - 1 };
392387 tiledb::Subarray subarray (ctx_, array_);
393388 subarray.set_subarray (subarray_vals);
394389
@@ -403,7 +398,6 @@ class tdbMatrix : public Matrix<T, LayoutPolicy, I> {
403398 query.submit ();
404399 _memory_data.insert_entry (tdb_func__, num_elements * sizeof (T));
405400
406-
407401 // assert(tiledb::Query::Status::COMPLETE == query.query_status());
408402 if (tiledb::Query::Status::COMPLETE != query.query_status ()) {
409403 throw std::runtime_error (" Query status is not complete -- fix me" );
@@ -446,8 +440,8 @@ class tdbMatrix : public Matrix<T, LayoutPolicy, I> {
446440 size_t num_elements = len;
447441
448442 // Create a subarray that reads the array up to the specified subset.
449- std::vector<int32_t > subarray_vals = {( int32_t )start,
450- (int32_t )stop - 1 };
443+ std::vector<int32_t > subarray_vals = {
444+ ( int32_t )start, (int32_t )stop - 1 };
451445 tiledb::Subarray subarray (ctx_, ids_array_);
452446 subarray.set_subarray (subarray_vals);
453447
@@ -458,7 +452,6 @@ class tdbMatrix : public Matrix<T, LayoutPolicy, I> {
458452 query.submit ();
459453 _memory_data.insert_entry (tdb_func__, num_elements * sizeof (T));
460454
461-
462455 if (tiledb::Query::Status::COMPLETE != query.query_status ()) {
463456 throw std::runtime_error (" Query status is not complete -- fix me" );
464457 }
@@ -538,10 +531,11 @@ class tdbMatrix : public Matrix<T, LayoutPolicy, I> {
538531 }
539532
540533 // Create a subarray that reads the array with the specified view
541- std::vector<int32_t > subarray_vals = {(int32_t )std::get<0 >(row_view_),
542- (int32_t )std::get<1 >(row_view_) - 1 ,
543- (int32_t )std::get<0 >(col_view_),
544- (int32_t )std::get<1 >(col_view_) - 1 };
534+ std::vector<int32_t > subarray_vals = {
535+ (int32_t )std::get<0 >(row_view_),
536+ (int32_t )std::get<1 >(row_view_) - 1 ,
537+ (int32_t )std::get<0 >(col_view_),
538+ (int32_t )std::get<1 >(col_view_) - 1 };
545539 tiledb::Subarray subarray (ctx_, array_);
546540 subarray.set_subarray (subarray_vals);
547541
0 commit comments