Function alcs::compute_mat_ih_iv
[−]
[src]
pub fn compute_mat_ih_iv<T>(
a: &[T],
b: &[T]
) -> (Vec<Vec<usize>>, Vec<Vec<usize>>) where
T: Eq,
Constructs the full matrices i_h and i_v
It requires O(|a|*|b|) space and O(|a|*|b|) time
let a = "word"; let b = "hello world"; let va = a.chars().collect::<Vec<char>>(); let vb = b.chars().collect::<Vec<char>>(); let (ih,iv) = alcs::compute_mat_ih_iv(&va,&vb); println!("{:?}\n{:?}",ih,iv);