Multiplipe | R Documentation |
Building on Massign's core functionality, the Multiplipe operator ' allows for quick prototyping of matrix multiplications.
matrix1 %*>% matrix2
matrix1 |
a matrix or Massign character matrix that premultiplies |
matrix2 |
a matrix or Massign character matrix that postmultiplies |
matrix
, Massign
# Basic usage
"1, 2
3, 4" %*>%
" 0, 1
1, 0"
# Second argument can be a matrix:
"1, 2, pi \\ 3, 4, 1 \\ 3, 2, 1" %*>% diag(c(1, 2, 3))
# Or the first, for that matter:
diag(c(1, 2, 3)) %*>% "1, 2, pi \\ 3, 4, 1 \\ 3, 2, 1"
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.