I have a small programm trying to split a matrix depending on the content in the rows. Now I'm using the folling algorithm:
take the row as submatrix on the actual position
stack that on one of the two alternative matrizes depending on a condition
Unfortunately this has a very poor performance both time and memory wise.
Assigning the rows via i,j to a new matrix seems to be better. Any ideas why?
thanks