sp_prodVec | R Documentation |
Products between an SFBM and a vector.
sp_prodVec(X, y)
sp_cprodVec(X, y)
X |
An SFBM. |
y |
A vector of same size of the number of columns of |
sp_prodVec()
: the vector which is equivalent to X %*% y
if X
was a dgCMatrix.
sp_cprodVec()
: the vector which is equivalent to Matrix::crossprod(X, y)
if X
was a dgCMatrix.
spmat <- Matrix::rsparsematrix(1000, 1000, 0.01)
X <- as_SFBM(spmat)
sp_prodVec(X, rep(1, 1000))
sp_cprodVec(X, rep(1, 1000))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.