Skip to content

Basic arithmetic quality-of-life array methods? #740

Answered by inducer
iliya-malecki asked this question in Q&A
Discussion options

You must be logged in to vote

Here's a simple example:

https://github.com/inducer/pyopencl/blob/58717882517e49b451980437074f560cdb823a85/examples/demo_array.py

Generally, that's OK, though I would strongly suggest to_device over set.

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@iliya-malecki
Comment options

@inducer
Comment options

Answer selected by iliya-malecki
@iliya-malecki
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants