scipy.sparse.dok_array.
get#
- dok_array.get(key, default=0.0)[source]#
This provides dict.get method functionality with type checking.
- Parameters:
- keyint or tuple of int
The key to look for in the dok_array.
- defaultoptional
The value to return if key is not found. Default is 0.0.
- Returns:
- value
The value associated with key if it exists, otherwise default.