Replies: 2 comments
-
There is a feature request to be able to copy the buffer content into an array: if that gets through and if you can accept the additional memory consumption, you can convert than compute. Otherwise the alternative is to walk through, as you were suggesting as workaround. Any idea how we can provide an extensible friendly class which can provide any additional operation the users might need? Something along the line of a streaming operations collector class.... |
Beta Was this translation helpful? Give feedback.
0 replies
-
Thanks for the reply. I have not studied the underlying code. My thinking
is that if the buffer is using std::vector and just managing the first and
last iterators then applying operations like std::min_element would work.
Again, I need to dig into the code.
…On Fri, Oct 28, 2022, 02:54 Roberto Lo Giacco ***@***.***> wrote:
There is a feature request to be able to copy the buffer content into an
array: if that gets through and if you can accept the additional memory
consumption, you can convert than compute. Otherwise the alternative is to
walk through, as you were suggesting as workaround.
Any idea how we can provide an extensible friendly class which can provide
any additional operation the users might need? Something along the line of
a streaming operations collector class....
—
Reply to this email directly, view it on GitHub
<#71 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ANQI5JR5RR2IZZN7554PFKDWFOBEFANCNFSM6AAAAAARQA5BSY>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
The operators min and max are easily applied to arrays. Is there a straightforward way to treat the buffer as a normal array to apply these sorts of operators?
Of course, I can write my own functions to walk the buffer and provide the same results but wondering if there is a more “elegant” approach.
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions