pub struct NaiveHeightComputer {
pub coords: Vec<i64>,
}Expand description
Computes the naive Weil height for a projective point given as integer coords.
Fields§
§coords: Vec<i64>Homogeneous integer coordinates.
Implementations§
Source§impl NaiveHeightComputer
impl NaiveHeightComputer
Sourcepub fn new(coords: Vec<i64>) -> Self
pub fn new(coords: Vec<i64>) -> Self
Create a new NaiveHeightComputer with the given coordinates.
Sourcepub fn naive_height(&self) -> i64
pub fn naive_height(&self) -> i64
Naive height H(P) = max |x_i|.
Sourcepub fn log_height(&self) -> f64
pub fn log_height(&self) -> f64
Logarithmic height h(P) = log H(P).
Sourcepub fn number_of_coords(&self) -> usize
pub fn number_of_coords(&self) -> usize
Number of coordinates.
Trait Implementations§
Source§impl Clone for NaiveHeightComputer
impl Clone for NaiveHeightComputer
Source§fn clone(&self) -> NaiveHeightComputer
fn clone(&self) -> NaiveHeightComputer
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for NaiveHeightComputer
impl RefUnwindSafe for NaiveHeightComputer
impl Send for NaiveHeightComputer
impl Sync for NaiveHeightComputer
impl Unpin for NaiveHeightComputer
impl UnsafeUnpin for NaiveHeightComputer
impl UnwindSafe for NaiveHeightComputer
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more