Skip to content

Conversation

@eriknw
Copy link
Member

@eriknw eriknw commented Mar 30, 2021

Instead, use mask= keyword in the appropriate operation.
Also, for sanity, don't allow Vector, Matrix, or TransposedMatrix to be converted to numpy arrays.
Heads up: Some array creation semantics are changing in numpy 1.20.

… like numpy.

Instead, use `mask=` keyword in the appropriate operation.
Also, for sanity, don't allow Vector, Matrix, or TransposedMatrix to be converted to numpy arrays.
Heads up: Some array creation semantics are changing in numpy 1.20.
@eriknw
Copy link
Member Author

eriknw commented Apr 15, 2021

I don't know of any other library defining __array__ or __array_struct__ to prevent from being converted to a numpy array, but this seems fine to me. Merging.

@eriknw eriknw merged commit 5aee108 into python-graphblas:main Apr 15, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant