inducer / inducer/pyopencl

The `type<n>` cannot be hinted properly in IDEs.

Open
#549 3 comments 0 reactions 0 assignees View on GitHub
bug
Dominant language
Python
Stars
1.2k
Forks
247
Avg merge
7h 2m
Merged PRs (30d)
6

Description

The `type` cannot be hinted properly in IDEs.

e.g
```
import pyopencl as cl
import pyopencl.cltypes

N = 10
HOST_myArray = np.array([cl.cltypes.make_float4(1, 0, 0, 0)] * N, dtype=cl.cltypes.float4)
```
The `make_float4` function and `float4` types are not recognized. They are executed, but I think since they are not explicitly declared in `cltypes.py`, the ides have a hard time understanding

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.