pub struct HeightFunction {
pub curve: String,
pub field: String,
}Expand description
The canonical Néron-Tate height ĥ: E(K̄) → ℝ.
Fields§
§curve: StringThe elliptic curve.
field: StringThe number field K over which points are defined.
Implementations§
Source§impl HeightFunction
impl HeightFunction
Sourcepub fn neron_tate(curve: impl Into<String>, field: impl Into<String>) -> Self
pub fn neron_tate(curve: impl Into<String>, field: impl Into<String>) -> Self
Create the Néron-Tate height for E over K.
Sourcepub fn naive_height(x_num: i64, x_den: u64) -> f64
pub fn naive_height(x_num: i64, x_den: u64) -> f64
Compute height of a rational point (a/d, b/d²) approximation.
Uses h(x/y) ≈ (1/2) log max(|x|, |y|) as a rough naive height.
Trait Implementations§
Source§impl Clone for HeightFunction
impl Clone for HeightFunction
Source§fn clone(&self) -> HeightFunction
fn clone(&self) -> HeightFunction
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 HeightFunction
impl RefUnwindSafe for HeightFunction
impl Send for HeightFunction
impl Sync for HeightFunction
impl Unpin for HeightFunction
impl UnsafeUnpin for HeightFunction
impl UnwindSafe for HeightFunction
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