We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d58fb6b commit 593e3f6Copy full SHA for 593e3f6
array_api_tests/hypothesis_helpers.py
@@ -251,6 +251,8 @@ def mutually_broadcastable_shapes(
251
def symmetric_matrices(draw, dtypes=xps.floating_dtypes(), finite=True):
252
shape = draw(square_matrix_shapes)
253
dtype = draw(dtypes)
254
+ if not isinstance(finite, bool):
255
+ finite = draw(finite)
256
elements = {'allow_nan': False, 'allow_infinity': False} if finite else None
257
a = draw(xps.arrays(dtype=dtype, shape=shape, elements=elements))
258
upper = xp.triu(a)
0 commit comments