This commit is contained in:
Mike J Innes 2017-09-12 13:04:47 +01:00
parent 972ecab9f9
commit 9348a47479
1 changed files with 1 additions and 1 deletions

View File

@ -51,4 +51,4 @@ julia> onecold(ans, [:a, :b, :c])
:b
```
Note that these operations returned `OneHotVector` and `OneHotMatrix` rather than `Array`s. `OneHotVector`s behave like normal vectors but avoid any unnecessary cost compared to using an integer index directly.. For example, multiplying a matrix with a one-hot vector simply slices out the relevant row of the matrix under the hood.
Note that these operations returned `OneHotVector` and `OneHotMatrix` rather than `Array`s. `OneHotVector`s behave like normal vectors but avoid any unnecessary cost compared to using an integer index directly. For example, multiplying a matrix with a one-hot vector simply slices out the relevant row of the matrix under the hood.