transpose one gradient matrix. This makes the code run, but it still doesn't work even for RealTuple<1> [[Imported from SVN: r6547]]