pub struct ConversionHints {
pub is_sorted: bool,
pub is_symmetric: bool,
pub has_uniform_row_sizes: bool,
pub is_block_structured: bool,
pub is_diagonal: bool,
}
Expand description
Conversion hints to optimize format transformations
Fields§
§is_sorted: bool
Whether the tensor data is already sorted by indices
is_symmetric: bool
Whether the tensor is symmetric
has_uniform_row_sizes: bool
Whether all rows have similar number of non-zeros
is_block_structured: bool
Whether the tensor has block structure
is_diagonal: bool
Whether the tensor is diagonal or near-diagonal
Trait Implementations§
Source§impl Clone for ConversionHints
impl Clone for ConversionHints
Source§fn clone(&self) -> ConversionHints
fn clone(&self) -> ConversionHints
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 moreSource§impl Debug for ConversionHints
impl Debug for ConversionHints
Source§impl Default for ConversionHints
impl Default for ConversionHints
Source§fn default() -> ConversionHints
fn default() -> ConversionHints
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ConversionHints
impl RefUnwindSafe for ConversionHints
impl Send for ConversionHints
impl Sync for ConversionHints
impl Unpin for ConversionHints
impl UnwindSafe for ConversionHints
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more