We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
factorize()
1 parent 71ad0ba commit 003be74Copy full SHA for 003be74
src/solve.rs
@@ -75,14 +75,13 @@ where
75
}
76
77
78
-impl<A, Si, So> Factorize<So> for ArrayBase<Si, Ix2>
+impl<A, Si> Factorize<OwnedRepr<A>> for ArrayBase<Si, Ix2>
79
where
80
A: Scalar,
81
Si: Data<Elem = A>,
82
- So: DataOwned<Elem = A> + DataMut,
83
{
84
- fn factorize(&self) -> Result<Factorized<So>> {
85
- let mut a: ArrayBase<So, Ix2> = replicate(self);
+ fn factorize(&self) -> Result<Factorized<OwnedRepr<A>>> {
+ let mut a: Array2<A> = replicate(self);
86
let ipiv = unsafe { A::lu(a.layout()?, a.as_allocated_mut()?)? };
87
Ok(Factorized { a: a, ipiv: ipiv })
88
0 commit comments