#[repr(align(64))]pub struct TFVector<N>{
pub tf_vec: ZeroSpVec<N>,
pub token_sum: u64,
pub denormalize_num: f64,
}Expand description
子要素含めて合計64bytesになってる
Fields§
§tf_vec: ZeroSpVec<N>TF Vector use sparse vector
token_sum: u64sum of tokens of this document
denormalize_num: f64denormalize number for this document for reverse calculation to get token counts from tf values
Implementations§
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
Auto Trait Implementations§
impl<N> Freeze for TFVector<N>where
N: Freeze,
impl<N> RefUnwindSafe for TFVector<N>where
N: RefUnwindSafe,
impl<N> Send for TFVector<N>where
N: Send,
impl<N> Sync for TFVector<N>where
N: Sync,
impl<N> Unpin for TFVector<N>where
N: Unpin,
impl<N> UnwindSafe for TFVector<N>where
N: UnwindSafe + 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