function res = simple_mlp_logsigderiv(mat)
% Derivative of the logistic sigmoid activation function.
  res = mat .* (1 - mat);
