Perform the ReLU (Rectified Linear Unit) activation function on an input matrix:
C[i][j]=max(0,A[i][j])
The ReLU function is defined as:
f(x)={x0if x>0if x≤0
Input:
- Matrix A of size M×N containing floating-point values
Output:
- Matrix C of size M×N containing the ReLU activation values
Notes:
- Both matrices A and C are stored in row-major order