Ask Your Question

Revision history [back]

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.

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.

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.

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.

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])
    False

False

It checks whether the input is an instance of the abstract base class Vector.

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])
False

It checks whether the input is an instance of the abstract base class element class Vector.