Rowwise matrix multiplication in R

后端 未结 4 557
别跟我提以往
别跟我提以往 2021-01-18 23:05

I have a matrix with the dimension of 100 million records and 100 columns.

Now I want to multiply that matrix by rowwise.

My sample code for matrix multiplic

4条回答
  •  耶瑟儿~
    2021-01-18 23:35

    The Rfast command "rowprods" accepts a matrix, not a data.frame. Secondly, any row or colprods command will have numerical overflow errors. So ti best to use Rfast::colprods(x, method = "expsumlog").

提交回复
热议问题