Description Usage Arguments Details Value Examples
rray_dot()
works exactly like the base R function, %*%
, but preserves
the rray class where applicable. For the exact details of how 1D objects
are promoted to 2D objects, see %*%.
1 | rray_dot(x, y)
|
x, y |
Arrays or rrays that are either 1D or 2D. |
Due to some peculiarities with how %*%
dispatches with S3 objects, calling
%*%
directly with an rray will compute the matrix multiplication correctly,
but the class will be lost. rray_dot()
ensures that the rray class is
maintained.
The result of the matrix multiplication of x
and y
. See %*%
for the
exact details. The common type of x
and y
will be preserved.
1 2 3 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.