Description Usage Arguments See Also Examples
Simple scalar by a blockmatrix
Simple scalar by a
blockvector
1 2 3 | x %ss% y
scalar_scalar(x, y)
|
x |
either a scalar or a matrix |
y |
a multiblock |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 | # block vector
bv = blockvector(1:5, parts = c(2, 3))
5 %ss% bv
# same as
5 * bv
# blockmatrix
X = blockmatrix(matrix(1:12, 3, 4), rowparts = c(3), colparts = c(2, 2))
5 %ss% X
# matrix
m = matrix(1:6, 3, 2)
m %ss% X
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.