


"""simple docstring"""


import os






def      a__ (				__lowercase = "matrix.txt"   )	->	int:
				with open(os.path.join(os.path.dirname(__lowercase   )     ,			__lowercase   )   ) as in_file:
								_A					  =			in_file.read()

				_A					  =			[[int(__lowercase   ) for cell in row.split(","   )] for row in data.strip().splitlines()]
				_A					  =			[[0 for cell in row] for row in grid]
				_A					  =			len(grid[0]   )

				_A					  =			[[0 for i in range(__lowercase   )] for j in range(__lowercase   )]
				_A					  =			grid[0][0]
				for i in range(1     ,			__lowercase   ):
								_A					  =			grid[0][i] + dp[0][i - 1]
				for i in range(1     ,			__lowercase   ):
								_A					  =			grid[i][0] + dp[i - 1][0]

				for i in range(1     ,			__lowercase   ):
								for j in range(1     ,			__lowercase   ):
												_A					  =			grid[i][j] + min(dp[i - 1][j]     ,			dp[i][j - 1]   )

				return dp[-1][-1]


if __name__ == "__main__":
		print(f'''{solution() = }''')



"""simple docstring"""


import numpy as np






def      a__ (				__lowercase     ,			__lowercase   )	->	np.ndarray:
				return np.where(vector > 0     ,			__lowercase     ,			(alpha * (np.exp(__lowercase   ) - 1))   )


if __name__ == "__main__":
		import doctest

		doctest.testmod()