Prefix sum matrix

i want to know what is the time complexity of computing a prefix sum matrix of a matrix