Nov-01-2020, 05:58 AM
Are you using an older version of NumPy that doesn't have
full
? Of course you could create an array of 1s (using numpy.ones)
and then multiply that by the infinity value. Note also that NumPy has an inf
constant to represent infinity.