Skip to content
Prev 379973 / 398500 Next

R C API resize matrice

Hi Jiedei,

Thank you for your reply.

To give you a bit more context, I wrote a function that find all the
positions (index) of all small matrices inside a larger matrix. At the
beginning I pre-allocate let's say a 100 by 2 matrix. However a lot of
values might remain empty in this matrix of postions so I have to resize it
down to keep only the relevant value. Does it make sense?

Please let me know what you think and if there is a safer way to do it?

Please let me know if you want more information or have any questions.

Best regards
Morgan
On Sat, 15 Jun 2019 00:15 King Jiefei, <szwjf08 at gmail.com> wrote: