a_b_one {motifcluster} | R Documentation |
Compute a right-multiplication with the ones matrix
Description
Compute a * (b %*% one_mat)
where a
, b
,
ones_mat
are square matrices of the same size,
and ones_mat
contains all entries equal to one.
The product *
is an entry-wise (Hadamard) product,
while %*%
represents matrix multiplication.
This method is more efficient than the naive approach
when a
or b
are sparse.
Usage
a_b_one(a, b)
Arguments
a , b |
Square matrices. |
Value
The square matrix a * (b %*% one_mat)
.
[Package motifcluster version 0.2.3 Index]