sigmoid of a matrix
matrix
Matrix sigmoid(Matrix matrix) { return matrix.performFunction((x) => 1 / (1 + exp(-x))); }