Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't cbind DelayedArray instances with other matrix-likes #100

Open
LTLA opened this issue May 11, 2022 · 0 comments
Open

Can't cbind DelayedArray instances with other matrix-likes #100

LTLA opened this issue May 11, 2022 · 0 comments

Comments

@LTLA
Copy link
Contributor

LTLA commented May 11, 2022

I could have sworn this used to work.

library(DelayedArray)
x <- matrix(runif(100), 10, 10)
y <- DelayedArray(x)
cbind(y, x)
## Error in (function (classes, fdef, mtable)  : 
##   unable to find an inherited method for function ‘bindCOLS’ for signature ‘"DelayedMatrix"’

Two DelayedArrays are fine:

cbind(y, y)
## <10 x 20> matrix of class DelayedMatrix and type "double":
## etc.
Session information
> sessionInfo()
R version 4.2.0 Patched (2022-05-06 r82323)
Platform: x86_64-pc-linux-gnu (64-bit)
Running under: Ubuntu 18.04.6 LTS

Matrix products: default
BLAS:   /home/luna/Software/R/R-4-2-branch/lib/libRblas.so
LAPACK: /home/luna/Software/R/R-4-2-branch/lib/libRlapack.so

locale:
 [1] LC_CTYPE=en_US.UTF-8       LC_NUMERIC=C              
 [3] LC_TIME=en_US.UTF-8        LC_COLLATE=en_US.UTF-8    
 [5] LC_MONETARY=en_US.UTF-8    LC_MESSAGES=en_US.UTF-8   
 [7] LC_PAPER=en_US.UTF-8       LC_NAME=C                 
 [9] LC_ADDRESS=C               LC_TELEPHONE=C            
[11] LC_MEASUREMENT=en_US.UTF-8 LC_IDENTIFICATION=C       

attached base packages:
[1] stats4    stats     graphics  grDevices utils     datasets  methods  
[8] base     

other attached packages:
[1] DelayedArray_0.22.0  IRanges_2.30.0       S4Vectors_0.34.0    
[4] MatrixGenerics_1.8.0 matrixStats_0.62.0   BiocGenerics_0.42.0 
[7] Matrix_1.4-1        

loaded via a namespace (and not attached):
[1] compiler_4.2.0  grid_4.2.0      lattice_0.20-45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant