absSum for matrix