A

Admin • 833.24K Points
Coach

Q. What does np.allclose(a, b) check?

  • (A) Whether all elements are exactly equal
  • (B) Whether all elements are numerically close within a tolerance
  • (C) Whether arrays a and b have the same shape
  • (D) Whether arrays contain all non-zero values
  • Correct Answer - Option(B)
  • Views: 16
  • Filed under category Numpy
  • Hashtags:

Explanation by: Admin

np.allclose() checks if two arrays are element-wise equal within a tolerance.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.