-
Notifications
You must be signed in to change notification settings - Fork 45
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #101 from asmeurer/more-linalg2
More improvements to test_linalg
- Loading branch information
Showing
9 changed files
with
555 additions
and
221 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
import pytest | ||
|
||
from hypothesis import given | ||
|
||
from ..hypothesis_helpers import symmetric_matrices | ||
from .. import array_helpers as ah | ||
from .. import _array_module as xp | ||
|
||
@pytest.mark.xp_extension('linalg') | ||
@given(x=symmetric_matrices(finite=True)) | ||
def test_symmetric_matrices(x): | ||
upper = xp.triu(x) | ||
lower = xp.tril(x) | ||
lowerT = ah._matrix_transpose(lower) | ||
|
||
ah.assert_exactly_equal(upper, lowerT) |
Oops, something went wrong.