Skip to content

Commit 9fba472

Browse files
author
sarah
committed
colbatch bugfix
1 parent 24ac564 commit 9fba472

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

src/mat/matown.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -936,7 +936,6 @@ impl<E: Conjugate> ColBatch<E> for Mat<E> {
936936
#[inline]
937937
#[track_caller]
938938
fn resize_owned(owned: &mut Self::Owned, nrows: usize, ncols: usize) {
939-
assert!(ncols == 1);
940939
owned.resize_with(nrows, ncols, |_, _| unreachable!());
941940
}
942941
}

src/sparse/linalg/solvers.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ fn solve_lstsq_with_conj_impl<
110110
conj: Conj,
111111
) -> B::Owned {
112112
let mut rhs = B::new_owned_copied(&rhs);
113-
d.solve_transpose_in_place_with_conj_impl(rhs.as_2d_mut(), conj);
113+
d.solve_lstsq_in_place_with_conj_impl(rhs.as_2d_mut(), conj);
114114
let ncols = rhs.as_2d_ref().ncols();
115115
B::resize_owned(&mut rhs, d.ncols(), ncols);
116116
rhs

0 commit comments

Comments
 (0)