ASPN ActiveState Programmer Network
ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups


Recent Messages
List Archives
About the List
List Leaders
Subscription Options

View Subscriptions
Help

View by Topic
ActiveState
.NET Framework
Open Source
Perl
PHP
Python
Tcl
Web Services
XML & XSLT

View by Category
Database
General
SOAP
System Administration
Tools
User Interfaces
Web Programming
XML Programming


MyASPN >> Mail Archive >> numpy-discussion
numpy-discussion
RE: [Numpy-discussion] rank-0 arrays
by Perry Greenfield other posts by this author
Sep 13 2002 9:06PM messages near this date
Re: [Numpy-discussion] rank-0 arrays | Re: [Numpy-discussion] rank-0 arrays
>  Hi Perry,
>  
>  I like Travis's proposal the best of those I've seen so far, but I don't
>  recall the details of Eric's problem. Could you refresh us as to 
>  the basics
>  of it?.
>  
>  -tim
>  
On a different front, I'm not sure that this proposal is very useful
for numarray because of the new scalar/array coercion rules that
numarray has. Since the new scalar literals must still use 
type functions (e.g.,, Int8(2)) it doesn't help make expressions
any prettier (or do I misunderstand the proposal?). In returning
scalars from arrays, I don't see that converting the array type
to a Python scalar type helps much. With the exception of long
doubles (and the corresponding complex precision), the conversion
to the python scalar doesn't lose any precision and you can 
restore the exact array type value by assigning that scalar value
back to an array element. As mentioned, the only exception is for
long doubles; for that case, a new scalar type makes sense.

Is there any other compelling reason for new scalar types?

Perry


-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
Numpy-discussion mailing list
Numpy-discussion@[...].net
https://lists.sourceforge.net/lists/listinfo/numpy-discussion
Thread:
Perry Greenfield
Travis Oliphant
Pearu Peterson
Konrad Hinsen
Perry Greenfield
Todd Miller
Pearu Peterson
Konrad Hinsen
Travis Oliphant
Konrad Hinsen
Perry Greenfield
Travis Oliphant
Tim Hochberg
Chris Barker
Konrad Hinsen
Perry Greenfield
Travis Oliphant
Pearu Peterson
Tim Hochberg
Perry Greenfield
Konrad Hinsen
Perry Greenfield
eric jones
Konrad Hinsen
eric jones
Konrad Hinsen
Tim Hochberg
Tim Hochberg
Paul F Dubois
Scott Gilbert
Konrad Hinsen

Privacy Policy | Email Opt-out | Feedback | Syndication
© ActiveState Software Inc. All rights reserved