Description Usage Arguments Value
View source: R/multiply_arrays.R
Given two arrays with a full set of named dimension-names that match in a proper fashion, this function will create the product of them based on matching dimension-names. If necessary, an intermediate step will be performed to properly align the arrays. If one array has fewer dimensions than the other, then the product will be performed by recycling of vectors.
1 | multiply_arrays(.arr1, .arr2, keep_shape = FALSE)
|
.arr1 |
The first array in the product, if |
.arr2 |
The second array in the product. The case where
|
keep_shape |
A logic argument, default value |
When .arr1
and .arr2
have the same size, the
result will be the product of them in the shape of
.arr1
. If one of them has fewer dimensions than the
other, then recycling will be performed and the result will be
given in the shape of the largest one. It is allowed to have
as an exception the case where one (or both) of the
array-arguments is a single number (dimensionless), in which
case a standard product will be performed.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.