def ceil(mat, target=None):
 if (not target):
  target = mat
 err_code = _eigenmat.apply_ceil(mat.p_mat, target.p_mat)
 if err_code:
  raise generate_exception(err_code)
 return target

def ceil ( mat , target = None ) : if ( not target ) : target = mat err_code = _eigenmat . apply_ceil ( mat . p_mat , target . p_mat ) if err_code : raise generate_exception ( err_code ) return target
apply the ceil function to each element of the matrix mat .