Created
March 6, 2024 17:51
-
-
Save quantra-go-algo/8968507e961e33b03c37f1761ab56a94 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Import the cupy library | |
import cupy as cp | |
# Create 10,000 random numbers | |
x = cp.random.rand(10000) | |
y = cp.random.rand(10000) | |
# Perform the multiplication of both arrays | |
result = cp.dot(x, y) | |
# Print the result | |
print(result) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment