Skip to content

Commit

Permalink
small
Browse files Browse the repository at this point in the history
  • Loading branch information
nobuyuki83 committed Aug 10, 2024
1 parent 1d59b3c commit 4a70526
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions del-geo-core/src/mat2_sym.rs
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ where
// one of the eigen value is nearly zero
//let one = Real::one();
let one = Real::one();
let (e, v) = crate::mat2_sym::prinsipal_directions(abc);
let (e, v) = principal_directions(abc);
// println!("   sig: {:?} {} {}",e, abc[0]*abc[2]-abc[1]*abc[1], abc[0]+abc[2]);
let e0inv = one / (e[0] + eps);
let e1inv = one / (e[1] + eps);
Expand All @@ -84,12 +84,12 @@ where
// println!("   siginv: {:?}",e);
//xyz
} else {
crate::mat2_sym::safe_inverse(abc)
safe_inverse(abc)
}
}

/// ax^2 + 2bxy + cy^2 = 1
pub fn prinsipal_directions<Real>(coeff: &[Real; 3]) -> ([Real; 2], [[Real; 2]; 2])
pub fn principal_directions<Real>(coeff: &[Real; 3]) -> ([Real; 2], [[Real; 2]; 2])
where
Real: num_traits::Float,
{
Expand Down

0 comments on commit 4a70526

Please sign in to comment.