A small helper function to check for non-unique input factors when setting
gate definitions.
Usage
check.consistency(vec, var.name)
Arguments
- vec
Vector of a factor, such as large.gate settings.
- var.name
Name of the factor (variable) being checked for multiplicity
Value
The unique element in the factor vec, if all elements of vec are
identical.