# tensorplay.spdiags Source: https://www.tensorplay.cn/docs/generated/tensorplay.spdiags.html ```python tensorplay.spdiags(diagonals, offsets, shape, layout=None) ```