I want to create an array of elements. I can do it using a loop, but i want to know if there is another way, like an numpy
function or something to do this in less timme.
this is what i want to do:
def no_loops(y):
mat = []
for i in range(5012):
mat.append(y[i])
fun = funcion_a(mat)
return fun
The y array is empty. The elements of the array are the solutions of an equation system that scipy will solve. I want to change the for loop for something faster.