Wrote function wrapping the whole eigensolver thingie. Now must figure out the type errors.