Commit f5958ffa by xiaotong

new methods

parent 3d31727d
......@@ -331,6 +331,9 @@ public:
/* get the default type value of a cell in a 3d tensor */
DTYPE Get3D(int d0, int d1, int d2);
/* get the int value of a cell by its offset */
int GetInt(int offset);
/* get the int value of a cell in a 1d tensor */
int Get1DInt(int i);
......@@ -358,6 +361,9 @@ public:
/* set the value of a cell in a 3d tensor */
bool Set3D(DTYPE value, int d0, int d1, int d2);
/* set the integer value of a cell by its offset */
bool SetInt(int value, int offset);
/* set the integer value of a cell */
bool SetInt(int value, int index[], int size = -1);
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论