diff options
author | cloudygoose <[email protected]> | 2015-06-02 11:14:14 +0800 |
---|---|---|
committer | cloudygoose <[email protected]> | 2015-06-02 11:14:14 +0800 |
commit | 5e7fcdf4e5be450927764254d492d87349e4114e (patch) | |
tree | 577cc00f1a9a4cd5490e8bf78f438cca4cbebe6f /doc | |
parent | 3d71571c45a37fb322d6acb9feecb5a185ce510a (diff) |
...
Diffstat (limited to 'doc')
-rw-r--r-- | doc/nerv_matrix.md | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/doc/nerv_matrix.md b/doc/nerv_matrix.md index 097a2ed..0585ee6 100644 --- a/doc/nerv_matrix.md +++ b/doc/nerv_matrix.md @@ -32,8 +32,8 @@ In the methods description below, __Matrix__ could be __Nerv.CuMatrixFloat__, __ Returns a __Matrix__ object of `nrow` rows and `ncol` columns. * __Element_type = Matrix.get_elem(Matrix self, int index)__ Returns the element value at the specific index(treating the matrix as a vector). The index should be less than `nmax` of the matrix. -* __void Matrix.set_elem(Matrix self, int index, Element_type v)__ -Set the value at `index` to be `v`. +* __void Matrix.set_elem(Matrix self, int index, Element_type value)__ +Set the value at `index` to be `value`. * __int Matrix.ncol(Matrix self)__ Get `ncol`, the number of columns. * __int Matrix.nrow(Matrix self)__ @@ -42,4 +42,6 @@ Get `nrow`, the number of rows. Returns the value(not a pointer) of space the `data_ref` pointer pointed to. This function is mainly for debugging. * __Matrix/Element\_type, boolean Matrix.\_\_index\_\_(Matrix self, int index)__ If the matrix has more than one row, will return the row at `index` as a __Matrix__ . Otherwise it will return the value at `index`. -* __boolean Matrix.\_\_newindex\_\_(Matrix self, int )__
\ No newline at end of file +* __void Matrix.\_\_newindex\_\_(Matrix self, int index, Element_type value)__ +Set the element at `index` to be `value`. +--- |