 The quaternion product AC is a linear transformation by the operator A of the components of the quaternion C, therefore there is a matrix representation of A operating on the vector formed from the components of C.

Assemble the components of the quaternion into the array .Notice that the components of the vector part of the quaternion are listed first and the scalar is listed last.This is an arbitrary choice, but once this convention is selected we must abide by it.