Skip to content

Commit

Permalink
review updates
Browse files Browse the repository at this point in the history
- Add comments for stride = 0 default value
- Require square size for batch identity matrix

Co-authored-by: Marcel Koch <[email protected]>
  • Loading branch information
upsj and MarcelKoch committed Feb 19, 2024
1 parent 7ecfbce commit 68e0022
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
3 changes: 2 additions & 1 deletion include/ginkgo/core/matrix/dense.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -1135,7 +1135,8 @@ class Dense
* @param size size of the matrix
* @param stride stride of the rows (i.e. offset between the first
* elements of two consecutive rows, expressed as the
* number of matrix elements)
* number of matrix elements).
* If it is set to 0, size[1] will be used instead.
*
* @return A smart pointer to the newly created matrix.
*/
Expand Down
6 changes: 3 additions & 3 deletions include/ginkgo/core/matrix/ell.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -226,9 +226,9 @@ class Ell : public EnableLinOp<Ell<ValueType, IndexType>>,
*
* @param exec Executor associated to the matrix
* @param size size of the matrix
* @param num_stored_elements_per_row the number of stored elements per
* row
* @param stride stride of the rows
* @param num_stored_elements_per_row the number of stored elements per row
* @param stride stride of the columns. If it is set to 0, size[0] will be
* used instead.
*
* @return A smart pointer to the newly created matrix.
*/
Expand Down

0 comments on commit 68e0022

Please sign in to comment.