| a_b_one | R Documentation |
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.
a_b_one(a, b)
a, b |
Square matrices. |
The square matrix a * (b %*% one_mat).
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.