Fixed euclid_norm() error handling when matrix is not on device
Fixed euclid_norm() error handling when matrix is not on device

RaoUmer/cudamat,surban/cudamat,awni/cudamat,cudamat/cudamat,zhmz90/cudamat,NervanaSystems/cudamat,f0k/cudamat