Skip to content

DelayedArray's log() doesn't respond to argument 'base' #92

@LTLA

Description

@LTLA
library(DelayedArray)
Z <- DelayedArray(rbind(123))
log(Z)
## <1 x 1> matrix of class DelayedMatrix and type "double":
##          [,1]
## [1,] 4.812184
log(Z, base=10)
## <1 x 1> matrix of class DelayedMatrix and type "double":
##          [,1]
## [1,] 4.812184

Interestingly enough, Matrix itself had a similar bug some time ago. Seems like base= is pretty easy to forget.

Session information
R Under development (unstable) (2021-01-24 r79876)
Platform: x86_64-pc-linux-gnu (64-bit)
Running under: Ubuntu 18.04.5 LTS

Matrix products: default
BLAS:   /home/luna/Software/R/trunk/lib/libRblas.so
LAPACK: /home/luna/Software/R/trunk/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] parallel  stats4    stats     graphics  grDevices utils     datasets 
[8] methods   base     

other attached packages:
[1] DelayedArray_0.17.11 IRanges_2.25.10      S4Vectors_0.29.17   
[4] MatrixGenerics_1.3.1 matrixStats_0.58.0   BiocGenerics_0.37.4 
[7] Matrix_1.3-2        

loaded via a namespace (and not attached):
[1] compiler_4.1.0  grid_4.1.0      lattice_0.20-41

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions