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
Given a 1D array, reshape it to the given shape
dataset/ETHPy150Open sympy/sympy/sympy/matrices/dense.py/jordan_cell--crossover with--dataset/ETHPy150Open dask/dask/dask/array/core.py/unravel