A matrix of either RV coefficients or scalar products.
Arguments
CubeCP
A 3D array of cross-product matrices
RV
Boolean, if TRUE, GetCmat computes the matrix of the RV coefficients between all the slices of the 3D array, otherwise, GetCmat computes a scalar product.