#4206: [with patch, needs works] convert RDF and CDF vectors to use numpy
----------------------------+-----------------------------------------------
Reporter: jason | Owner: jason
Type: enhancement | Status: assigned
Priority: major | Milestone: sage-3.2.1
Component: linear algebra | Resolution:
Keywords: |
----------------------------+-----------------------------------------------
Changes (by was):
* summary: [with patch, needs review] convert RDF and CDF vectors to use
numpy => [with patch, needs works] convert RDF
and CDF vectors to use numpy
Comment:
Needs work. The top of the file that implements complex double vectors
starts out like this (matrices not vectors, and deletes all the old
Complex double vector stuff).
{{{
1 """
2 Dense matrices over the Real Double Field.
3
4 Matrix operations using numpy.
5
6 EXAMPLES:
7 sage: b=Mat(RDF,2,3).basis()
8 sage: b[0]
9 [1.0 0.0 0.0]
10 [0.0 0.0 0.0]
11
12
13 We deal with the case of zero rows or zero columns:
14 sage: m = MatrixSpace(RDF,0,3)
15 sage: m.zero_matrix()
16 []
17
18 TESTS:
19 sage: a = matrix(RDF,2,range(4), sparse=False)
20 sage: loads(dumps(a)) == a
21 True
22
23 AUTHORS:
24 -- Jason Grout, Sep 2008: switch to numpy backend
25 -- Josh Kantor
26 -- William Stein: many bug fixes and touch ups.
27 """
28
29
##############################################################################
30 # Copyright (C) 2004,2005,2006 Joshua Kantor
<[EMAIL PROTECTED]>
31 # Distributed under the terms of the GNU General Public
License (GPL)
32 # The full text of the GPL is available at:
33 # http://www.gnu.org/licenses/
34
##############################################################################
35 from sage.rings.complex_double import CDF
36
37 cimport sage.ext.numpy as cnumpy
38
39 numpy=None
40
41 cdef class
Vector_complex_double_dense(vector_double_dense.Vector_double_dense):
}}}
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/4206#comment:24>
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
-~----------~----~----~----~------~----~------~--~---