Displaying 1 result from an estimated 1 matches for "binary_hex".
Did you mean:
binary_ctx
2012 Aug 02
1
Filter a matrix with a matrix HELP!
...multicore
package
and I have some troubles with foreach.
What I'm trying to do is to extract a data in coordinate (ii,jj) from a
matrix2,
only if the data in the same coordinate in matrix1 is ==1.
Make this with a nested "for" take a lot of time because I have thousand of
values.
ex.
Binary_hex = NULL
foreach(ii=1:nrow(matrix2)) %:% foreach(jj=1:ncol(matrix2)) %dopar%
{when(matrix2[ii,jj] == 1) %:% {Binary_hex <- c(Binary_hex,
matrix1[ii,jj])}}
During this operation... computer don't work in multicore and the process
take a lot of time,
just like a simple nested for. I think the m...