Eliminated unnecessary work in matrix construction when single device is in use
Eliminated unnecessary work in matrix construction when single device is in use

ddemidov/vexcl,kapadia/vexcl,Poulpy21/vexcl,kapadia/vexcl,ddemidov/vexcl,Poulpy21/vexcl,Poulpy21/vexcl