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 0b24fc4 commit 25e7c68Copy full SHA for 25e7c68
src/gfloat/round_ndarray.py
@@ -32,9 +32,12 @@ def round_ndarray(
32
33
Args:
34
fi (FormatInfo): Describes the target format
35
- v (float): Input value to be rounded
+ v (float array): Input values to be rounded
36
rnd (RoundMode): Rounding mode to use
37
sat (bool): Saturation flag: if True, round overflowed values to `fi.max`
38
+ srbits (int array): Bits to use for stochastic rounding if rnd == Stochastic.
39
+ srnumbits (int): How many bits are in srbits. Implies srbits < 2**srnumbits.
40
+
41
np (Module): May be `numpy`, `jax.numpy` or another module cloning numpy
42
43
Returns:
0 commit comments