Skip to main content

Transposed

Struct Transposed 

Source
pub struct Transposed<H>(pub H);
Expand description

A HessianBlock with its rows and columns swapped.

Tuple Fields§

§0: H

Trait Implementations§

Source§

impl<H: HessianBlock> HessianBlock for Transposed<H>

Source§

fn entry(&self, row: usize, column: usize) -> TensorRank0

The entry of the block at the given row and column within it.
Source§

fn height(&self) -> usize

The number of rows the block occupies.
Source§

fn width(&self) -> usize

The number of columns the block occupies.
Source§

fn fill_into_block<M>(&self, matrix: &mut M, row: usize, column: usize)
where M: IndexMut<usize, Output = Vector>,

Fills the block into a matrix at the given row and column offsets.

Auto Trait Implementations§

§

impl<H> Freeze for Transposed<H>
where H: Freeze,

§

impl<H> RefUnwindSafe for Transposed<H>
where H: RefUnwindSafe,

§

impl<H> Send for Transposed<H>
where H: Send,

§

impl<H> Sync for Transposed<H>
where H: Sync,

§

impl<H> Unpin for Transposed<H>
where H: Unpin,

§

impl<H> UnsafeUnpin for Transposed<H>
where H: UnsafeUnpin,

§

impl<H> UnwindSafe for Transposed<H>
where H: UnwindSafe,

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Is<T> for T

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.