Corrected 3D matrix orientation before flatten.
Corrected 3D matrix orientation before flatten.

nicocarbone/CUDAMCFL,nicocarbone/CUDAMCFL,nicocarbone/CUDAMCFL,nicocarbone/CUDAMCFL,nicocarbone/CUDAMCFL,nicocarbone/CUDAMCFL