Is this intentional not to raise an exception on seemingly invalid input? The name of the function would make the caller think that non-1D arrays should be invalid and I would have expected a `ValueError` myself.