def sample_gaussian(self, mult=1.0, target=None):
        """
        Add zero mean gaussian noise to the matrix. mult is the stddev.
        """
        if not target:
          target = self
        err_code = _cudamat.sample_gaussian(CUDAMatrix.rnd_state_p, self.p_mat, target.p_mat, ct.c_float(mult))
        if err_code:
            raise generate_exception(err_code)

        return self

        Add zero mean gaussian noise to the matrix. mult is the stddev.
        
cudamat/cudamat.py