-
-
Notifications
You must be signed in to change notification settings - Fork 3
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
Passing views for copy!() to/from HYPREVector? #34
Comments
I'd be interested in the case when the views are associated with a contiguous piece of memory, I guess it might be necessary to restrict to that in order to pass a pointer to C? Maybe there is a way to restrict the type signature of a |
I think |
It looks like #16 was talking about PartitionedArrays specifically? I was trying to use the 'Direct assembly' method. Just trying to clarify because I don't know if it's (exactly?) the same problem. |
It was about passing views from PartitionedArrays. Anyway, I think you can relax the signature to |
I wanted to be able to pass a view to
copy!()
, but at the moment this is not possible, because the arguments require aVector{HYPRE_Complex}
hereHYPRE.jl/src/HYPRE.jl
Lines 221 to 248 in faa61cc
Would it be possible to make this
AbstractVector
instead? If it's correct/legal, I can make a PR to make the change and add a test, but I don't know enough about ccall to know if this is sensible.The text was updated successfully, but these errors were encountered: