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.
1 parent e0e3d3a commit 350aa21Copy full SHA for 350aa21
src/lapack/least_squares.rs
@@ -92,7 +92,9 @@ macro_rules! impl_least_squares {
92
b: &mut [Self],
93
) -> Result<LeastSquaresOutput<Self>> {
94
let (m, n) = a_layout.size();
95
- if m != b_layout.size().0 || a_layout.lapacke_layout() != b_layout.lapacke_layout()
+ if (m as usize) > b.len()
96
+ || (n as usize) > b.len()
97
+ || a_layout.lapacke_layout() != b_layout.lapacke_layout()
98
{
99
return Err(LinalgError::Shape(ShapeError::from_kind(
100
ErrorKind::IncompatibleShape,
0 commit comments