Skip to content

Commit 5ec7b2f

Browse files
committed
fix ownership
1 parent 4f8ccef commit 5ec7b2f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

algorithms/linfa-kernel/src/inner.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ impl<F: Float> Inner for CsMat<F> {
6161
type Elem = F;
6262

6363
fn dot(&self, rhs: &ArrayView2<F>) -> Array2<F> {
64-
self.mul(rhs)
64+
self.mul(&rhs.to_owned())
6565
}
6666
fn sum(&self) -> Array1<F> {
6767
let mut sum = Array1::zeros(self.cols());
@@ -106,7 +106,7 @@ impl<'a, F: Float> Inner for CsMatView<'a, F> {
106106
type Elem = F;
107107

108108
fn dot(&self, rhs: &ArrayView2<F>) -> Array2<F> {
109-
self.mul(rhs)
109+
self.mul(&rhs.to_owned())
110110
}
111111
fn sum(&self) -> Array1<F> {
112112
let mut sum = Array1::zeros(self.cols());

0 commit comments

Comments
 (0)