-
join_many requires the use of Can the array be joined from
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 6 replies
-
@3togo Perhaps join_many macro is what you are looking for ? It takes care of creating the vector out of The reason most APIs of arrayfire-rust crate have |
Beta Was this translation helpful? Give feedback.
@3togo Perhaps join_many macro is what you are looking for ? It takes care of creating the vector out of
Array
references and passing it down tojoin
function for you.The reason most APIs of arrayfire-rust crate have
Array&
as arguments to enable reuse of the same memory for multiple operations. Otherwise, Array would be consumed by the first join_many and the original array can't be reused without a clone operation which is not free of cost always.