Generalize initialization of results vectors in linear algebra functions by setting equal to input (ugly solution, need to find something better). This means the functions are also compatible with boost::array, which doesn't have a constructor to initialize size.