def create_ma(deg_f, deg_g, row1, row2, col_num):
 if ((deg_g - deg_f) >= 1):
  print('Reverse degrees')
  return
 m = zeros(((deg_f - deg_g) + 2), col_num)
 for i in range(((deg_f - deg_g) + 1)):
  m[i, :] = rotate_r(row1, i)
 m[((deg_f - deg_g) + 1), :] = row2
 return m

def create_ma ( deg_f , deg_g , row1 , row2 , col_num ) : if ( ( deg_g - deg_f ) >= 1 ) : print ( 'Reverse degrees' ) return m = zeros ( ( ( deg_f - deg_g ) + 2 ) , col_num ) for i in range ( ( ( deg_f - deg_g ) + 1 ) ) : m [ i , : ] = rotate_r ( row1 , i ) m [ ( ( deg_f - deg_g ) + 1 ) , : ] = row2 return m
creates a small matrix m to be triangularized .