Rotation matrix with scaling for Monte Carlo integration
rotation_scaling(ang, scale)a 2 by 2, or 3 by 3 scaling matrix, depending on inputs
vector of length 1 containing \(\theta \in [0, 2\pi]\) for \(d=2\), or of 3 containing elements \(\phi \in [0, 2*\pi)\), \(\theta \in [0, \pi]\) and \(\psi \in [0, 2\pi)\) for \(d=3\).
vector of length 2 (\(d=2\)) or 3 (\(d=3\)), strictly positive