Allow arbitrary precision number formats (e.g., Float32
)
#43
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.
While trying to solve #42, it looks like it is not so easy. I fixed 2 things along the way, but got into a 3rd situation. Many defaults are set to
Float64
. For example,This is the 3rd situation that
@testset "Issue 42"
is now stuck in:So I propose to wait for @tiemvanderdeure's answer on the question how much 32-bit is needed and otherwise to just change the code to promote to 64-bit automatically. Performance and memory efficiency are usually not important for GLM.jl, I would guess. R's core math library also defaults to
Float64
(see for example https://github.com/SurajGupta/r-source/blob/master/src/nmath/dnt.c which shows that the normal distribution logic is ondouble
s by default).