Skip to content

Commit 7650d93

Browse files
committed
fix(deep_causality_tensor): Minor lints and code improvements.
Signed-off-by: Marvin Hansen <marvin.hansen@gmail.com>
1 parent 3bde791 commit 7650d93

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • deep_causality_tensor/src/types/causal_tensor/ops/tensor_inverse

deep_causality_tensor/src/types/causal_tensor/ops/tensor_inverse/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ impl<T> CausalTensor<T> {
6464
}
6565
}
6666

67-
if max_val.is_zero() {
67+
if max_val < T::epsilon() {
6868
return Err(CausalTensorError::SingularMatrix); // Corrected error type
6969
}
7070

0 commit comments

Comments
 (0)