From 788ddace103237d046bc1d87edd281366e2fdcca Mon Sep 17 00:00:00 2001 From: cloudygoose Date: Tue, 2 Jun 2015 14:56:36 +0800 Subject: doc change about matrix --- doc/nerv_matrix.md | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'doc') 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. + -- cgit v1.2.3-70-g09d2