cf https://github.com/stan-dev/stanc3/pull/1626 https://github.com/stan-dev/math/pull/3326
cf stan-dev/stanc3#1626 stan-dev/math#3326