pub struct TFVector<N>where
N: Num,{ /* private fields */ }Expand description
ZeroSpVecの生実装
Trait Implementations§
Source§impl<'de, N> Deserialize<'de> for TFVector<N>
impl<'de, N> Deserialize<'de> for TFVector<N>
Source§fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl<N> TFVectorTrait<N> for TFVector<N>
impl<N> TFVectorTrait<N> for TFVector<N>
fn new() -> Self
fn new_with_capacity(capacity: u32) -> Self
fn shrink_to_fit(&mut self)
fn raw_iter(&self) -> RawTFVectorIter<'_, N> ⓘ
fn nnz(&self) -> u32
fn len(&self) -> u32
fn term_sum(&self) -> u32
unsafe fn from_vec( ind_vec: Vec<u32>, val_vec: Vec<N>, len: u32, term_sum: u32, ) -> Self
unsafe fn ind_ptr(&self) -> *mut u32
unsafe fn val_ptr(&self) -> *mut N
Source§unsafe fn power_jump_search(
&self,
target: u32,
start: usize,
) -> Option<(N, usize)>where
N: Copy,
unsafe fn power_jump_search(
&self,
target: u32,
start: usize,
) -> Option<(N, usize)>where
N: Copy,
Power Jump Search
Returns Some((value, sp_vec_raw_ind)) if found, None otherwise
fn get_power_jump(&self, target: u32, cut_down: &mut usize) -> Option<N>where
N: Copy,
fn as_val_slice(&self) -> &[N]
fn as_ind_slice(&self) -> &[u32]
impl<N: Num + Send + Sync> Send for TFVector<N>
impl<N: Num + Sync> Sync for TFVector<N>
Auto Trait Implementations§
impl<N> Freeze for TFVector<N>
impl<N> RefUnwindSafe for TFVector<N>where
N: RefUnwindSafe,
impl<N> Unpin for TFVector<N>
impl<N> UnwindSafe for TFVector<N>where
N: RefUnwindSafe,
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