if 'randomized' use fast `randomized_svd` function. Defaults to 'svd'.