This function calls a C++ function which multiplies two vectors by each other elementwise, such that the output is of length(a) * length(b).

1 | ```
rcpp_mult2probvect(a, b)
``` |

`a` |
a numeric vector |

`b` |
a numeric vector |

This is the cross-product operation, which exists in R
(`%o%`

or
`tcrossprod`

). However, it is handy to
have is as a C++ function for calculating the probability
of pairs of descendant states, given the probability of
each state individually.

`tcross_product_vector`

the vector which is the
product of the convolution

Nicholas Matzke matzke@berkeley.edu

`%o%`

,
`tcrossprod`

,
`Rcpp_combn_zerostart`

,
`rcpp_convolve`

1 2 3 4 5 6 7 8 9 10 11 12 | ```
ca = c(1,2,3,4,5)
cb = c(2,2,2,2,2)
rcpp_mult2probvect(a=ca, b=cb)
# Same as:
c(ca %o% cb)
# Or:
c(outer(ca, cb))
# Or:
tcrossprod(ca, cb)
``` |

Questions? Problems? Suggestions? Tweet to @rdrrHQ or email at ian@mutexlabs.com.

Please suggest features or report bugs with the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.