Ticket #4977 (closed defect: fixed)

Opened 4 years ago

Last modified 4 years ago

[with patch, positive review] vector(RR vector) doesn't create a new vector

Reported by: jason Owned by: was
Priority: major Milestone: sage-3.3
Component: linear algebra Keywords:
Cc: Work issues:
Report Upstream: Reviewers:
Authors: Merged in:
Dependencies: Stopgaps:

Description

Hi,

Is there a reason why, in sage 3.2.2, the following works :

sage: vector(vector((1, 6)))
(1, 6)

but the following doesn't :

sage: vector(vector((1, 6.8)))
Traceback (most recent call last):
...
TypeError: _vector_() takes exactly one argument (0 given)

???

Thank you,

Sébastien Labbé
UQAM


Attachments

4977.patch Download (1.0 KB) - added by ncalexan 4 years ago.

Change History

comment:1 in reply to: ↑ description Changed 4 years ago by slabbe

I want also to mention that the same problem was occuring when using the Symbolic Ring :

sage: vector(vector(SR, (1, sqrt(2)) ) )

Changed 4 years ago by ncalexan

comment:2 Changed 4 years ago by ncalexan

  • Summary changed from vector(RR vector) doesn't create a new vector to [with patch, needs review] vector(RR vector) doesn't create a new vector

comment:3 Changed 4 years ago by AlexGhitza

  • Summary changed from [with patch, needs review] vector(RR vector) doesn't create a new vector to [with patch, positive review] vector(RR vector) doesn't create a new vector

Looks good.

comment:4 Changed 4 years ago by mabshoff

  • Status changed from new to closed
  • Resolution set to fixed

Merged in Sage 3.3.alpha1

Note: See TracTickets for help on using tickets.