'Find the sign of each element of the matrix.'

def sign(self, target=None):

    if (not target):
        target = empty((self.mat.size[0], self.mat.size[1]))
    err_code = _cudamat.sign(self.p_mat, target.p_mat)
    if err_code:
        raise generate_exception(err_code)
    return target
