2 Matching Annotations
  1. Oct 2017
    1. c = np.full((2,2), 7) # Create a constant array print(c)

      To avoid the warning, use

      np.full((2,2), 7.) or use explicitly for float np.full((2,2),7, dtype=float) or for int np.full((2,2),7, dtype=int)

  2. Jan 2017
    1. distribution of mean 0 and variance 1 (if any of the are floats, they are first converted to integers by truncation)

      How to create a single random vector or matrix on mean 0 and variance 1