function res = simple_mlp_tanhfwd(mat)
% Hyperbolic tangent activation function.
% TODO: Basically this could be parameterized (as in alpha * tanh(beta*x))
  res = 2 ./ (1 + exp(-2 * mat)) - 1;
