Added support for integer matrices for the host and CUDA.

OpenCL requires the full integration of element-wise OpenCL kernels for matrices first.