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

# maximum

dok_matrix.maximum(other)

  Element-wise maximum between this and another array/matrix.

  Parameters:
    other array_like or sparse array

      Array to compare against.

  Returns:
    sparse array/matrix or ndarray

      Result of element-wise minimum. The type depends on other:

      - If other is a scalar, the result is a sparse array/matrix.

      - If other is an ndarray, the result is an ndarray.