[SciPy-User] Gradient inputs to SciPy optimize routines
Robaula
helmrp@yahoo....
Mon Jul 23 10:00:09 CDT 2012
Ok.
But then, strictly speaking, the gradient inputs to the optimize functions must not return 'array like' values, even though -- in fact, precisely because -- they have to return NumPy arrays.
To me, that seems kinda wacky.
Sent from Robaula's iPad
helmrp@yahoo.com
2645 E Southern, A241
Tempe, AZ 85282
VOX: 480-831-3611
CELL: 602-568-6948 (but not often turned on)
On Jul 23, 2012, at 7:39 AM, Sturla Molden <sturla@molden.no> wrote:
>
>
> Den 23. juli 2012 kl. 16:36 skrev Sturla Molden <sturla@molden.no>:
>
>>
>>
>> Den 23. juli 2012 kl. 14:17 skrev The Helmbolds <helmrp@yahoo.com>:
>>
>>
>>> Now, how far is this generalizable? Is it true that _all_ native SciPy routines require numpy arrays as inputs? Is it true that _none_ of the native SciPy routines _ever_ take ordinary Python sequences as input? Is it true that _all_ native SciPy routines return numpy arrays and _never_ an ordinary Python sequence?
>>
>> If the documentation says an argument is "array like" it means it can be "any Python sequence that can be coverted to a NumPy array."
>
>
> Or converted ;)
>
>
> S.M.
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.scipy.org/pipermail/scipy-user/attachments/20120723/944181a8/attachment.html
More information about the SciPy-User
mailing list