0
my_array[:, 0::2] = np.sin(A)
my_array[:, 1::2] = np.cos(B)

If my_array is a two dimension array, what does this code do? In particular, what does :: do?

juanpa.arrivillaga
  • 88,713
  • 10
  • 131
  • 172
marlon
  • 6,029
  • 8
  • 42
  • 76

0 Answers0