Fix initializing 1-D xtensor
Passing { x } as shape argument for a 1-D xtensor results in an xtensor with a single element instead of x elements.
Passing { x } as shape argument for a 1-D xtensor results in an xtensor with a single element instead of x elements.