From 0e5eee8264315d2ec3419a2ca1409614c399fb88 Mon Sep 17 00:00:00 2001 From: cossio Date: Fri, 10 Jun 2022 09:46:39 +0200 Subject: [PATCH] Warn about 'end' issue in Readme --- README.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/README.md b/README.md index c9b5931..75d5ed1 100644 --- a/README.md +++ b/README.md @@ -56,6 +56,12 @@ instances of `..` afterwards are treated simply as slices. Usually, you should only use one instance of `..` in an indexing expression to avoid possible confusion. +**Warning:** `..` does not work when indexing also with `end` or `begin`. +For example, `A = randn(2,3,4); A[.., 1:end]` will not give the intended +result. This is a known limitation, and is not likely to be fixed until +some necessary changes in the Julia language itself are implemented. See +https://github.com/ChrisRackauckas/EllipsisNotation.jl/issues/19 +for more details. # Acknowledgements