#5646: vectors over CDF allow a coercion from scalars
----------------------------+-----------------------------------------------
 Reporter:  ncalexan        |       Owner:  was                    
     Type:  defect          |      Status:  new                    
 Priority:  major           |   Milestone:  sage-3.4.2             
Component:  linear algebra  |    Keywords:  complex vector coercion
----------------------------+-----------------------------------------------
 These are incompatible and I claim the first one is wrong!

 {{{
 sage: (CDF^2)(1)
 (1.0, 1.0)
 sage: (CC^2)(1)
 ---------------------------------------------------------------------------
 TypeError                                 Traceback (most recent call
 last)

 /home/ncalexan/sage-3.4.1.alpha0-sage.math-
 only-x86_64-Linux/devel/sage/sage/functions/riemann_theta.py in <module>()

 /home/ncalexan/sage-3.4.1.alpha0-sage.math-
 only-x86_64-Linux/local/lib/python2.5/site-
 packages/sage/modules/free_module.pyc in __ca\
 ll__(self, e, coerce, copy, check)
    4394         except AttributeError:
    4395             pass
 -> 4396         return FreeModule_generic_field.__call__(self,e)
    4397
    4398
 ###############################################################################

 /home/ncalexan/sage-3.4.1.alpha0-sage.math-
 only-x86_64-Linux/local/lib/python2.5/site-
 packages/sage/modules/free_module.pyc in __ca\
 ll__(self, x, coerce, copy, check)
     813             except ArithmeticError:
     814                 raise ValueError, "element (= %s) is not in free
 module"%(x,)
 --> 815         return self._element_class(self, x, coerce, copy)
     816
     817     def is_submodule(self, other):

 /home/ncalexan/sage-3.4.1.alpha0-sage.math-
 only-x86_64-Linux/local/lib/python2.5/site-
 packages/sage/modules/free_module_element.so \
 in
 sage.modules.free_module_element.FreeModuleElement_generic_dense.__init__
 (sage/modules/free_module_element.c:15739)()

 TypeError: entries (=1) must be a list
 }}}

-- 
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/5646>
Sage <http://sagemath.org/>
Sage - Open Source Mathematical Software: Building the Car Instead of 
Reinventing the Wheel

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"sage-trac" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/sage-trac?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to