Implement a program that performs the leaky ReLU activation function on a vector of floating-point numbers. The leaky ReLU function is defined as: \[ f(x) = \begin{cases} x & \text{if } x > 0 \\ \alpha x & \text{if } x \leq 0 \end{cases} \] where \(\alpha\) is a small positive constant (0.01 in this problem).
solve function signature must remain unchangedoutputInput: x = [1.0, -2.0, 3.0, -4.0] Output: y = [1.0, -0.02, 3.0, -0.04]
Input: x = [-1.5, 0.0, 2.5, -3.0] Output: y = [-0.015, 0.0, 2.5, -0.03]
N ≤ 100,000,000input[i] ≤ 1000.0N = 50,000,000