You should follow the normal mathematical conventions, such as the one shown in this wiki article:

Rotation matrix - Wikipedia, the free encyclopedia

The layout of a matrix in C / C++ implies...