Fixed problem with element wise variable operations causing matrices to transpose when not intended.