You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We propose to add a method dual to modules M as an abbreviation for Hom(M, M.base_ring()).
For vector spaces, we create a specialized class so that it prints in a more concise way than this:
sage: Hom(QQ^2, QQ)
Set of Morphisms (Linear Transformations) from Vector space of dimension 2 over Rational Field to Rational Field
and has more functionality to make linear algebra less awkward.
sage: _.an_element()
NotImplementedError: please implement _an_element_ for Set of Morphisms (Linear Transformations) from Vector space of dimension 2 over Rational Field to Rational Field
FiniteRankFreeModule already has this functionality. The new interface should be compatible with it.
sage: Q3 = FiniteRankFreeModule(QQ, 3)
sage: Q3.dual()
Dual of the 3-dimensional vector space over the Rational Field
sage: l = Q3.linear_form(); l
Linear form on the 3-dimensional vector space over the Rational Field
We propose to add a method
dual
to modulesM
as an abbreviation forHom(M, M.base_ring())
.For vector spaces, we create a specialized class so that it prints in a more concise way than this:
and has more functionality to make linear algebra less awkward.
FiniteRankFreeModule
already has this functionality. The new interface should be compatible with it.Related (more general):
CC: @tscrim @simonbrandhorst @egourgoulhon
Component: categories
Issue created by migration from https://trac.sagemath.org/ticket/30091
The text was updated successfully, but these errors were encountered: