Opened 5 years ago

Closed 5 years ago

#17423 closed defect (fixed)

numpy -> vector ignores ring

Reported by: f.poloni Owned by:
Priority: minor Milestone: sage-6.5
Component: linear algebra Keywords:
Cc: Merged in:
Authors: Jeroen Demeyer Reviewers: Ralf Stephan
Report Upstream: N/A Work issues:
Branch: 7a5a35c (Commits) Commit: 7a5a35cbed1878ff787ff4d37213c4c429c84254
Dependencies: Stopgaps:

Description (last modified by jdemeyer)

sage: import numpy as np
sage: v = np.asarray([0.5,1])
sage: vector(RR,v).parent()
Vector space of dimension 2 over Real Double Field

vv is created with ring RDF rather than the correct one.

Change History (8)

comment:1 Changed 5 years ago by jdemeyer

Workaround:

vv = vector(RealField(rnd='RNDU'),list(v))

comment:2 Changed 5 years ago by jdemeyer

  • Summary changed from Wrong ring in vector() to numpy -> vector ignores ring

comment:3 Changed 5 years ago by jdemeyer

  • Authors set to Jeroen Demeyer

comment:4 Changed 5 years ago by jdemeyer

  • Description modified (diff)

comment:5 Changed 5 years ago by jdemeyer

  • Branch set to u/jdemeyer/ticket/17423
  • Created changed from 12/01/14 12:06:34 to 12/01/14 12:06:34
  • Modified changed from 12/28/14 22:08:45 to 12/28/14 22:08:45

comment:6 Changed 5 years ago by jdemeyer

  • Commit set to 7a5a35cbed1878ff787ff4d37213c4c429c84254
  • Status changed from new to needs_review

New commits:

7a5a35cDon't ignore ring for numpy -> vector conversion

comment:7 Changed 5 years ago by rws

  • Reviewers set to Ralf Stephan
  • Status changed from needs_review to positive_review

Looks good, passes make ptestlong.

comment:8 Changed 5 years ago by vbraun

  • Branch changed from u/jdemeyer/ticket/17423 to 7a5a35cbed1878ff787ff4d37213c4c429c84254
  • Resolution set to fixed
  • Status changed from positive_review to closed
Note: See TracTickets for help on using tickets.