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 3adf2e3 commit a5f78a9Copy full SHA for a5f78a9
src/linalg/impl_linalg.rs
@@ -1112,10 +1112,6 @@ where
1112
fn dot(&self, rhs: &ArrayBase<S2, IxDyn>) -> Self::Output {
1113
match (self.ndim(), rhs.ndim()) {
1114
(1, 1) => {
1115
- // Vector-vector dot product
1116
- if self.len() != rhs.len() {
1117
- panic!("Vector lengths must match for dot product");
1118
- }
1119
let a = self.view().into_dimensionality::<Ix1>().unwrap();
1120
let b = rhs.view().into_dimensionality::<Ix1>().unwrap();
1121
let result = a.dot(&b);
0 commit comments