Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 6 additions & 3 deletions source/exercises100.ktx
Original file line number Diff line number Diff line change
Expand Up @@ -595,9 +595,12 @@ How to print all the values of an array? (★★☆)
hint: np.set_printoptions

< a49
np.set_printoptions(threshold=np.nan)
Z = np.zeros((16,16))
print(Z)
import sys

a = np.arange(1001)
print(a)
with np.printoptions(threshold=sys.maxsize):
print(a)

< q50
How to find the closest value (to a given scalar) in a vector? (★★☆)
Expand Down