aboutsummaryrefslogtreecommitdiff
path: root/examples/cumatrix_example.lua
diff options
context:
space:
mode:
authorcloudygoose <[email protected]>2015-05-31 00:16:01 +0800
committercloudygoose <[email protected]>2015-05-31 00:16:01 +0800
commit36a686d51ca9e61779ae60d651e80c7713dd5289 (patch)
tree365f19393ae9befed478ce4027f97120d95f79bb /examples/cumatrix_example.lua
parent5edaa7d5649a2e124496159f7e8a14edab4f7484 (diff)
modified doc/nerv.md
Diffstat (limited to 'examples/cumatrix_example.lua')
-rw-r--r--examples/cumatrix_example.lua1
1 files changed, 1 insertions, 0 deletions
diff --git a/examples/cumatrix_example.lua b/examples/cumatrix_example.lua
index 544fc7f..ff9dd78 100644
--- a/examples/cumatrix_example.lua
+++ b/examples/cumatrix_example.lua
@@ -2,6 +2,7 @@ m = 4
n = 4
fm = nerv.CuMatrixFloat(m, n)
dm = nerv.CuMatrixDouble(m, n)
+print(type(dm), nerv.typename(dm))
for i = 0, m - 1 do
for j = 0, n - 1 do
-- local t = math.random(10)