Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Integer type for data indexing #11

Open
mchalela opened this issue Mar 5, 2021 · 0 comments
Open

Integer type for data indexing #11

mchalela opened this issue Mar 5, 2021 · 0 comments
Labels
enhancement New feature or request

Comments

@mchalela
Copy link
Owner

mchalela commented Mar 5, 2021

k_digit = np.zeros(data.shape, dtype=int)

Right now the default int type for the data is int64 (in most cases). This may be optimized if we choose the int size according to the length of the input data. For example, indices of int32 are sufficient for a length of 10**9 in the input data. This can save some memory for large dimensions.

@mchalela mchalela added the enhancement New feature or request label Nov 2, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant