Repository navigation
[support] construct the quantity elements from their value and reference - #1102
Merged
Merged
Conversation
This was referenced Nov 21, 2026
The element casters of the mp-units facade constructed a quantity as the product of its value by its reference, which mp-units deprecates for an offset unit, such as the kelvin of a temperature, in favour of the explicit `delta` and `point` helpers: a typed matrix of temperatures did not compile. Constructing the quantity from its value and its reference is the same for every unit, an offset unit included.
FrancoisCarouge
force-pushed
the
support/mp-units-offset-unit
branch
from
November 23, 2026 05:10
9fe306b to
5e80aad
Compare
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The element casters of the mp-units facade constructed a quantity as
value * To::reference, which mp-units deprecates for an offset unit such as the kelvin: a typed matrix of temperatures did not compile under-Werror. They now construct it asTo{value, To::reference}, the same for every unit.test/x/kelvin_unit_2x1x0reads back a state of temperatures. TypedLinearAlgebra's identical facade receives the same change in FrancoisCarouge/TypedLinearAlgebra#611.