pub struct DpMatrixSparse {
pub target_length: usize,
pub profile_length: usize,
pub target_start: usize,
pub target_end: usize,
pub block_offsets: Vec<usize>,
pub row_start_offsets: Vec<usize>,
pub core_data: Vec<f32>,
pub special_data: Vec<f32>,
}Fields§
§target_length: usize§profile_length: usize§target_start: usize§target_end: usize§block_offsets: Vec<usize>These point to the start of each “row block” in the core_data vector. They are absolute
in the sense that they are not relative to the logical non-sparse matrix coordinate space.
row_start_offsets: Vec<usize>These indicate when a row “starts” in the logical non-sparse matrix coordinate space.
core_data: Vec<f32>§special_data: Vec<f32>Implementations§
Trait Implementations§
Source§impl Clone for DpMatrixSparse
impl Clone for DpMatrixSparse
Source§fn clone(&self) -> DpMatrixSparse
fn clone(&self) -> DpMatrixSparse
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 Default for DpMatrixSparse
impl Default for DpMatrixSparse
Source§fn default() -> DpMatrixSparse
fn default() -> DpMatrixSparse
Returns the “default value” for a type. Read more
Source§impl DpMatrix for DpMatrixSparse
impl DpMatrix for DpMatrixSparse
fn target_length(&self) -> usize
fn profile_length(&self) -> usize
fn get_match(&self, target_idx: usize, profile_idx: usize) -> f32
fn set_match(&mut self, target_idx: usize, profile_idx: usize, value: f32)
fn get_insert(&self, target_idx: usize, profile_idx: usize) -> f32
fn set_insert(&mut self, target_idx: usize, profile_idx: usize, value: f32)
fn get_delete(&self, target_idx: usize, profile_idx: usize) -> f32
fn set_delete(&mut self, target_idx: usize, profile_idx: usize, value: f32)
fn get_special(&self, target_idx: usize, special_idx: usize) -> f32
fn set_special(&mut self, target_idx: usize, special_idx: usize, value: f32)
fn dump(&self, out: &mut impl Write) -> Result<()>
Auto Trait Implementations§
impl Freeze for DpMatrixSparse
impl RefUnwindSafe for DpMatrixSparse
impl Send for DpMatrixSparse
impl Sync for DpMatrixSparse
impl Unpin for DpMatrixSparse
impl UnwindSafe for DpMatrixSparse
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