initial import factorization tools

you gotta mul the right vectors by the matrix element here.