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

Scale, Product Array Combinator #349

Merged
merged 10 commits into from
Dec 20, 2023
Merged

Scale, Product Array Combinator #349

merged 10 commits into from
Dec 20, 2023

Conversation

nullplay
Copy link
Collaborator

@nullplay nullplay commented Dec 7, 2023

Do not merge

Copy link

codecov bot commented Dec 7, 2023

Codecov Report

Attention: 138 lines in your changes are missing coverage. Please review.

Comparison is base (df553b8) 76.00% compared to head (e2b69b7) 75.77%.

Files Patch % Lines
src/tensors/combinators/product.jl 0.00% 79 Missing ⚠️
src/tensors/combinators/scale.jl 42.68% 47 Missing ⚠️
src/transforms/wrapperize.jl 63.15% 7 Missing ⚠️
src/dimensions.jl 77.77% 4 Missing ⚠️
src/util/limits.jl 0.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #349      +/-   ##
==========================================
- Coverage   76.00%   75.77%   -0.23%     
==========================================
  Files          78       80       +2     
  Lines        6600     6796     +196     
==========================================
+ Hits         5016     5150     +134     
- Misses       1584     1646      +62     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@willow-ahrens
Copy link
Collaborator

what's the difference between scale and product? Also, does this work for discrete extent when the factor is a positive integer?

@nullplay
Copy link
Collaborator Author

  1. Scale is dealing with constant coefficient and Product deals variable coefficient. Scale is similar to Offset combinator and Product is similar to Toeplitz.
  2. No. We need some mechanism that restricts scaledim starts and ends at integer endpoint. Current scaledim just divide with a scale. (E.g., scaledim(Extent(3,6), 2) = Extent(1.5, 3.0), but what we want for discrete Extent is Extent(2, 3))

@willow-ahrens
Copy link
Collaborator

Can we reverse the direction of scaledim so that it multiplies the extent, rather than dividing? My intuition is that we should be able to write B[i] = A[i*2 + 1], right?

@willow-ahrens willow-ahrens merged commit 89b3a26 into main Dec 20, 2023
8 checks passed
@willow-ahrens willow-ahrens deleted the jaeyeon/scale branch January 3, 2024 16:21
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