RfastOfficial / Rfast

A collection of Rfast functions for data analysis. Note 1: The vast majority of the functions accept matrices only, not data.frames. Note 2: Do not have matrices or vectors with have missing data (i.e NAs). We do no check about them and C++ internally transforms them into zeros (0), so you may get wrong results. Note 3: In general, make sure you give the correct input, in order to get the correct output. We do no checks and this is one of the many reasons we are fast.
139 stars 19 forks source link

Feature request: faster crossprod and tcrossprod #10

Closed aljabadi closed 4 years ago

aljabadi commented 4 years ago

It would be nice to allow transposition to be handled in mat.mult variants so one doesn't have to inefficiently do mat.mult(x, t(y)) or mat.mult(t(x), y)as for large matrices t() can be quite inefficient and a bottleneck for mat.mult.

ManosPapadakis95 commented 4 years ago

t() in R is quite fast! Even for large matrices. Although I have a faster cross and tcross which is not exported yet.

ManosPapadakis95 commented 4 years ago

Done. The new functions "Crossprod" and "Tcrossprod" will be added in the next update of Rfast.