Detailed description |
Hi Matrix development team,
After working with this package a bit and examining its source code, I noticed that integer classes haven't been implemented (i.e. igeMatrix, igCMatrix, igTMatrix, etc.), and I was wondering if these could be implemented. As of right now, if integer data is supplied to a Matrix package matrix constructor (i.e. Matrix::Matrix(), as()), the data is converted to and stored as a vector of type double in the resultant Matrix package object (i.e. as @x in dgeMatrix, dgCMatrix, dgTMatrix, etc.), and while conversion to a double may be necessary depending on down stream analyses, this is not always the case. As doubles are significantly more memory intensive than integers in R, providing implementations for storing and operating on integer matrices could have tangible benefits both in memory usage and computational efficiency, the former of which I've demonstrated in a very brief example markdown file I've attached. |
|