[SciPy-User] how use the tutorial "Extending ndimage in C"

moscardi eric.moscardi@sophia.inria...
Fri Oct 22 11:15:30 CDT 2010


Hello,

i try to use the tutorial named "Extending ndimage in C" but It doesn't work.
If anyone use geometric_transform() with a C function, can he help me?
 
Thanks
Eric

On Oct 22, 2010, at 6:03 PM, Robert Kern wrote:

> On Fri, Oct 22, 2010 at 10:53, bert wiley <bertwiley@gmail.com> wrote:
>> Hello
>>    Ive just started using scipy and im learning some algebra. Ive read the
>> scipy tutorial and noticed they have an example of solving linear equations
>> and it uses 3 of them and takes a matrice for the params and one for the
>> constants. How do solve for a single linear equation like this  x+3y+5z =
>> 10  ?   ive tried it like this
>> 
>> A = mat('[1 3 5')
>> b = mat('[10]')
>> 
>> linalg.solve(A,b)
>> 
>> 
>> but i get
>> raise ValueError, 'expected square matrix'
> 
> There is no unique point solution to that one equation. There is a
> plane in 3D space comprised of an infinite number of points that
> describes the solution to that equation. For three parameters,
> linalg.solve() requires three equations. That's why you get the
> ValueError saying that it expects a square matrix, 3x3 in this case.
> 
> -- 
> Robert Kern
> 
> "I have come to believe that the whole world is an enigma, a harmless
> enigma that is made terrible by our own mad attempt to interpret it as
> though it had an underlying truth."
>   -- Umberto Eco
> _______________________________________________
> SciPy-User mailing list
> SciPy-User@scipy.org
> http://mail.scipy.org/mailman/listinfo/scipy-user

Eric MOSCARDI
INRIA - Virtual Plants
CIRAD, Avenue Agropolis
34398 Montpellier Cedex 5, France
04 67 61 58 00 (ask number 60 09)
email : eric.moscardi@sophia.inria.fr


-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.scipy.org/pipermail/scipy-user/attachments/20101022/22f21138/attachment.html 


More information about the SciPy-User mailing list