Testing if an object is a Matrix or a Vector
For a long time I used :
is_Matrix(A)
is_Vector(B)
but it is now deprecated.
So I tried, like in https://ask.sagemath.org/question/975...,
isinstance(A,sage.matrix.matrix.Matrix)
which does not work.
What can I do ?
Does this one work?:
isinstance(A,sage.structure.element.Matrix)
Yes it works ! And also isinstance(B,sage.structure.element..Vector) works. Thhanks a lot !
@tolga : for the benefit of future
ask.sagemath.org
(per-)users, please make a formal response from your comment...