Many of AP’s rotation matrix functions have formal parameters in RPY (123) order. But are the functions actually composing matrices in this order, or in normal aeronautical YPR (321) order?

The same question goes for AP’s quaternion convention.

I’ve studied both the matrix and quaternion libraries and am finding it difficult to make a definite determination. Please could someone advise?