Skip to content

Instantly share code, notes, and snippets.

@quantra-go-algo
Created March 6, 2024 17:51
Show Gist options
  • Save quantra-go-algo/8968507e961e33b03c37f1761ab56a94 to your computer and use it in GitHub Desktop.
Save quantra-go-algo/8968507e961e33b03c37f1761ab56a94 to your computer and use it in GitHub Desktop.
# 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