what is the difference between residential and inpatient rehab

what is the difference between residential and inpatient rehab