Description
It would be nice if assignment in tuple-containing Stan programs, was able to promote, so that you could assign a (int, int) value to a (real, int) variable, for example. In the most general case of course, the elements of these tuples could be tuples, arrays, arrays of tuples, etc.
Ideally, promote_scalar<std::tuple<TYPES>>(X) should work when X was a tuple or when X was a std::vector of tuples.
Current Version:
v4.3.2
Description
It would be nice if assignment in tuple-containing Stan programs, was able to promote, so that you could assign a
(int, int)value to a(real, int)variable, for example. In the most general case of course, the elements of these tuples could be tuples, arrays, arrays of tuples, etc.Ideally,
promote_scalar<std::tuple<TYPES>>(X)should work when X was a tuple or when X was a std::vector of tuples.Current Version:
v4.3.2