Skip to content

Commit

Permalink
add common size getter
Browse files Browse the repository at this point in the history
  • Loading branch information
pratikvn committed Oct 6, 2023
1 parent 4c89a46 commit fde5cb4
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions include/ginkgo/core/base/batch_lin_op.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,13 @@ class BatchLinOp : public EnableAbstractPolymorphicObject<BatchLinOp> {
return size_.get_num_batch_items();
}

/**
* Returns the common size of the batch items.
*
* @return the common size stored
*/
dim<2> get_common_size() const { return size_.get_common_size(); }

/**
* Returns the size of the batch operator.
*
Expand Down

0 comments on commit fde5cb4

Please sign in to comment.