linspace_nd working