Fixed the documentation of Scalar Tensors

This commit is contained in:
Benoit Steiner 2016-11-24 12:31:43 -08:00
parent 3be1afca11
commit 7ad37606dd

View File

@ -1737,11 +1737,9 @@ TODO
## Representation of scalar values ## Representation of scalar values
Scalar values are often represented by tensors of size 1 and rank 1. It would be Scalar values are often represented by tensors of size 1 and rank 0.For example
more logical and user friendly to use tensors of rank 0 instead. For example Tensor<T, N>::maximum() currently returns a Tensor<T, 0>. Similarly, the inner
Tensor<T, N>::maximum() currently returns a Tensor<T, 1>. Similarly, the inner product of 2 1d tensors (through contractions) returns a 0d tensor.
product of 2 1d tensors (through contractions) returns a 1d tensor. In the
future these operations might be updated to return 0d tensors instead.
## Limitations ## Limitations