/// Writes a distance matrix column to the vector 'out'
/// (excluding the uppermost state distance).
/// This is done in a reverse order (lowest / highest value first).
/// Used for debugging.
Writes a distance matrix column to the vector 'out'
(excluding the uppermost state distance).
This is done in a reverse order (lowest / highest value first).
Used for debugging.
Writes a distance matrix column to the vector ' out ' ( excluding the uppermost state distance ) . This is done in a reverse order ( lowest / highest value first ) . Used for debugging .
pub fn write_dist_column(&self, m: usize, out: &mut Vec<D>) {
        let mut pos_mask = T::one() << (m - 1);
        let mut dist = self.dist;
        for _ in 0..m {
            out.push(dist);
            if dist != D::max_value() {
                if self.pv & pos_mask != T::zero() {
                    dist -= D::one();
                } else if self.mv & pos_mask != T::zero() {
                    dist += D::one();
                }
            }
            pos_mask >>= 1;
        }
    }
pub fn write_dist_column ( & self , m : usize , out : & mut Vec < D > ) { let mut pos_mask = T :: one ( ) << ( m - 1 ) ; let mut dist = self . dist ; for _ in 0 .. m { out . push ( dist ) ; if dist != D :: max_value ( ) { if self . pv & pos_mask != T :: zero ( ) { dist -= D :: one ( ) ; } else if self . mv & pos_mask != T :: zero ( ) { dist += D :: one ( ) ; } } pos_mask >>= 1 ; } }
Writes a distance matrix column to the vector 'out'
(excluding the uppermost state distance).
Writes a distance matrix column to the vector ' out ' ( excluding the uppermost state distance ) .
&self
m
usize
out
&mut Vec<D>