ceslobfer / GPUmatrix

GPUmatrix: An R package for algebra using GPU
32 stars 1 forks source link

sum behavior different in gpu.matrix and in matrix (if including rownames and colnames) #8

Open arubio2 opened 2 months ago

arubio2 commented 2 months ago

Minimal example

A <- matrix(1:30,10,3) colnames(A) <- 1:3 rownames(A) <- 1:10 sum(A)

Ag <- gpu.matrix(A) sum(Ag) str(Ag) as.numeric(sum(Ag)) # --> error

The output includes rownames and colnames and shouldn't