




"""simple docstring"""


def    a__   (   __SCREAMING_SNAKE_CASE			)     ->     int:
		if not numbers:
				return 0

		if not isinstance(__SCREAMING_SNAKE_CASE ,			(list, tuple)			) or not all(
		    isinstance(__SCREAMING_SNAKE_CASE ,			__SCREAMING_SNAKE_CASE			) for number in numbers			):
				raise ValueError("numbers must be an iterable of integers"			)

		__lowerCAmelCase:	Optional[Any]   				=      numbers[0]

		for i in range(1 ,			len(__SCREAMING_SNAKE_CASE			)			):
				# update the maximum and minimum subarray products
				__lowerCAmelCase:	str   				=      numbers[i]
				if number < 0:
						__lowerCAmelCase:	int   				=      min_till_now, max_till_now
				__lowerCAmelCase:	List[Any]   				=      max(__SCREAMING_SNAKE_CASE ,			max_till_now * number			)
				__lowerCAmelCase:	int   				=      min(__SCREAMING_SNAKE_CASE ,			min_till_now * number			)

				# update the maximum product found till now
				__lowerCAmelCase:	Any   				=      max(__SCREAMING_SNAKE_CASE ,			__SCREAMING_SNAKE_CASE			)

		return max_prod





"""simple docstring"""


import numpy as np






def    a__   (   __SCREAMING_SNAKE_CASE			)     ->     np.array:
		return (2 / (1 + np.exp(-2 * vector			))) - 1


if __name__ == "__main__":
			import doctest

			doctest.testmod()


