Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug in matrix times subarray with decreasing index #30765

Closed
abelsiqueira opened this issue Jan 19, 2019 · 0 comments · Fixed by #41513
Closed

Bug in matrix times subarray with decreasing index #30765

abelsiqueira opened this issue Jan 19, 2019 · 0 comments · Fixed by #41513

Comments

@abelsiqueira
Copy link
Contributor

The code speak for itself

A = ones(2,2)
v = [1.0; 2.0]
A * v # [3.0; 3.0]
A * v[2:-1:1] # [3.0; 3.0]
A * view(v, 2:-1:1) # [2.0; 2.0] ????

Version info:

Julia Version 1.0.3
Commit 099e826241 (2018-12-18 01:34 UTC)
Platform Info:
  OS: Linux (x86_64-pc-linux-gnu)
  CPU: Intel(R) Core(TM) i7-7500U CPU @ 2.70GHz
  WORD_SIZE: 64
  LIBM: libopenlibm
  LLVM: libLLVM-6.0.0 (ORCJIT, skylake)

and also with 1.1.0-rc2

Julia Version 1.1.0-rc2.0
Commit 980eda064e (2019-01-13 00:19 UTC)

First posted in discourse.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant