Skip to content

Commit

Permalink
minor: switch np.dot to np.matmul in code snipped in installation
Browse files Browse the repository at this point in the history
  • Loading branch information
mrava87 committed Jan 2, 2025
1 parent bbc5bd2 commit 12c8c04
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/source/installation.rst
Original file line number Diff line number Diff line change
Expand Up @@ -264,7 +264,7 @@ and run the following code in Python:
B = np.random.random((size, size))
print("Time with %s threads: %f s" \
%(os.environ.get("OMP_NUM_THREADS"),
timeit(lambda: np.dot(A, B), number=4)))
timeit(lambda: np.matmul(A, B), number=4)))
Subsequently set the environment variables to ``2`` or any higher number of threads available
in your hardware (multi-threaded), and run the same code.
Expand Down

0 comments on commit 12c8c04

Please sign in to comment.