row major order in ccmeans