Skip to content

Commit

Permalink
Add Clone to MatrixIter and MatrixIterMut
Browse files Browse the repository at this point in the history
  • Loading branch information
Shatur committed Jun 27, 2023
1 parent 5baf86b commit 0754bd2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/base/iter.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ use crate::base::{Matrix, MatrixView, MatrixViewMut, Scalar};
macro_rules! iterator {
(struct $Name:ident for $Storage:ident.$ptr: ident -> $Ptr:ty, $Ref:ty, $SRef: ty) => {
/// An iterator through a dense matrix with arbitrary strides matrix.
#[derive(Debug)]
#[derive(Clone, Debug)]
pub struct $Name<'a, T, R: Dim, C: Dim, S: 'a + $Storage<T, R, C>> {
ptr: $Ptr,
inner_ptr: $Ptr,
Expand Down

0 comments on commit 0754bd2

Please sign in to comment.