Struct ohsl::newton::Newton [−][src]
Implementations
impl<T> Newton<T>
[src]
pub const fn new(guess: T) -> Self
[src]
Create a new newton object
pub fn tolerance(&mut self, tolerance: f64)
[src]
Edit the convergence tolerance
pub fn delta(&mut self, delta: f64)
[src]
Edit the finite difference derivative step
pub fn iterations(&mut self, iterations: usize)
[src]
Edit the maximum number of iterations
pub fn guess(&mut self, guess: T)
[src]
Edit the initial guess
impl<T: Copy> Newton<T>
[src]
impl Newton<f64>
[src]
pub fn solve(&self, func: &dyn Fn(f64) -> f64) -> Result<f64, f64>
[src]
Solve the equation via Newton iteration
impl Newton<Vec64>
[src]
pub fn solve(&self, func: &dyn Fn(Vec64) -> Vec64) -> Result<Vec64, Vec64>
[src]
Solve the vector equation via Newton iteration
pub fn solve_jacobian(
&self,
func: &dyn Fn(Vec64) -> Vec64,
jac: &dyn Fn(Vec64) -> Mat64
) -> Result<Vec64, Vec64>
[src]
&self,
func: &dyn Fn(Vec64) -> Vec64,
jac: &dyn Fn(Vec64) -> Mat64
) -> Result<Vec64, Vec64>
Solve the vector equation via Newton iteration using the exact Jacobian
Auto Trait Implementations
impl<T> RefUnwindSafe for Newton<T> where
T: RefUnwindSafe,
[src]
T: RefUnwindSafe,
impl<T> Send for Newton<T> where
T: Send,
[src]
T: Send,
impl<T> Sync for Newton<T> where
T: Sync,
[src]
T: Sync,
impl<T> Unpin for Newton<T> where
T: Unpin,
[src]
T: Unpin,
impl<T> UnwindSafe for Newton<T> where
T: UnwindSafe,
[src]
T: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,