Struct multivariate_optimization::triangular::Triangular
source · pub struct Triangular<T> { /* private fields */ }Expand description
Triangular matrix.
Implementations§
source§impl<T> Triangular<T>
impl<T> Triangular<T>
sourcepub fn new<F>(dim: usize, contents: F) -> Triangular<T>where
F: FnMut((usize, usize)) -> T,
pub fn new<F>(dim: usize, contents: F) -> Triangular<T>where F: FnMut((usize, usize)) -> T,
Create triangular matrix with given dimension.
Fills initial elements by calling contents with (i, j) as argument,
where i < dim && j <= i.
sourcepub fn par_new<F>(dim: usize, contents: F) -> Triangular<T>where
F: Sync + Fn((usize, usize)) -> T,
T: Send,
pub fn par_new<F>(dim: usize, contents: F) -> Triangular<T>where F: Sync + Fn((usize, usize)) -> T, T: Send,
Same as Triangular::new, but execute in parallel.
Trait Implementations§
source§impl<T: Clone> Clone for Triangular<T>
impl<T: Clone> Clone for Triangular<T>
source§fn clone(&self) -> Triangular<T>
fn clone(&self) -> Triangular<T>
Returns a copy 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 moresource§impl<T: Debug> Debug for Triangular<T>
impl<T: Debug> Debug for Triangular<T>
Auto Trait Implementations§
impl<T> RefUnwindSafe for Triangular<T>where T: RefUnwindSafe,
impl<T> Send for Triangular<T>where T: Send,
impl<T> Sync for Triangular<T>where T: Sync,
impl<T> Unpin for Triangular<T>
impl<T> UnwindSafe for Triangular<T>where T: UnwindSafe,
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