forward(X) {
            var z = X.mmul(this.W).addRowVector(this.b);
            z.apply(this.activationFunction);
            this.a = z.clone();
            return z;
        }
@private
propagate the given input through the current layer.
@param {Matrix} X - input.
@return {Matrix} output at the current layer.