33.1 Abstract base class for modules

Module: sage.modules.module

Abstract base class for modules

Module-level Functions

is_Module( )

Return True if x is a module.

sage: M = FreeModule(RationalField(),30)
sage: is_Module(M)
True
sage: is_Module(10)
False

is_VectorSpace( )

Return True if x is a vector space.

sage: M = FreeModule(RationalField(),30)
sage: is_VectorSpace(M)
True
sage: M = FreeModule(IntegerRing(),30)
sage: is_Module(M)
True
sage: is_VectorSpace(M)
False

Class: Module

class Module
Generic module class.

Functions: category,$ \,$ endomorphism_ring,$ \,$ is_atomic_repr

category( )

Return the category to which this module belongs.

endomorphism_ring( )

Return the endomorphism ring of this module in its category.

is_atomic_repr( )

True if the elements have atomic string representations, in the sense that they print if they print at s, then -s means the negative of s. For example, integers are atomic but polynomials are not.

Special Functions: __call__

__call__( )

Coerce x into the ring.

See About this document... for information on suggesting changes.