1 | initial version |
sage: from sage.structure.element import is_Vector
sage: v = vector([1,2,3])
sage: is_Vector(v)
True
It checks whether the input is an instance of the abstract base class Vector
.
2 | No.2 Revision |
It checks whether the input is an instance of the abstract base class Vector
.
3 | No.3 Revision |
sage: from sage.structure.element import is_Vector sage: v = vector([1,2,3]) sage: is_Vector(v) True sage: is_Vector([1,2,3]) False
It checks whether the input is an instance of the abstract base class Vector
.
4 | No.4 Revision |
sage: from sage.structure.element import is_Vector sage: v = vector([1,2,3]) sage: is_Vector(v) True sage: is_Vector([1,2,3]) False
It checks whether the input is an instance of the abstract base class Vector
.
5 | No.5 Revision |
You want is_Vector
:
sage: from sage.structure.element import is_Vector
sage: v = vector([1,2,3])
sage: is_Vector(v)
True
sage: is_Vector([1,2,3])
FalseFalse
It checks whether the input is an instance of the abstract base class Vector
.
6 | No.6 Revision |