From d5dc768f3066705c2a730762455d7d4466aaf902 Mon Sep 17 00:00:00 2001 From: Matthew Scroggs Date: Wed, 6 Mar 2024 17:52:44 +0000 Subject: [PATCH] fix typo in cross product (#62) --- dense/src/array/operations.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dense/src/array/operations.rs b/dense/src/array/operations.rs index 20ee34f1..c7b04565 100644 --- a/dense/src/array/operations.rs +++ b/dense/src/array/operations.rs @@ -274,7 +274,7 @@ where let b1 = other.get_value([1]).unwrap(); let b2 = other.get_value([2]).unwrap(); - res[[0]] = a1 * b2 - a2 * a1; + res[[0]] = a1 * b2 - a2 * b1; res[[1]] = a2 * b0 - a0 * b2; res[[2]] = a0 * b1 - a1 * b0; }