Skip to content

fix: fix checkbounds, view methods, indexing, and add tests - #327

Merged
ChrisRackauckas merged 1 commit into
SciML:masterfrom
AayushSabharwal:as/checkbounds
Jan 6, 2024
Merged

ChrisRackauckas merged 1 commit into
SciML:masterfrom
AayushSabharwal:as/checkbounds

Conversation

@AayushSabharwal

Copy link
Copy Markdown
Member

Checklist

  • Appropriate tests were added
  • Any code changes were done in a way that does not break public API
  • All documentation related to code changes were updated
  • The new code follows the
    contributor guidelines, in particular the SciML Style Guide and
    COLPRAC.
  • Any new documentation only uses public API

Additional context

Add any other context about the problem here.

@ChrisRackauckas
ChrisRackauckas merged commit 8ddcb4a into SciML:master Jan 6, 2024
Comment thread src/vector_of_array.jl
J = map(i->Base.unalias(A,i), to_indices(A, I))
elseif length(I) == 2 && (I[1] == Colon() || I[1] == 1)
J = map(i->Base.unalias(A,i), to_indices(A, Base.tail(I)))
end

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

J isn't always defined before using.

@AayushSabharwal
AayushSabharwal deleted the as/checkbounds branch January 30, 2024 06:37
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 this pull request may close these issues.

3 participants