numpy 1.22.4 Pypi GitHub Homepage
Other Docs
ParametersRaisesReturnsBackRef
maximum_fill_value(obj)

This function is useful for calculating a fill value suitable for taking the maximum of an array with a given dtype.

Parameters

obj : ndarray, dtype or scalar

An object that can be queried for it's numeric type.

Raises

TypeError

If :None:None:`obj` isn't a suitable numeric type.

Returns

val : scalar

The minimum representable value.

Return the minimum value that can be represented by the dtype of an object.

See Also

MaskedArray.fill_value

Return current fill value.

minimum_fill_value

The inverse function.

set_fill_value

Set the filling value of a masked array.

Examples

This example is valid syntax, but we were not able to check execution
>>> import numpy.ma as ma
... a = np.int8()
... ma.maximum_fill_value(a) -128
This example is valid syntax, but we were not able to check execution
>>> a = np.int32()
... ma.maximum_fill_value(a) -2147483648

An array of numeric data can also be passed.

This example is valid syntax, but we were not able to check execution
>>> a = np.array([1, 2, 3], dtype=np.int8)
... ma.maximum_fill_value(a) -128
This example is valid syntax, but we were not able to check execution
>>> a = np.array([1, 2, 3], dtype=np.float32)
... ma.maximum_fill_value(a) -inf
See :

Back References

The following pages refer to to this document either explicitly or contain code examples using this.

numpy.ma.core.set_fill_value numpy.ma.core.minimum_fill_value

Local connectivity graph

Hover to see nodes names; edges to Self not shown, Caped at 50 nodes.

Using a canvas is more power efficient and can get hundred of nodes ; but does not allow hyperlinks; , arrows or text (beyond on hover)

SVG is more flexible but power hungry; and does not scale well to 50 + nodes.

All aboves nodes referred to, (or are referred from) current nodes; Edges from Self to other have been omitted (or all nodes would be connected to the central node "self" which is not useful). Nodes are colored by the library they belong to, and scaled with the number of references pointing them


GitHub : /numpy/ma/core.py#343
type: <class 'function'>
Commit: