bigmemory icon indicating copy to clipboard operation
bigmemory copied to clipboard

sub.big.matrix of a non-shared big.matrix?

Open privefl opened this issue 9 years ago • 3 comments

a <- big.matrix(5, 5, shared = FALSE)
a.sub <- sub.big.matrix(a, 1, 3)
Error in DescribeBigMatrix(x) : 
  you can't describe a non-shared big.matrix.

Is it normal? Why?

privefl avatar Oct 05 '16 13:10 privefl

DescribeBigMatrix is not working because the big.matrix object only exists in a single process. You would copy it with a deepcopy.

However - as you probably already know - the real issue is "Why can't you create a sub.big.matrix from a non-shared big.matrix?" The code is probably using describe to attach to the big.matrix. This should be fixed.

I'll probably have some time to look at it this weekend. I've been overtasked lately and haven't been able to get to issues nearly as quickly as I'd like to.

kaneplusplus avatar Oct 05 '16 18:10 kaneplusplus

Thanks for your time.

privefl avatar Oct 06 '16 06:10 privefl

Thanks for your patience.

kaneplusplus avatar Oct 06 '16 12:10 kaneplusplus