Skip to content

Jackson/syr2 fixes#61

Merged
tdehoff merged 3 commits intomainfrom
jackson/syr2-fixes
Feb 26, 2026
Merged

Jackson/syr2 fixes#61
tdehoff merged 3 commits intomainfrom
jackson/syr2-fixes

Conversation

@jacksonmowry
Copy link
Collaborator

Oops I had the wrong tests running for my previous PR. This fixes the tests and adds a new error

) -> Bool:
) raises -> Bool:
np = Python.import_module("numpy")
tol32 = Scalar[DType.float32](py=np.finfo(np.float32).eps)
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I don't believe epsilon values are available within Mojo so we're pulling them from python/numpy

syr_test[DType.float32, 1024, 0]()
syr_test[DType.float64, 256, 0]()
syr_test[DType.float64, 1024, 1]()
syr2_test[DType.float32, 512, 1]()
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I was running the wrong tests before, whoops

@tdehoff tdehoff merged commit 34c5d11 into main Feb 26, 2026
1 check passed
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.

2 participants