Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/torch/torch.github.io.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorSoumith Chintala <soumith@gmail.com>2015-09-11 07:07:43 +0300
committerSoumith Chintala <soumith@gmail.com>2015-09-11 07:07:43 +0300
commit141452088b70d7e3cd18bbc0bb800ccdd72464a7 (patch)
treec51421c109753d95b5375da526267423a52e1e96 /docs
parent29ad8e312555f7a6da5f98370c50f800b9ed5c19 (diff)
some dev docs
Diffstat (limited to 'docs')
-rw-r--r--docs/02-developer-docs.md2
1 files changed, 2 insertions, 0 deletions
diff --git a/docs/02-developer-docs.md b/docs/02-developer-docs.md
index 8ef7315..c925aae 100644
--- a/docs/02-developer-docs.md
+++ b/docs/02-developer-docs.md
@@ -194,12 +194,14 @@ long THRealTensor_add(const THRealTensor *r_, THRealTensor *t, real value)
```
Real and real are defined to be of a specific type, for example, for float precision:
+
```C
#define Real Float
#define real float
```
finally makes that function prototype:
+
```C
long THFloatTensor_add(const THFloatTensor *r_, THFloatTensor *t, float value)
```