sp_prodVec {bigsparser}R Documentation

Products with a vector

Description

Products between an SFBM and a vector.

Usage

sp_prodVec(X, y)

sp_cprodVec(X, y)

Arguments

X

An SFBM.

y

A vector of same size of the number of columns of X for sp_prodVec() abd as the number of rows of X for sp_cprodVec().

Value

Examples

spmat <- Matrix::rsparsematrix(1000, 1000, 0.01)
X <- as_SFBM(spmat)
sp_prodVec(X, rep(1, 1000))
sp_cprodVec(X, rep(1, 1000))


[Package bigsparser version 0.6.1 Index]