Python Numpy AscontigountArray Пример скалярного к массиву
# welcome to softhunt.net
# Python program explaining
# numpy.ascontiguousarray() function
import numpy as np
my_scalar = 50
print ("Input scalar : ", my_scalar)
out_arr = np.ascontiguousarray(my_scalar, dtype = np.float32)
print ("output array from input scalar : ", out_arr)
print(type(out_arr))
Outrageous Ostrich