aboutsummaryrefslogtreecommitdiff
path: root/doc/nerv_matrix.md
diff options
context:
space:
mode:
Diffstat (limited to 'doc/nerv_matrix.md')
-rw-r--r--doc/nerv_matrix.md7
1 files changed, 6 insertions, 1 deletions
diff --git a/doc/nerv_matrix.md b/doc/nerv_matrix.md
index aedefbe..f1986a5 100644
--- a/doc/nerv_matrix.md
+++ b/doc/nerv_matrix.md
@@ -70,4 +70,9 @@ It sets the content of __Matrix__ `self` to be `beta * self + alpha * ma * mb`.
* __void Matrix.add_row(Matrix self, Matrix va, Element_type beta)__
It sets the content of __Matrix__ `self`(which should be row vector) to be `self + beta * va`.
* __void Matrix.fill(Matrix self, Element_type value)__
-Fill the content of __Matrix__ to be `value`. \ No newline at end of file
+Fill the content of __Matrix__ `self` to be `value`.
+* __void Matrix.sigmoid(Matrix self, Matrix ma)__
+Set the element of __Matrix__ `self` to be elementwise-sigmoid of `ma`.
+* __void Matrix.sigmoid_grad(Matrix self, Matrix err, Matrix output)__
+Set the element of __Matrix__ `self`, to be `self[i][j]=err[i][j]*output[i][j]*(1-output[i][j])`. This function is used to propagate sigmoid layer error.
+