Description Usage Arguments Details Value Author(s) Examples
In effect this function sets C <- A %*% B. This makes it possible to avoid repeated allocation and deallocation steps which are very computationaly costly.
1 |
A, B |
Matrices to multiply together. |
C |
Matrices where output will be saved. |
trA, trB |
Should A or B be transposed. |
accum |
if accum is set to TRUE, the multiplied matrix will be added to C (i.e. C<-C+A %*% B). |
This function takes advantage of the fact that gmatrix objects are stored as pointers making it posible modify the input to a function. Thus the area of memory on the GPU pointed to by the C object is modified to contain A %*% B.
Returns C invisibly.
Nathan Morris
1 2 3 4 5 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.