We say that a matrix A is diagonally row dominant if every element
on the diagonal is strictly larger than all other elements on the same row.
- Draw the flowchart of an algorithm to print True if a given
n-by-n matrix A is diagonally row dominant, and False otherwise.
- Give Python code to define a function DiagonallyRowDominant
This function takes on input a numpy matrix
as single argument.
Either True or False is returned, depending whether the
matrix on input is diagonally row dominant or not.
Answer:
quiz2a.py