-
-
Notifications
You must be signed in to change notification settings - Fork 2k
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
Remove block_diag
from pymc.math
in favor of alias to pytensor.tensor.slinalg.block_diag
#7085
Comments
Hi @jessegrabowski, I have a question regarding the suggested steps mentioned in the issue description. It mentions both creating an alias in Would you clarify whether the intention is to deprecate Could you please clarify ? |
I think what would be best would be to keep All of the code/machinery in |
@OmGhadge are you interested in working on this one? |
Hi @ricardoV94 , Thank you for reaching out. I genuinely appreciate your consideration. While I would have liked to work on resolving the issue, I see that @AryanNanda17 has already submitted a pull request for it. I believe it's best for him to proceed, especially since the issue seems mostly resolved, with only some test coverage remaining. However, I would like to work on other issues. In fact, I've opened a draft pull request (#613) that addresses another issue (#323) in the pytensor repository. I would greatly appreciate it if you could take some time to review it. |
Thanks @OmGhadge! Your PR is on my backlog, I haven't forgot about it! Will try to get to it sometime soon |
Description
block_diag
is a core math function that should live inpytensor
and be aliased inpm.math
, rather than being directly defined there. pymc-devs/pytensor#576 moves the block_diag code, along with relevant support code (pm.math.ix
,pm.math.largest_common_dtype
, into pytensor. The PyMC function should be replaced with an alias to that new function once merged.In addition, the pytensor function is going to more closely follow the scipy API, which means that the function signature will change from
pm.math.block_diag(matrices)
topm.math.block_diag(*matrices)
. Scipy also has separate functions for the sparse and dense cases, which I think we should have as well (rather than a single function). This necessitates a depreciation warning and a temporary helper function to dispatch to eitherpytensor.tensor.slinalg.block_diag
orpytensor.sparse.block_diag
The text was updated successfully, but these errors were encountered: