We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
construct_seeds
typeof(one(T)) !=T
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
as far as i understand, the type of one(T) is not necessarily T (JuliaPhysics/Measurements.jl#134 for example). but construct_seeds uses this:
one(T)
T
ForwardDiff.jl/src/partials.jl
Lines 9 to 12 in 50ec9a1
oneunit
The text was updated successfully, but these errors were encountered:
oneunit(T)
If you want to get something of the same type, you should use oneunit, that's what it's for.
(e.g. for a dimensionful type, one must be dimensionless, i.e. of a different type, as otherwise it will not be a multiplicative identity.)
one
Sorry, something went wrong.
Successfully merging a pull request may close this issue.
Uh oh!
There was an error while loading. Please reload this page.
as far as i understand, the type of
one(T)
is not necessarilyT
(JuliaPhysics/Measurements.jl#134 for example). butconstruct_seeds
uses this:ForwardDiff.jl/src/partials.jl
Lines 9 to 12 in 50ec9a1
Maybe using
oneunit
there is more correct?The text was updated successfully, but these errors were encountered: