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

Fix * for numbers with non-commutative multiplication #608

Merged
merged 2 commits into from
Feb 8, 2023

Conversation

sostock
Copy link
Collaborator

@sostock sostock commented Jan 31, 2023

Fixes #607.

There are other methods of *, /, and // that switch the order of a multiplication, but they only apply to types like Units, Real, Level, or Gain, for which multiplication is actually commutative.

@codecov-commenter
Copy link

codecov-commenter commented Jan 31, 2023

Codecov Report

Merging #608 (aeb0a5e) into master (e2aa6f8) will decrease coverage by 1.09%.
The diff coverage is 100.00%.

📣 This organization is not using Codecov’s GitHub App Integration. We recommend you install it so Codecov can continue to function properly for your repositories. Learn more

@@            Coverage Diff             @@
##           master     #608      +/-   ##
==========================================
- Coverage   89.03%   87.95%   -1.09%     
==========================================
  Files          16       16              
  Lines        1487     1453      -34     
==========================================
- Hits         1324     1278      -46     
- Misses        163      175      +12     
Impacted Files Coverage Δ
src/quantities.jl 94.16% <100.00%> (+0.04%) ⬆️
src/pkgdefaults.jl 18.60% <0.00%> (-32.10%) ⬇️
src/types.jl 89.79% <0.00%> (-6.21%) ⬇️
src/dimensions.jl 90.47% <0.00%> (-4.77%) ⬇️
src/units.jl 84.66% <0.00%> (-4.00%) ⬇️
src/user.jl 95.78% <0.00%> (-0.66%) ⬇️

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@sostock sostock force-pushed the noncommutative_mult branch from aeb0a5e to 2f2533a Compare February 2, 2023 10:22
@sostock sostock merged commit 3d778b6 into PainterQubits:master Feb 8, 2023
@sostock sostock deleted the noncommutative_mult branch February 8, 2023 09:06
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.

This package assumes that * is commutative
2 participants