Skip to content

Commit b370565

Browse files
committed
Document MaybeOnwedMatrix
1 parent fe679c5 commit b370565

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

ndarray-linalg/src/eig.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -130,9 +130,11 @@ pub trait EigGeneralized {
130130
) -> Result<(Self::EigVal, Self::EigVec)>;
131131
}
132132

133+
/// Turn arrays, references to arrays, and [`ArrayRef`]s into owned arrays
133134
pub trait MaybeOwnedMatrix {
134135
type Elem;
135136

137+
/// Convert into an owned array, cloning only when necessary.
136138
fn into_owned(self) -> Array2<Self::Elem>;
137139
}
138140

0 commit comments

Comments
 (0)