Move simple matrix ops to the on device lib.

Change-Id: I2cd23cc2dab32c54f341e8e0cfbfbcaf1585c401
5 files changed