Skip to content

Check for square matrix in make_node to Det #861

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

Merged
merged 4 commits into from
Jun 28, 2024

Conversation

tanish1729
Copy link
Contributor

Description

Raise a ValueError if non square matrix (with non shapes) is passed to the Det Op

Related Issue

Checklist

Type of change

  • New feature / enhancement
  • Bug fix
  • Documentation
  • Maintenance
  • Other (please specify):

@tanish1729
Copy link
Contributor Author

@jessegrabowski
Copy link
Member

Looks like there are float32 tests failing :)

@jessegrabowski jessegrabowski self-requested a review June 27, 2024 12:29
@ricardoV94
Copy link
Member

Failing tests are because of the new scipy release: #859

Copy link
Member

@jessegrabowski jessegrabowski left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Small suggestions for clarity, but otherwise this looks good to me

@jessegrabowski
Copy link
Member

Also rebase from the current main to get the scipy version pin; that should fix the failing CI

Copy link

codecov bot commented Jun 28, 2024

Codecov Report

Attention: Patch coverage is 50.00000% with 2 lines in your changes missing coverage. Please review.

Project coverage is 80.97%. Comparing base (7a00b88) to head (38fb113).
Report is 153 commits behind head on main.

Files with missing lines Patch % Lines
pytensor/tensor/nlinalg.py 50.00% 1 Missing and 1 partial ⚠️
Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##             main     #861      +/-   ##
==========================================
- Coverage   80.99%   80.97%   -0.02%     
==========================================
  Files         169      169              
  Lines       46939    47015      +76     
  Branches    11467    11497      +30     
==========================================
+ Hits        38019    38072      +53     
- Misses       6713     6725      +12     
- Partials     2207     2218      +11     
Files with missing lines Coverage Δ
pytensor/tensor/nlinalg.py 94.84% <50.00%> (-0.39%) ⬇️

... and 4 files with indirect coverage changes

@ricardoV94 ricardoV94 merged commit 5c8afae into pymc-devs:main Jun 28, 2024
56 of 57 checks passed
@ricardoV94 ricardoV94 changed the title added check for square matrix in make_node to Det Check for square matrix in make_node to Det Jun 28, 2024
@tanish1729 tanish1729 deleted the non-square-det branch July 3, 2024 13:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

pt.linalg.det should eagerly fail if known shapes are not square
3 participants