-
Notifications
You must be signed in to change notification settings - Fork 75
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
fit fails with BigFloat: MethodError: no method matching _fit #295
Comments
Somewhat similarly,
|
Just tried installing Polynomials from master, and it seems that |
Thanks for the report! |
Possibly related,
ERROR: DimensionError |
Yeah, this is a different issue, and I'm not sure there is a proper fix. For fitting, a Vandermonde matrix is constructed with columns which would need units of u^0, u^1, ...,u^n. So currently there is an error as we type that matrix by eltype(x). Some discussion on the issue of using units with matrices can be found here: with the simplest recommendation being to strip the units and add them back, as needed. |
When I do:
I get:
But if I do:
I get the expected (if slightly inaccurate) result:
This is Julia 1.5.3.
The text was updated successfully, but these errors were encountered: