Questions tagged [float32]

16 questions
0
votes
1 answer

how to create a prefilled array of float32 in python?

if I do: import numpy as np arr1=np.tile(0.75, 32) I get a 32 element array of float64 initialized with the value 0.75. How to do the same but get a float32 array?
Zibri
  • 9,096
  • 3
  • 52
  • 44
1
2