Two of the homeless men who were brutally beaten in downtown Los Angeles earlier this week have died of their injuries, police said Thursday, and detectives are now investigating whether those attacks are linked to the death of a homeless man whose pummeled body was discovered under the Santa Monica Pier.

Both men had been hospitalized since Sunday morning, when an assailant repeatedly struck them with a baseball bat as they slept in the Financial District. Los Angeles police Officer Drake Madison said a third man beaten in Sunday’s attacks remained in the hospital.