Skip to main content
`Ctrl`+`K`
scipy.sparse.dok_matrix.

# get

dok_matrix.get(key, default=0.0)

  This provides dict.get method functionality with type checking.

  Parameters:
    key int or tuple of int

      The key to look for in the dok_array.

    default optional

      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.