R/mvn.R
affine_transform.RdComputes the distribution of AX+b where X∼MVN(μ,Σ). The result is MVN(Aμ+b,AΣAT).
affine_transform(x, A, b = NULL)A normal or mvn distribution.
For a univariate normal, scalars A and b are promoted
to 1x1 matrices and scalar internally. Returns a normal if the
result is 1-dimensional.