def jordan_cell(eigenval, n):
 n = as_int(n)
 out = zeros(n)
 for i in range((n - 1)):
  out[(i, i)] = eigenval
  out[(i, (i + 1))] = S.One
 out[((n - 1), (n - 1))] = eigenval
 return out

def jordan_cell ( eigenval , n ) : n = as_int ( n ) out = zeros ( n ) for i in range ( ( n - 1 ) ) : out [ ( i , i ) ] = eigenval out [ ( i , ( i + 1 ) ) ] = S . One out [ ( ( n - 1 ) , ( n - 1 ) ) ] = eigenval return out
create matrix of jordan cell kind: examples .