Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def CalculateNorm(B):
- if B.shape[0] == 1:
- return max(np.absolute(B))
- MAX = 0
- for i in range(B.shape[0]):
- MAX = max(np.sum(np.absolute(B[i])), MAX)
- return MAX
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement