[Scipy-tickets] [SciPy] #1449: scipy.triu returns unexpected dtype

SciPy Trac scipy-tickets@scipy....
Fri May 27 08:48:34 CDT 2011

#1449: scipy.triu returns unexpected dtype
 Reporter:  Peter17      |       Owner:  somebody
     Type:  defect       |      Status:  new     
 Priority:  normal       |   Milestone:          
Component:  Other        |     Version:  0.9.0   
 Keywords:  triu, dtype  |  
 The following code:

 import numpy[[BR]]
 from scipy import triu[[BR]]
 C = numpy.zeros((2,2), dtype=numpy.float32)[[BR]]
 print C.dtype[[BR]]
 D = triu(C)[[BR]]
 print D.dtype[[BR]]

 will print:[[BR]]

 I think the expected behavior would be to keep the dtype of the initial
 matrix. This is very important for some applications (eg. CUDA

 I run Scipy-0.9.0 on Mandrivalinux 2010.2.

Ticket URL: <http://projects.scipy.org/scipy/ticket/1449>
SciPy <http://www.scipy.org>
SciPy is open-source software for mathematics, science, and engineering.

More information about the Scipy-tickets mailing list