Skip to content

Commit a5f78a9

Browse files
remove duplicated length check
1 parent 3adf2e3 commit a5f78a9

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

src/linalg/impl_linalg.rs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1112,10 +1112,6 @@ where
11121112
fn dot(&self, rhs: &ArrayBase<S2, IxDyn>) -> Self::Output {
11131113
match (self.ndim(), rhs.ndim()) {
11141114
(1, 1) => {
1115-
// Vector-vector dot product
1116-
if self.len() != rhs.len() {
1117-
panic!("Vector lengths must match for dot product");
1118-
}
11191115
let a = self.view().into_dimensionality::<Ix1>().unwrap();
11201116
let b = rhs.view().into_dimensionality::<Ix1>().unwrap();
11211117
let result = a.dot(&b);

0 commit comments

Comments
 (0)