This function will also raise a `ValueError` if the inputed vector is not one dimensional right?