When applied to a row vector DCT/DFT automatically transposed the vector. Fixed this problem so the operations are now performed on each (scalar) column instead.