def weight_space(self, base_ring=QQ): """ Returns the weight space associated to self. EXAMPLES:: sage: RootSystem(['A',3]).weight_space() Weight space over the Rational Field of the Root system of type ['A', 3] """ return WeightSpace(self, base_ring)
def weight_space(self, base_ring=QQ, extended = False): """ Returns the weight space associated to self. .. see also:: - :meth:`weight_lattice` - :meth:`coweight_space`, :meth:`coweight_lattice` - :class:`~sage.combinat.root_system.WeightSpace` EXAMPLES:: sage: RootSystem(['A',3]).weight_space() Weight space over the Rational Field of the Root system of type ['A', 3] sage: RootSystem(['A',3,1]).weight_space(extended = True) Extended weight space over the Rational Field of the Root system of type ['A', 3, 1] """ return WeightSpace(self, base_ring, extended = extended)