def is_nilpotent(self):
        if not self:
            return True
        if not self.is_square:
            raise NonSquareMatrixError(
                "Nilpotency is valid only for square matrices")
        x = Dummy('x')
        if self.charpoly(x).args[0] == x**self.rows:
            return True
        return False
Assign attrs to element.
dataset/ETHPy150Open sympy/sympy/sympy/matrices/matrices.py/MatrixBase.is_nilpotent--crossover with--dataset/ETHPy150Open JT5D/Alfred-Popclip-Sublime/PopClip 2/PopClippins-master/source/mdtohtml/markdown/extensions/attr_list.py/AttrListTreeprocessor.assign_attrs