






'''simple docstring'''


import numpy as np






def   lowerCAmelCase__			(					SCREAMING_SNAKE_CASE__		):
 __a    :	List[Any]									=						np.exp(SCREAMING_SNAKE_CASE__		)

 # Add up the all the exponentials
 __a    :	Optional[int]									=						np.sum(SCREAMING_SNAKE_CASE__		)

 # Divide every exponent by the sum of all exponents
 __a    :	Optional[int]									=						exponent_vector / sum_of_exponents

 return softmax_vector


if __name__ == "__main__":
  print(softmax((0,)))












'''simple docstring'''


def   lowerCAmelCase__			(					SCREAMING_SNAKE_CASE__		):
 if len(SCREAMING_SNAKE_CASE__		) <= 1:
  return data
 else:
  return [
      *quick_sort([e for e in data[1:] if e <= data[0]]		),
      data[0],
      *quick_sort([e for e in data[1:] if e > data[0]]		),
  ]


if __name__ == "__main__":
  import doctest

  doctest.testmod()




