Function alcs::alcs_mat
[−]
[src]
pub fn alcs_mat<T>(
a: &[T],
b: &[T]
) -> (Vec<Vec<usize>>, Vec<Vec<usize>>, Vec<usize>, Vec<Option<usize>>, Vec<Option<usize>>) where
T: Eq,
Constructs the matrices ih, iv, and the vectors IG, VG, DG0
let a = "word"; let b = "hello world"; let va = a.chars().collect::<Vec<char>>(); let vb = b.chars().collect::<Vec<char>>(); let (ih,iv,ig,vg,dg) = alcs::alcs_mat(&va,&vb); println!("{:?}\n{:?}\n{:?}\n{:?}\n{:?}",ih,iv,ig,vg,dg);