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

Use vzero! not vscale! when beta=0 to support units #9

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

JeffFessler
Copy link
Contributor

Continued refinement of #7

(This time the "allow edits" button was already checked by default.)

You may have a more general solution to vscale! in LazyAlgebra. If so, just tell me to be patient while you work on that!

@JeffFessler
Copy link
Contributor Author

I don't know why the CI failed here. The ]test passed just fine locally.

@emmt
Copy link
Owner

emmt commented Oct 20, 2021

You are right, this has to be fixed in LazyAlgebra. I replaced the vzero! method there by:

vzero!(x) = vfill!(x, zero(eltype(x)))

and take the oportunity tu modify vfill! as well. See this commit.

@JeffFessler JeffFessler changed the title Use vfill! not vscale! when beta=0 to support units Use vzero! not vscale! when beta=0 to support units Oct 22, 2021
@JeffFessler
Copy link
Contributor Author

Thanks for the update to vzero! - that looks good.
I have updated this PR to use it. I think this PR is likely still needed to support interpolation of Unitful data due to the current type constraints of vscale!.

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.

2 participants