Skip to content
This repository has been archived by the owner on May 11, 2023. It is now read-only.

dev: Type promotion. #3

Open
daniel-dodd opened this issue Nov 23, 2022 · 0 comments
Open

dev: Type promotion. #3

daniel-dodd opened this issue Nov 23, 2022 · 0 comments
Labels
enhancement New feature or request

Comments

@daniel-dodd
Copy link
Member

The types returned are inconsistent over operations.

Currently adding LinearOperators to each other return and linear operator. Also adding a jax.numpy.ndarray to a linear operator returns a LinearOperator.

But matrix multiplication does not return a LinearOperator. It returns an jax.numpy.ndarray.

The question is: How should types be coerced?

Should we always return a linear operator? Should operations involving a jax.numpy.ndarray, instead, always return a jax.numpy.ndarray - since these are the least structure preserving.

@daniel-dodd daniel-dodd added the enhancement New feature or request label Nov 23, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant