Lines Matching refs:np
2 import numpy as np namespace
12 return(np.array([[p[1],p[0]] for p in np.array(np.meshgrid(y,x)).T.reshape(-1,2)]))
18 x = np.linspace(0, NBSAMPLES, num=NBSAMPLES+1, endpoint=True)
19 y = np.cos(-x**2/(NBSAMPLES - 1))
22 data=np.hstack((data,np.array(data[-1]+1.5)))
40 x = np.arange(-3.14, 3.14, 1.0)
41 y = np.arange(-3.14, 3.14, 0.8)
42 xx, yy = np.meshgrid(x, y)
43 z = np.sin(xx**2+yy**2)
48 matrixSize=[np.size(x),np.size(y)]
55 yvals = np.array([np.sin(i[0]**2+i[1]**2) for i in samples])
64 numCols = np.size(x)
65 numRows = np.size(y)
71 ix = np.linspace(0, numCols-3, num=NBX, endpoint=True)+0.5
72 iy = np.linspace(0, numRows-3, num=NBY, endpoint=True)+0.5
84 ref=np.array([f(i[0],i[1]) for i in inputVals])
89 data = inputSamples.reshape(np.size(inputSamples))
95 config.writeInput(2, yvals.reshape(np.size(yvals)),"YVals")
96 config.writeReference(2, ref.reshape(np.size(ref)))
105 xnew = np.arange(0,20,1)
110 x = np.arange(0, 2*np.pi+np.pi/4, np.pi/4)
112 y = np.sin(x)
114 xnew = np.arange(0, 2*np.pi+np.pi/16, np.pi/16)
123 xnew = np.arange(-10,20,1)