Skip to content

Conversation

@ameymn
Copy link

@ameymn ameymn commented Aug 31, 2025

Fixes #527

The problem statement specifies that eigenvalues should be sorted
from highest to lowest. However, the PyTorch test cases were
expecting ascending order, which caused correct solutions to fail.

This PR updates the expected outputs in tests.json to descending
order so they match the problem description.

Copy link
Collaborator

@moe18 moe18 left a comment

Choose a reason for hiding this comment

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

looks good, would you also be able to update the solution code so it will output the correct solution?

@ameymn
Copy link
Author

ameymn commented Oct 31, 2025

I have update the solution code as well

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.

Problem 6: Incorrect sorting order in PyTorch test cases for "Calculate Eigenvalues of a Matrix"

2 participants