Add default shape to random.rademacher.

This commit is contained in:
carlosgmartin 2024-06-04 00:16:58 -04:00
parent 95ed39bfc0
commit de8a0d3be6

View File

@ -1860,7 +1860,7 @@ def _f(key, dfnum, dfden, shape, dtype) -> Array:
def rademacher(key: KeyArrayLike,
shape: Shape,
shape: Shape = (),
dtype: DTypeLikeInt = int) -> Array:
r"""Sample from a Rademacher distribution.
@ -1873,7 +1873,7 @@ def rademacher(key: KeyArrayLike,
Args:
key: a PRNG key.
shape: The shape of the returned samples.
shape: The shape of the returned samples. Default ().
dtype: The type used for samples.
Returns: