This operation is useful in recursively generating all the possible path histories of a sequential design.
Usage
cross(A, v)
Arguments
A
An arbitrary matrix
v
An arbitrary vector
Value
A matrix with dim(A)[2]+1 columns and dim(A)[1]*length(v) rows.
Details
For each component of v, the matrix A is duplicated with an extra right column equal to v[i]. This is added to the current output until the components of v are exhausted.