-
|
I have the following code I understand make_array_view such that it does not copy data, but does Csr::create copy the data? The question is, if I need to keep the sources of the make_array_view available. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
|
The This is because the So, to answer your question, you don't need to keep around the sources for the |
Beta Was this translation helpful? Give feedback.
If you want to make sure your matrix isn't altered, you can instead use
make_const_array_viewand useCsr::create_constinstead with the same parameters.