rcpp_mult2probvect: Get the product of multiplying each pair of values in a vector (cross-product)
Description
This function calls a C++ function which multiplies two vectors by each other elementwise,
such that the output is of length(a) * length(b).
Usage
rcpp_mult2probvect(a, b)
Arguments
a
a numeric vector
b
a numeric vector
Value
tcross_product_vector the vector which is the product of the convolution
Details
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.