Skip to content

Conversation

chriselrod
Copy link
Collaborator

where sizeof(S) > sizeof(T) return a static range

@chriselrod chriselrod requested a review from Tokazama August 31, 2021 01:37
@codecov
Copy link

codecov bot commented Aug 31, 2021

Codecov Report

Merging #198 (47096bf) into master (bb56a11) will decrease coverage by 0.15%.
The diff coverage is 0.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #198      +/-   ##
==========================================
- Coverage   85.23%   85.08%   -0.16%     
==========================================
  Files          11       11              
  Lines        1666     1669       +3     
==========================================
  Hits         1420     1420              
- Misses        246      249       +3     
Impacted Files Coverage Δ
src/axes.jl 66.43% <0.00%> (-1.40%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update bb56a11...47096bf. Read the comment docs.

if _is_reshaped(typeof(A)) && (sizeof(S) > sizeof(T)) && dim == 1
return One():static(div(sizeof(S), sizeof(T)))
end
Base.axes(A, Int(dim)) # TODO implement ArrayInterface version
Copy link
Member

Choose a reason for hiding this comment

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

Is this type piracy?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

This is calling Base.axes, not defining it.

Copy link
Member

Choose a reason for hiding this comment

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

Sorry. Was thrown off by spacing in mobile view

Copy link
Member

@Tokazama Tokazama left a comment

Choose a reason for hiding this comment

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

Looks good

@chriselrod chriselrod merged commit f8d1182 into master Aug 31, 2021
@chriselrod chriselrod deleted the staticfirstreinterpretaxes branch August 31, 2021 14:01
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.

2 participants