| rray_broadcast_common | R Documentation |
rray_broadcast_common() broadcasts every array to the common dimensions
found by rray_dimensions_common().
rray_broadcast_common(..., .dimensions = NULL)
... |
Arrays to broadcast. |
.dimensions |
If provided, an integer vector of dimensions to
broadcast to, rather than computing common dimensions from |
A list of arrays, all with the common dimensions.
rray_broadcast_common(array(1:3, c(3L, 1L)), array(1:2, c(1L, 2L)))
# Names of `...` are kept
rray_broadcast_common(x = 1:3, y = 1L)
# `.dimensions` overrides the common dimensions
rray_broadcast_common(1:3, .dimensions = c(3L, 2L))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.