def add_mult(self, mat2, mult = 1.):
        """
        Add multiple of mat2 to the matrix.
        """

        err_code = _cudamat.add_mult(self.p_mat, mat2.p_mat, ct.c_float(mult))
        if err_code:
            raise generate_exception(err_code)

        return self

        Add multiple of mat2 to the matrix.
        
cudamat/cudamat.py