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
Packing and unpacking of FullMatrix
into std::vector
#8268
Comments
Yup: I think adding conversion operators to |
As a workaround
would work (as long as |
Alternatively, you could also use an intermediate
|
If you want to do this, I have another recommendation: put the |
@masterleinad thank you for showing the workarounds. I can incorporate them into my code quickly. |
I am satisfied with #8278 and I am not planning to submit any code for changing the interface of the |
I wanted to pack a
FullMatrix
tostd::vector
and unpack it afterward in order to useContinuousQuadratureDataTransfer
. I tried to use STL iterators and STL algorithms to perform these operations, but theFullMatrix<Number>::const_iterator
class does not work similar to STL iterators. The codeproduces the error (on GCC7.4)
and the code
does not compile either, with the error
I can write a patch to fix these. We probabely need to add a conversion operator to
FullMatrix<Number>::Accessor
and change the interface of thefill()
method to accept any iterator.The text was updated successfully, but these errors were encountered: