Re: [Numpy-discussion] Behavior of array scalars
by David M. Cooke other posts by this author
Feb 17 2006 4:21PM messages near this date
Re: [Numpy-discussion] Behavior of array scalars
|
Re: [Numpy-discussion] Behavior of array scalars
Travis Oliphant <oliphant@[...].edu> writes:
> Consider...
>
> a = rand(5,5)
> b = mat(a)
>
> a += b
>
> What do you think the type of a now is? What should it be?
>
> Currently, this code would change a from an array to a matrix because
>
> add(a,b,a) returns a matrix.
>
> I'm thinking that we should establish the rule that if output arrays
> are given, then what is returned should just be those output arrays...
+1.
--
|> |\/|<
/--------------------------------------------------------------------------|David M. Cooke
http://arbutus.physics.mcmaster.ca/dmc/
|cookedm@[...].ca
-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems? Stop! Download the new AJAX search engine that makes
searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
_______________________________________________
Numpy-discussion mailing list
Numpy-discussion@[...].net
https://lists.sourceforge.net/lists/listinfo/numpy-discussion
Thread:
Christopher Barker
Travis Oliphant
Sasha
Travis Oliphant
Christopher Barker
Sasha
Travis Oliphant
David M. Cooke
Sasha
Travis Oliphant
Travis Oliphant
Sasha
Travis Oliphant
Sasha
Alexander Belopolsky
Sasha
|